8
« on: September 21, 2018, 01:10:27 pm »
Hi guys,
Been using QB64 off on on over the years. Love it and the work you do. Thanks.
I updated to the newest version the other day, and haven't used QB64 in quite some time, probably at all since I bought a new lap top. When I tried compiling a program with a sound command in it I received a compiler error. After a little testing I discovered it seems that the _SNDOPEN and _SNDPLAYFILE generate this compiler message. I've tried converting my sound file in .OGG, .WAV, and .MP3 formats, and tried it using other sound files, but still get the same message, but I don't believe the compiler even looks at the sound source file during the compile process, does it?
This sample program below generates the following compiler message. I'm using REALTek Audio drivers, which I'm posting below as well. Any help you could give me solving this would be appreciated. Thanks alot!
Nuke
h& = _SNDOPEN("D:\qb64\dog.wav")
IF h& = 0 THEN BEEP ELSE _SNDPLAY h& 'check for valid handle before using!
Compiler message:
libqb\os\win\libqb_1_2_011100000000.o:libqb.cpp:(.text+0x621cf): undefined reference to `_speex_resampler_init'
libqb\os\win\libqb_1_2_011100000000.o:libqb.cpp:(.text+0x62313): undefined reference to `_speex_resampler_process_interleaved_int'
libqb\os\win\libqb_1_2_011100000000.o:libqb.cpp:(.text+0x62341): undefined reference to `_speex_resampler_destroy'
libqb\os\win\libqb_1_2_011100000000.o:libqb.cpp:(.text+0x6235d): undefined reference to `_speex_resampler_destroy'
d:/qb64/internal/c/c_compiler/bin/../lib/gcc/i686-w64-mingw32/4.7.1/../../../../i686-w64-mingw32/bin/ld.exe: libqb\os\win\libqb_1_2_011100000000.o: bad reloc address 0x524 in section `.data'
d:/qb64/internal/c/c_compiler/bin/../lib/gcc/i686-w64-mingw32/4.7.1/../../../../i686-w64-mingw32/bin/ld.exe: final link failed: Invalid operation
collect2.exe: error: ld returned 1 exit status