Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Nuke

Pages: [1]
1
QB64 Discussion / Re: Compiler issue with sound commands
« on: September 23, 2018, 01:00:12 pm »
No worries, thanks for looking into it.  I'll just use the _SNDRAW command instead as a work around.  It seems to work for some reason.
This is frustrating, though.  There's very little to be gained from solving this issue, even for me, but unresolved errors drive me crazy.  If you hear of any developments, please let me know.

Sometimes coding seems like two steps forward, one step backwards, and not always in that order. 

2
QB64 Discussion / Re: Compiler issue with sound commands
« on: September 22, 2018, 11:57:22 pm »
Thanks Fellippe,

That was a good idea.  I was using the version that the Windows 10 latest stable link was pointing to.  I downloaded and tried the e490b1a build.  Installed and tried running it as administrator, and just entered the single line a& = _SNDOPEN("dog.wav") and got the same compiler error message.  Good try though. 

3
QB64 Discussion / Re: Compiler issue with sound commands
« on: September 22, 2018, 09:32:05 pm »
Hi TempoidBasic,

Sorry, thought I'd mentioned that.  The error message is coming up using QB64, 32 bit version 1.2, Revision 20180202/85 From git 1d0f920.

I'm attaching a specifications file from Windows 10 showing all versions of O/S and driver information on my system.  The compiler error message doesn't give version information that I can see.

The simple line B& =_SNDOPEN("D:\qb64\dog.wav") compiled results in the error message in the IDE window below.  C++ Compilation Failed (Check .\internal\temp2\compilelog.txt), and that file contains the following text.

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

4
QB64 Discussion / Re: Compiler issue with sound commands
« on: September 22, 2018, 06:45:46 pm »
Hi Fellippe,

Well, hmm.  I tried pasting your program and compiling it after changing it to access the correct drive and directory for the sulc.mp3.  It gave me the same compiler error message.  I then changed the program to point to an MP3 file that didn't even exist, and it gave me the same compiler error message.  I don't believe it's even getting to the point that it's looking at the sound file before it crashes the compiler.  My guess is something is going on with my sound drivers and how they are allocated by Windows 10.  I tried running QB64 as the administrator, but that didn't seem to make any difference.  I'm obviously way out of my depth here.  Here's the compiler message that it generated again.  Thanks for looking at this.

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

5
QB64 Discussion / Re: Compiler issue with sound commands
« on: September 22, 2018, 04:22:14 pm »
And Petr, thanks for taking the time to look into it further.  I'll load a previous version of the compiler build as TempodiBasic suggested and see if the compile error still persists.  I'll let you know.

Regardless, I'll wait for an updated version of QB64 to try and use these commands.  I'll just use _SNDRAW for now.

Thanks man!

6
QB64 Discussion / Re: Compiler issue with sound commands
« on: September 22, 2018, 04:19:12 pm »
Hi TempodiBasic,

That's interesting.  The previous build you're running has no issues with _SNDOPEN or _SNDPLAY?  Then I would guess this issue is something that was introduced since then, maybe in the last build.  I'm going to download the version you're using and test it to see if I have issues with _SNDPLAY using it.   To be clear, that program was Petr's, not mine.  My issue was just getting these two lines to even compile.

h& = _SNDOPEN("D:\qb64\dog.wav")
IF h& = 0 THEN BEEP ELSE _SNDPLAY h& 'check for valid handle before using!

I get a compiler error message from these two lines of code.  It's not a run-time issue really.  But now I suspect this is being caused by the latest build of the compiler.

I'll let you know if I get the error using the version of QB64 that you're using.  Thanks for the reply!

7
QB64 Discussion / Re: Compiler issue with sound commands
« on: September 22, 2018, 12:39:59 pm »
Hi Petr!

Thanks for the reply.  This is a really nice little program.  Beautifully done.  And yes, it works fine for me.  I don't encounter any errors when playing the full length of your sulc.mp3 file, or my dog.wav or anything else that I've tried so far.  Not sure why it would start generating noise at the 1:35 mark for your, unless perhaps its a memory issue with the _SNDRAW command.  My computer may have a more memory perhaps?  Regardless, I didn't encounter any error playing the full length of sulc.mp3.

I'll use _SNDRAW and an encoder to work around the issues with _SNDOPEN and _SNDPLAYFILE for now. 

Did you also encounter errors using _SNDOPEN or _SNDPLAYFILE on this latest build?  Or is this just me?

8
QB64 Discussion / Compiler issue with sound commands
« 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




Pages: [1]