Author Topic: Certain mp3 files do not play properly.  (Read 555 times)

Lignuz

  • Posts: 24
Certain mp3 files do not play properly.
« on: 8 Apr '19 - 08:48 »
When playing the attached mp3 file, it played normally when i tried the old version of bass.dll (2.4.12.1).

However, when playing back through the latest version of bass.dll (2.4.13.25 and 2.4.14.0),
the beginning of the audio is removed and only the back side is played for about 0.3 secondes.

please check.
Thank you.
« Last Edit: 8 Apr '19 - 09:29 by Lignuz »

Steve Grant

  • Posts: 179
Re: Certain mp3 files do not play properly.
« Reply #1 on: 8 Apr '19 - 11:56 »
I am using 2.4.14 and I get a full 2 seconds of a woman talking.

Ian @ un4seen

  • Administrator
  • Posts: 22121
Re: Certain mp3 files do not play properly.
« Reply #2 on: 8 Apr '19 - 15:16 »
Yep, 2 seconds here too. Please see if you can reproduce the problem with the pre-compiled examples included in the BASS package (C\BIN folder).

Lignuz

  • Posts: 24
Re: Certain mp3 files do not play properly.
« Reply #3 on: 9 Apr '19 - 03:42 »
As you mentioned, it seems there is no problem with the default settings.
So I checked my code a bit more, I've found the point where the problem occurred.

Due to the following issues,
- http://www.un4seen.com/forum/?topic=17984.msg126300

after BASS_Init, I added the following function call.
- BASS_SetConfig(BASS_CONFIG_VERIFY, 100000);   // default : 16000

Before adding the code above,
BASS_ChannelGetLength (chan, BASS_POS_BYTE) returns 412604,
After adding the code,
BASS_ChannelGetLength (chan, BASS_POS_BYTE) returns 62396.

Without BASS_CONFIC_VERIFY setting, It played well.

Do I have to change the setting according to the file?
If so, can I see which settings are correct?

Thanks.



Ian @ un4seen

  • Administrator
  • Posts: 22121
Re: Certain mp3 files do not play properly.
« Reply #4 on: 9 Apr '19 - 17:53 »
The problem is that the file has some corruption, and the higher BASS_CONFIG_VERIFY setting is allowing BASS to skip past it. In this case, it would probably be better not to skip it. Here's an update that do that regardless of BASS_CONFIG_VERIFY setting:

   www.un4seen.com/stuff/bass.zip

Let me know if you get problems with any other files.