19 Jun '13 - 15:01 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Reply  |  Print  
Author Topic: BASS_ChannelGetInfo problem (libbass.so linux x64)  (Read 1123 times)
syntonetic
Posts: 10


« on: 15 Sep '11 - 13:31 »
Reply with quoteQuote

Hi Un4seen

We are experiencing some weird behaviour when calling BASS_ChannelGetInfo againt libbass.so for linux x64, the latest released version. It gives the same regardless of whether it's opened with an MP3 or Ogg file.

Code to reproduce:
       
        // BASS_Init and BASS_StreamCreateFile are called with success prior to this:       
   BASS_CHANNELINFO Info;
   int getInfoRes = BASS_ChannelGetInfo(Chan0, &Info);
   cout << "getInfoRes " << getInfoRes << endl;
   cout << "ctype " << Info.ctype << endl;
   cout << "chans " << Info.chans << endl;
   cout << "freq " << Info.freq << endl;

Giving output:
getInfoRes 1
ctype 0
chans 281483568742400
freq 8589978692

Besides this call to BASS_ChannelGetInfo, all other functions seems to work well. Init, GetData, SetPosition e.t.c.

Do you have an idea about what might be the issue here?

Thanks in advance
bgrs Soren

Logged
Ian @ un4seen
Administrator
Posts: 15363


« Reply #1 on: 15 Sep '11 - 15:11 »
Reply with quoteQuote

I don't seem to be able to reproduce that here, so that's a bit puzzling. If you try running your code under the debugger and step over the BASS_ChannelGetInfo call, do you see the "Info" structure contents change or does it remain the same as prior to the call? If it does change, please post the contents as a byte array (rather than a structure). Please also confirm what compiler you are using.
Logged
syntonetic
Posts: 10


« Reply #2 on: 16 Sep '11 - 10:20 »
Reply with quoteQuote

Hi

I'm compiling with gcc (Debian 4.4.5-8) 4.4.5 on a 64 bit machine.

You lead me on to the source of the problem. I accidently had a #define DWORD unsigned long
lying around from a previous porting. It became 64bit on this platform.
The struct contains the right values, but as 32bit uint as it should be.

Problem solved. Thanks a lot.

/Soren
Logged
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines