Author Topic: Compiler issue with sound commands  (Read 12500 times)

0 Members and 1 Guest are viewing this topic.

Offline Petr

  • Forum Resident
  • Posts: 1720
  • The best code is the DNA of the hops.
    • View Profile
Re: Compiler issue with sound commands
« Reply #30 on: September 29, 2018, 02:13:02 am »
Quote
And try the latest version (the development build, not the stable build).  I remember Luke pushing changes to fix issues like these for us.  Check to see if the problem has already been addressed, please.

So. Downloaded ver 2018-09-24.

Code: QB64: [Select]
  1. _SNDPLAYFILE ("dog.wav")
  2.  
(file is in the same directory)

program output error:

libqb\os\win\libqb_1_2_011100000000.o:libqb.cpp:(.text+0x61903): undefined reference to `_mp3_create'
libqb\os\win\libqb_1_2_011100000000.o:libqb.cpp:(.text+0x6194b): undefined reference to `_mp3_decode'
e:/qb64 2018-09-24/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'
e:/qb64 2018-09-24/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

and the same output for MP3, OGG...

Offline TempodiBasic

  • Forum Resident
  • Posts: 1792
    • View Profile
Re: Compiler issue with sound commands
« Reply #31 on: September 29, 2018, 03:11:50 am »
Hi guys
just an observation,  maybe it is useful

I have seen into your reports of errors this costant....

Quote
Petr:

e:/qb64 2018-09-24/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'
e:/qb64 2018-09-24/internal/c/c_compiler/bin/../lib/gcc/i686-w64-mingw32/4.7.1/../../../../i686-w64-mingw32/bin/ld.exe: final link failed: Invalid operation

Quote
Nuke:
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

in both the  issue it seems that QB64 is not in c:, so maybe that some inner components of compiler search into a fixed path c:

I'll do a try using QB64 on a different  logical drive(not c:)

See later
Programming isn't difficult, only it's  consuming time and coffee

Offline Petr

  • Forum Resident
  • Posts: 1720
  • The best code is the DNA of the hops.
    • View Profile
Re: Compiler issue with sound commands
« Reply #32 on: September 29, 2018, 04:37:53 am »
One more comment on the development version. If is program compiled in new ide, is exe size up to 600 kilobites bigger, than if is the same program compiled in older ide.
(this program is not published here and use many BI and BM files)

I dont know.... teapot save 20 kilobytes of binary data..... so you muss kill next 30 teapots....  :-D  I know, you do not like me for this speech. :-D

let´s do teaparty!

I'm sorry, but I'm going to programing (in the old ide), I'd like to move a little bit forward. So far.
« Last Edit: September 29, 2018, 04:45:04 am by Petr »

Offline Bert22306

  • Forum Regular
  • Posts: 206
    • View Profile
Re: Compiler issue with sound commands
« Reply #33 on: September 29, 2018, 05:29:53 am »
Same here. I attached the compilelog.txt file, when trying to run a slightly modified version of Fellippe's player. The program won't compile, with the latest development build. But other programs I tried do compile.

I also tried to compile a somewhat more modified player, still Fellippe's basic code though, and get the same result.

I only see references to missing mp3 components.
« Last Edit: September 29, 2018, 05:34:10 am by Bert22306 »

Offline Cobalt

  • QB64 Developer
  • Forum Resident
  • Posts: 878
  • At 60 I become highly radioactive!
    • View Profile
Re: Compiler issue with sound commands
« Reply #34 on: September 29, 2018, 10:13:53 am »
the bug must have been introduced lately, cause the program crashes with the current DB, so something between build 82 and current has broken something apparently.

something between 1.1 20171106/82  and 1.2 20180202/85
unfortunately I don't have any of the builds between there to narrow down what was changed when further.
« Last Edit: September 29, 2018, 10:23:04 am by Cobalt »
Granted after becoming radioactive I only have a half-life!

FellippeHeitor

  • Guest
Re: Compiler issue with sound commands
« Reply #35 on: September 29, 2018, 10:19:50 am »
In trying to fix the sound issue for 64bit Linux this regression was introduced. I highly recommend everyone to have a peek at the issues page from time to time: https://github.com/Galleondragon/qb64/issues/68

Offline Cobalt

  • QB64 Developer
  • Forum Resident
  • Posts: 878
  • At 60 I become highly radioactive!
    • View Profile
Re: Compiler issue with sound commands
« Reply #36 on: September 29, 2018, 10:25:03 am »
not just 64bit windows, versions I'm running are 32bit.
Granted after becoming radioactive I only have a half-life!

FellippeHeitor

  • Guest
Re: Compiler issue with sound commands
« Reply #37 on: September 29, 2018, 10:36:50 am »
Noted.

Offline Cobalt

  • QB64 Developer
  • Forum Resident
  • Posts: 878
  • At 60 I become highly radioactive!
    • View Profile
Re: Compiler issue with sound commands
« Reply #38 on: September 29, 2018, 11:56:17 am »
Give it a try with this version of your wav file, I buffered it out to 16k(16452 bytes actually) see if that works for anybody else.
Dog.wav
11025hz
mono
8bit
1.488 seconds long

any file size smaller than that still causes a crash or noise on my windows vista computer.
Granted after becoming radioactive I only have a half-life!

Offline TempodiBasic

  • Forum Resident
  • Posts: 1792
    • View Profile
Re: Compiler issue with sound commands
« Reply #39 on: September 29, 2018, 12:23:53 pm »
Hi Guys
please cancel my theory about location of drive, tested on  E: and it works well in QB64 dev (I think 32bit) on windows 10 64bit.
Thanks to read
Programming isn't difficult, only it's  consuming time and coffee

Offline Bert22306

  • Forum Regular
  • Posts: 206
    • View Profile
Re: Compiler issue with sound commands
« Reply #40 on: October 02, 2018, 09:32:38 pm »
Thanks, developers! Just installed the 2018-10-01 development build, and noticed two nice things:

1. My music player works again, although the monoaural files still play too fast. Must be tricky getting that fixed for Linux and Windows at the same time!! Stereo is flawless. Also had one recurrence of the compilation error when trying to load a mono wav file, but on the second attempt, it loaded and played (too fast).

2. I like the line numbers showing up in the IDE. Well done. Plus, the width of that column depends on how many lines your program has, so it's as narrow as possible.

All in all, a happy improvement over the 2018-09-24 version (or whatever it was that broke the music player).
« Last Edit: October 02, 2018, 09:35:27 pm by Bert22306 »

FellippeHeitor

  • Guest
Re: Compiler issue with sound commands
« Reply #41 on: October 02, 2018, 09:40:24 pm »
Good to hear!

Offline Bert22306

  • Forum Regular
  • Posts: 206
    • View Profile
Re: Compiler issue with sound commands
« Reply #42 on: October 09, 2018, 11:06:14 pm »
I've been looking specifically at troublesome .wav files. This one won't load at all. My modified Fellippe player acts as if I'm misspelling the file name, beeps at me, and gets me back to the input statement. It does play with WMP though.

(Latest development build, 2018-10-1.)
« Last Edit: October 09, 2018, 11:07:34 pm by Bert22306 »

FellippeHeitor

  • Guest
Re: Compiler issue with sound commands
« Reply #43 on: October 09, 2018, 11:11:36 pm »
I'll grab the file and see if there's something within my reach. Thanks for reporting.

FellippeHeitor

  • Guest
Re: Compiler issue with sound commands
« Reply #44 on: October 09, 2018, 11:14:33 pm »
Not even Petr's raw wave player could handle this one. What are the specs?