Author Topic: The audio skips jams!!!!  (Read 4053 times)

Salvo

  • Posts: 93
The audio skips jams!!!!
« on: 18 Jun '10 - 14:37 »
Greetings to all.
I have a problem with my program.
On some computers,
I tried to put the
BASS_CONFIG_UPDATEPERIOD between 5-50
and
BASS_CONFIG_BUFFER between 200-2000
but to no avail.
In these computer instead trying Library 2.3.0.1 the defect is not.
By default this library 2.4.5 ago after a couple of tracks that is not always the basic jumps.
sorry if the translation is not perfect.
Thank you for your help.
Salvo
« Last Edit: 2 Dec '10 - 08:23 by Salvo »

Ian @ un4seen

  • Administrator
  • Posts: 21368
Re: The audio skips jams!!!!
« Reply #1 on: 18 Jun '10 - 16:19 »
To determine whether the problem is something specific to your app, please try to reproduce it with the pre-compiled examples (in the C\BIN directory). Also check if BASS 2.4.6 helps at all.

Salvo

  • Posts: 93
Re: The audio skips jams!!!!
« Reply #2 on: 18 Jun '10 - 16:32 »
Ok. I'll let you know.

Salvo

  • Posts: 93
Re: The audio skips jams!!!!
« Reply #3 on: 1 Dec '10 - 15:22 »
Then I tried this with windows media player is basic functions, tested with Basstest 2.4.7 skips on windows 7 64bit.
the song you can download it from:
http://www.euroazienda2000.it/valerio.zip
Thanks

radio42

  • Posts: 4637
Re: The audio skips jams!!!!
« Reply #4 on: 1 Dec '10 - 16:34 »
I have also tried it and you are right.
The provided file doesn't play back correctly with the 2.4.7 bass.dll - I tested it with the pre-compiled basstest.exe.
WMP or Winamp plays it back just fine.

With an 'older' bass.dll it was fine too, but the 2.4.7 bass.dll introduces some kind of artifacts.
It sounds like very very little breaks or skips in the sound output.

Ian @ un4seen

  • Administrator
  • Posts: 21368
Re: The audio skips jams!!!!
« Reply #5 on: 1 Dec '10 - 17:27 »
BASS is detecting some corruption in the file's Huffman coding. When that happens, it silences the frame to avoid any unpleasent noises that can result from corruption.

I notice the file was created with LAME and has a sample rate of 24000 Hz. I tried creating some test files with LAME myself, and I was able to reproduce the problem with them too, but not when I tried any other sample rate. I'll look into why that is. In the meantime, the error detection/suppression can be disabled like this...

Code: [Select]
#define BASS_CONFIG_MP3_ERRORS 35
BASS_SetConfig(BASS_CONFIG_MP3_ERRORS, 1);

None of this applies to the "mp3-free" BASS version.

Salvo

  • Posts: 93
Re: The audio skips jams!!!!
« Reply #6 on: 2 Dec '10 - 08:22 »
I noticed that you also have problems very little breaks or skips in the sound output on the MIDI files on some computers with the module VSTi.
The problem I can not play it because it does not always but occasionally.
And I do not know if this is related to the previous problem.
If you can help this problem originated with the Library 2.4, with 2.3 and worked fine.
Hi
« Last Edit: 2 Dec '10 - 08:32 by Salvo »

Salvo

  • Posts: 93
Re: The audio skips jams!!!!
« Reply #7 on: 2 Dec '10 - 09:22 »

Code: [Select]
#define BASS_CONFIG_MP3_ERRORS 35
BASS_SetConfig(BASS_CONFIG_MP3_ERRORS, 1);
Even if I disable the errors, always breaks or skips in the sound output.

Salvo

  • Posts: 93
Re: The audio skips jams!!!!
« Reply #8 on: 2 Dec '10 - 12:33 »
None of this applies to the "mp3-free" BASS version.
Yes, it works, but there are too many files that do not work.
With WMP works, but with free mp3-no.
Type this:
http://www.euroazienda2000.it/OH_DIANA.ZIP
I hope you will find the error quickly, because there are too many files that do not work.
Hi

Ian @ un4seen

  • Administrator
  • Posts: 21368
Re: The audio skips jams!!!!
« Reply #9 on: 2 Dec '10 - 13:16 »
Code: [Select]
#define BASS_CONFIG_MP3_ERRORS 35
BASS_SetConfig(BASS_CONFIG_MP3_ERRORS, 1);
Even if I disable the errors, always breaks or skips in the sound output.

Is that with 2.4.6 or 2.4.7? The config option was added between releases (here), so isn't present in the 2.4.6 release. Anyway, it turns out the MP3 decoder had a small fault with 24000 Hz files, so it's just as well the error detection brought it to light! An update (2.4.7.1) to fix that problem is now up in the BASS package.

If you are still getting breaks in the sound, then I think that must be caused by something else, especially if it's affecting non-MP3. What buffer size (BASS_CONFIG_BUFFER) are you using, and does increasing that help? In the case of MIDI, perhaps the breaks are caused by sample loading; you could try using BASS_MIDI_StreamLoadSamples before starting playback.

With WMP works, but with free mp3-no.
Type this:
http://www.euroazienda2000.it/OH_DIANA.ZIP

That file sounds fine here. Are you having the problem when playing the file alone, or are you playing other streams at the same time? If the latter, delays in them (eg. MIDI sample loading) can affect the MP3 stream too. To avoid that, you could use multiple update threads (see BASS_CONFIG_UPDATETHREADS).

Salvo

  • Posts: 93
Re: The audio skips jams!!!!
« Reply #10 on: 2 Dec '10 - 14:28 »
It was 2.4.6.
With 2.4.7 it works:
Quote
# Define BASS_CONFIG_MP3_ERRORS 35
BASS_SetConfig (BASS_CONFIG_MP3_ERRORS, 1);

Yes I have a problem when playing the file OH_DIANA alone with mp3-free.

I do not use BASS_MIDI but I use a routine to load the midi file to be sent to VSTi BASS_VST to use.
Thank
Salvo

Ian @ un4seen

  • Administrator
  • Posts: 21368
Re: The audio skips jams!!!!
« Reply #11 on: 2 Dec '10 - 14:55 »
Yes I have a problem when playing the file OH_DIANA alone with mp3-free.

That's strange. Can you reproduce the problem with the pre-compiled CONTEST.EXE example in the C\BIN directory? If so, at what position(s) does it occur?

Salvo

  • Posts: 93
Re: The audio skips jams!!!!
« Reply #12 on: 2 Dec '10 - 15:35 »
Ok. I'll let you know.
« Last Edit: 2 Dec '10 - 15:37 by Salvo »

Salvo

  • Posts: 93
Re: The audio skips jams!!!!
« Reply #13 on: 2 Dec '10 - 15:48 »
Yes I have a problem when playing the file OH_DIANA alone with mp3-free.

That's strange. Can you reproduce the problem with the pre-compiled CONTEST.EXE example in the C\BIN directory? If so, at what position(s) does it occur?
However the problem is not the skip or breaks on file OH_DIANA, but the speed is reduced to 20% of the time.
He plays in slow motion.

Salvo

  • Posts: 93
Re: The audio skips jams!!!!
« Reply #14 on: 3 Dec '10 - 08:02 »
Yes I have a problem when playing the file OH_DIANA alone with mp3-free.

That's strange. Can you reproduce the problem with the pre-compiled CONTEST.EXE example in the C\BIN directory? If so, at what position(s) does it occur?
Tried today and I do not know why but now it's working.
Anyway thanks for the help.
Hi