Hi, I'm having difficult compiling the soundfile test in (https://github.com/grame-cncm/faust/blob/master-dev/tests/soundfile/tp0.dsp)
code:: me@linux:~/tst$ ls snd.dsp snd.wav me@linux:~/tst$ soxi snd.wav Input File : 'snd.wav' Channels : 1 Sample Rate : 44100 Precision : 16-bit Duration : 00:00:16.00 = 705600 samples = 1200 CDDA sectors File Size : 1.41M Bit Rate : 706k Sample Encoding: 16-bit Signed Integer PCM me@linux:~/tst$ cat snd.dsp import("stdfaust.lib"); process = 0,_~+(1):soundfile("son[url:{'snd.wav'}]",2):!,!,_,_; me@linux:~/tst$ faust -v FAUST Version 2.14.4 Embedded backends: DSP to C DSP to C++ DSP to FIR DSP to Interpreter DSP to Java DSP to JavaScript DSP to LLVM IR DSP to old C++ DSP to Rust DSP to asm.js DSP to WebAssembly (wast/wasm) Build with LLVM version 8.0.0 Copyright (C) 2002-2019, GRAME - Centre National de Creation Musicale. All rights reserved. me@linux:~/tst$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 19.04 Release: 19.04 Codename: disco me@linux:~/tst$ g++ --version g++ (Ubuntu 8.3.0-6ubuntu1) 8.3.0 Copyright (C) 2018 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. me@linux:~/tst$ faust2alsaconsole snd.dsp snd.dsp.cpp: In member function ‘virtual void mydsp::instanceResetUserInterface()’: snd.dsp.cpp:10917:18: error: ‘defaultsound’ was not declared in this scope fSoundfile0 = defaultsound; ^~~~~~~~~~~~ snd.dsp.cpp: In member function ‘virtual void mydsp::compute(int, float**, float**)’: snd.dsp.cpp:10960:41: error: invalid use of incomplete type ‘struct Soundfile’ int* fSoundfile0ca_le0 = fSoundfile0ca->fLength; ^~ snd.dsp.cpp:374:8: note: forward declaration of ‘struct Soundfile’ struct Soundfile; ^~~~~~~~~ snd.dsp.cpp:10962:41: error: invalid use of incomplete type ‘struct Soundfile’ int* fSoundfile0ca_of0 = fSoundfile0ca->fOffset; ^~ snd.dsp.cpp:374:8: note: forward declaration of ‘struct Soundfile’ struct Soundfile; ^~~~~~~~~ snd.dsp.cpp:10963:49: error: invalid use of incomplete type ‘struct Soundfile’ FAUSTFLOAT** fSoundfile0ca_bu0 = fSoundfile0ca->fBuffers; ^~ snd.dsp.cpp:374:8: note: forward declaration of ‘struct Soundfile’ struct Soundfile; ^~~~~~~~~ snd.dsp.cpp:10965:41: error: invalid use of incomplete type ‘struct Soundfile’ int* fSoundfile0ca_of1 = fSoundfile0ca->fOffset; ^~ snd.dsp.cpp:374:8: note: forward declaration of ‘struct Soundfile’ struct Soundfile; ^~~~~~~~~ snd.dsp.cpp:10966:49: error: invalid use of incomplete type ‘struct Soundfile’ FAUSTFLOAT** fSoundfile0ca_bu1 = fSoundfile0ca->fBuffers; ^~ snd.dsp.cpp:374:8: note: forward declaration of ‘struct Soundfile’ struct Soundfile; ^~~~~~~~~ me@linux:~/tst$ ls snd.dsp snd.dsp.cpp snd.wav me@linux:~/tst$ I'm completely stumped at this stage. Any help would be much appreciated. Thanks, AK _______________________________________________ Faudiostream-users mailing list Faudiostream-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/faudiostream-users