23 May '13 - 21:18 *
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: Trouble with BASS_SAMPLE_FX flag.  (Read 1669 times)
Azoth
Posts: 107


« on: 21 Jun '02 - 03:26 »
Reply with quoteQuote

Using BASS 1.6 and opening an MP3 file using the BASS_SAMPLE_FX flag works perfectly, no errors or anything. The problem happens at about 3 seconds from the end of the stream. Everything hangs for about 1/2 second, and the audio pops (Volume seems to go to 100%, scratchy audio) Is there anything special that happens when a stream opened using BASS_SAMPLE_FX is freed? On fast machines it's not noticable but on 500-750Mhz machines with Win98/2000 and XP it is very noticable.

Any help would be great.
Howard
Logged
Ian @ un4seen
Administrator
Posts: 15270


« Reply #1 on: 21 Jun '02 - 09:50 »
Reply with quoteQuote

I'm slightly confused... does the problem happen when you free the stream, or does it happen 3 seconds from the end? Or maybe, it's when you free it 3 seconds from the end? Smiley

Also, does the problem happen with every file you try, or a specific file? If it's a specific file, please upload it.
Logged
Azoth
Posts: 107


« Reply #2 on: 21 Jun '02 - 20:47 »
Reply with quoteQuote

Sorry for the confusion, it was kinda late Smiley
I am essential crossfading 2 steams. As the first stream is about 10 seconds from the end, I trigger a timer. inside the timer it calculates the new volume of the stream fading off and the stream fading on, increasing the 2nd stream volume and decreasing the 1st stream volume. Once the first stream reaches a volume level of 0, BASS_ChannelStop is called. What seems to happen is that with some streams, about 3 seconds from the end of the stream, everything stops. The timer stops, and a loud "pop" is heard. It appears that the buffer is being refilled with the data from the start of stream #1, but at full volume. This doesn't happen with EVERY file, but it will alwasy happen with the same file. My first instict was that it was a few bad files, but if I play the same file by fading it off by itself, without crossfading, everything works fine, no "pop" It seems to be most noticable with songs that start out really loud.

This is mind-bogling as this all worked with 1.5?

I can write a quick test app with a few files that ALWAYS do it, if it would help?
Logged
Azoth
Posts: 107


« Reply #3 on: 21 Jun '02 - 21:16 »
Reply with quoteQuote

Playing around with the BASS_SetBufferLength function returned some interesting results. By default I always used a value of 2 (Max). For the hell of it I tried 1, and viola the "pop" stopped. It reappears with any value > 1.5. Not sure why, maybe it has something to do with using BASS_ChannelSetFX and with a large buffer. VERY weird.
Logged
Ian @ un4seen
Administrator
Posts: 15270


« Reply #4 on: 23 Jun '02 - 11:42 »
Reply with quoteQuote

Yes, please send the test app. Thanks.
Logged
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines