19 Jun '13 - 15:01
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Help
Search
Login
Register
Un4seen Developments Forum
>
Developments
>
BASS
> Topic:
BASS_ChannelGetInfo problem (libbass.so linux x64)
Pages: [
1
]
« previous
|
next »
Reply
|
Print
Author
Topic: BASS_ChannelGetInfo problem (libbass.so linux x64) (Read 1123 times)
syntonetic
Posts: 10
BASS_ChannelGetInfo problem (libbass.so linux x64)
«
on:
15 Sep '11 - 13:31 »
Quote
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
Re: BASS_ChannelGetInfo problem (libbass.so linux x64)
«
Reply #1 on:
15 Sep '11 - 15:11 »
Quote
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
Re: BASS_ChannelGetInfo problem (libbass.so linux x64)
«
Reply #2 on:
16 Sep '11 - 10:20 »
Quote
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
Un4seen Developments Forum
>
Developments
>
BASS
> Topic:
BASS_ChannelGetInfo problem (libbass.so linux x64)
« previous
|
next »
Jump to:
Please select a destination:
-----------------------------
Developments
-----------------------------
=> BASS
=> XMPlay
=> MO3
-----------------------------
Off Topic
-----------------------------
=> General Discussion
Loading...