Re: OpenAl Start/Stop crackle/pop
Re: OpenAl Start/Stop crackle/pop
- Subject: Re: OpenAl Start/Stop crackle/pop
- From: Bob Lang <email@hidden>
- Date: Wed, 7 Jan 2009 22:27:27 +0000
Hi
I'm not at all familiar with OpenAl, but I think that a general way to
stop the crackle problem is to rapidly ramp the volume down to 0
before stopping, and then rapidly ramp it back up after restarting.
By "rapidly" I'm thinking of a period of a few tens of milliseconds,
but you'd have to play with it to choose the correct values.
Bob
--
On 7 Jan 2009, at 21:33, Stefan Alder wrote:
I'm using OpenAl to play a view different looping sounds. On
calling alSourceStop, a crackle/pop sound is frequently produced.
AlSourceStart then also produces a similar sound.
1) Stop crackle
It seems that alSourceStop causes the sound to stop immediately,
sometimes when the waveform amplitude is > 0, in turn causes the
crackle. I can understand this, but I'm wondering if anyone can
recommend a way to minimize this, i.e. perhaps stopping the sound
when the waveform passes through 0?
2) Start crackle
Before calling alSourceStart, the buffers are unqueued from the
source, which as far as I can understand should clear the soure
queue. But, it seems that some samples are left in the source's
queue from the previous playback. Is there anyway to clear these?
Thanks!
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden