i have tried to follow this method of reading an audio file into a variable. But i get the following errors:
/tmp/ccvlnwCI.o: In function `main':
debug_snd.cpp:(.text+0x7b): undefined reference to `sf_open'
debug_snd.cpp:(.text+0xc0): undefined reference to `sf_close'
debug_snd.cpp:(.text+0xec): undefined reference to `sf_open'
debug_snd.cpp:(.text+0x140): undefined reference to `sf_close'
debug_snd.cpp:(.text+0x16b): undefined reference to `sf_read_double'
debug_snd.cpp:(.text+0x1ee): undefined reference to `sf_write_double'
debug_snd.cpp:(.text+0x202): undefined reference to `sf_close'
debug_snd.cpp:(.text+0x211): undefined reference to `sf_close'
collect2: error: ld returned 1 exit status
What i have tried so far to resolve this:
$ sudo apt-get install -y libsndfile-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libsndfile1-dev' instead of 'libsndfile-dev'
libsndfile1-dev is already the newest version (1.0.25-10ubuntu0.16.04.2).
0 upgraded, 0 newly installed, 0 to remove and 409 not upgraded.
$ sudo apt-get install -y libsndfile1-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libsndfile1-dev is already the newest version (1.0.25-10ubuntu0.16.04.2).
0 upgraded, 0 newly installed, 0 to remove and 409 not upgraded.
$ sudo apt-get install -y libsndfile1
Reading package lists... Done
Building dependency tree
Reading state information... Done
libsndfile1 is already the newest version (1.0.25-10ubuntu0.16.04.2).
0 upgraded, 0 newly installed, 0 to remove and 409 not upgraded.
$ sudo apt-get install -y libsndfile
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libsndfile
I also tried this: But it is mainly trying to write them into a file, not store as a variable
This is on windows, using a GUI, but i am running in a linux terminal, so i can't work with that.