[Openal] Sound artifacts/popping when repeatedly playing source
Daniel PEACOCK
dpeacock at creativelabs.com
Fri Sep 26 02:51:42 PDT 2008
Hi Shane,
Stopping a source prematurely can cause clicks. You could try setting the
gain to 0 before making the stop call (which might allow the implementation
to ramp the volume to silence over a short period of time), or you can try
ramping the volume yourself to silence before calling stop.
Dan
Creative Labs (UK) Ltd.
Notice
The information in this message is confidential and may be legally
privileged. It is intended solely for the addressee. Access to this
message by anyone else is unauthorized. If you are not the intended
recipient, any disclosure, copying or distribution of the message, or
any action taken by you in reliance on it, is prohibited and may be
unlawful. If you have received this message in error, please delete it
and contact the sender immediately. Thank you.
"Shane Vitarana"
<shanev at gmail.com
> To
Sent by: openal at opensource.creative.com
openal-bounces at op cc
ensource.creative
.com Subject
[Openal] Sound artifacts/popping
when repeatedly playing source
09/25/2008 10:37
PM
I experience a clicking sound when repeatedly playing a source after
it has been played once. It only seems to happen if it is played
before the previous play finishes. However, I am making sure that the
source is stopped before playing it again. I have multiple sources in
my app and this only happens for a certain low frequency source. The
clicking sound is milder if I apply a compression filter to the audio,
although it doesn't entirely go away.
I have tried sampling at 44 kHz, 22 kHz, with 16-bit mono and stereo
channels, using linear PCM encoding.
Anyone experience anything like this? Are there any guidelines on how
sounds are best encoded for OpenAL playback?
Thanks,
Shane
--
iPhone Apps: http://crimsonjet.com
_______________________________________________
Openal mailing list
Openal at opensource.creative.com
http://opensource.creative.com/mailman/listinfo/openal
ForwardSourceID:NT000652C6
More information about the Openal
mailing list