25 May '13 - 21:32
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:
one StreamCreateFile works, one fails
Pages: [
1
]
« previous
|
next »
Reply
|
Print
Author
Topic: one StreamCreateFile works, one fails (Read 369 times)
jon
Posts: 8
one StreamCreateFile works, one fails
«
on:
12 Apr '12 - 23:03 »
Quote
okay so i've had someone run into issues with a game of mine on their computer. i went ahead and added some code to write out some error codes from Bass to see if i could pinpoint the issue.
loading a song works fine (mp3 file, using "mp3-free" Bass) and the music can be heard using ->
m_hsCurrentSong = BASS_StreamCreateFile(FALSE, fileName, 0, 0, BASS_UNICODE);
however my next call is to make a separate stream to decode data from the song for 'beat detection'
Bass throws an error code 44 when attempting this ->
m_hsDecodingChannel = BASS_StreamCreateFile(FALSE, fileName, 0, 0, BASS_STREAM_DECODE | BASS_STREAM_PRESCAN | BASS_UNICODE);
the docs say this is BASS_ERROR_CODEC, which i figured it would be beforehand. but i didn't think the song would load at all, and i'm confused as to why either the decode or prescan flag would create this error?
i had him run the wmfdist.exe before this but still the same. the machine is running XP service pack 3 (it's a russian version).
any ideas?
Logged
Ian @ un4seen
Administrator
Posts: 15276
Re: one StreamCreateFile works, one fails
«
Reply #1 on:
13 Apr '12 - 15:35 »
Quote
That's strange. I think it's unlikely that the problem is related to the flags, but perhaps the user has installed an MP3 codec that doesn't support decoding more than one stream at a time. What BASS.DLL version is being used? If it's older than 2.4.5, please try upgrading, as Windows' default MP3 codec is preferred over any other installed MP3 codec since then.
Logged
jon
Posts: 8
Re: one StreamCreateFile works, one fails
«
Reply #2 on:
14 Apr '12 - 01:31 »
Quote
Hmm well version 2.4.6 was being used but I changed to the newest version and it started working
Still no idea what might have been going wrong before but it's fixed now. Thanks
Logged
Pages: [
1
]
Reply
|
Print
Un4seen Developments Forum
>
Developments
>
BASS
> Topic:
one StreamCreateFile works, one fails
« previous
|
next »
Jump to:
Please select a destination:
-----------------------------
Developments
-----------------------------
=> BASS
=> XMPlay
=> MO3
-----------------------------
Off Topic
-----------------------------
=> General Discussion
Loading...