Hello,

I'm trying to play a soundfile in faust with the new soundfile object, but I get an error message while compiling. Interesting thing, faust2svg compiles successfully...

Here the faust code:

process = 1:+~_: *(8) : soundfile("player[url:/media/sda7/Programming/Faust/Vinz4/sound.wav]",2) ;


Here the Error message:


vince@vince-ThinkPad-W520:/media/sda7/Programming/Faust/Vinz4$ faust2jaqt soundfiletest.dsp

soundfiletest.cpp: In member function ‘virtual void mydsp::instanceResetUserInterface()’: soundfiletest.cpp:14237:18: error: ‘defaultsound’ was not declared in this scope
    fSoundfile0 = defaultsound;
                  ^~~~~~~~~~~~
soundfiletest.cpp: In member function ‘virtual void mydsp::compute(int, float**, float**)’: soundfiletest.cpp:14283:29: error: invalid use of incomplete type ‘struct Soundfile’
   int iSlow0 = fSoundfile0ca->fLength;
                             ^~
soundfiletest.cpp:373:8: note: forward declaration of ‘struct Soundfile’
 struct Soundfile;
        ^~~~~~~~~
soundfiletest.cpp:14284:29: error: invalid use of incomplete type ‘struct Soundfile’
   int iSlow1 = fSoundfile0ca->fSampleRate;
                             ^~
soundfiletest.cpp:373:8: note: forward declaration of ‘struct Soundfile’
 struct Soundfile;
        ^~~~~~~~~
soundfiletest.cpp:14285:29: error: invalid use of incomplete type ‘struct Soundfile’
   int iSlow2 = fSoundfile0ca->fChannels;
                             ^~
soundfiletest.cpp:373:8: note: forward declaration of ‘struct Soundfile’
 struct Soundfile;
        ^~~~~~~~~
soundfiletest.cpp:14287:49: error: invalid use of incomplete type ‘struct Soundfile’
   FAUSTFLOAT** fSoundfile0ca_bu0 = fSoundfile0ca->fBuffers;
                                                 ^~
soundfiletest.cpp:373:8: note: forward declaration of ‘struct Soundfile’
 struct Soundfile;
        ^~~~~~~~~
soundfiletest.cpp:14289:49: error: invalid use of incomplete type ‘struct Soundfile’
   FAUSTFLOAT** fSoundfile0ca_bu1 = fSoundfile0ca->fBuffers;
                                                 ^~
soundfiletest.cpp:373:8: note: forward declaration of ‘struct Soundfile’
 struct Soundfile;
        ^~~~~~~~~
make: *** [soundfiletest.o] Error 1
 ;


What do I do wrong?

Thank you very much,


Vince




_______________________________________________
Faudiostream-users mailing list
Faudiostream-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/faudiostream-users

Reply via email to