[Openal] Sound artifacts/popping when repeatedly playing source

Shane Vitarana shanev at gmail.com
Fri Sep 26 12:53:28 PDT 2008


Hi Dan-

I ended up creating a pool of sources, and playing one from the pool
each time.  Seems to work fine for now.  I never got to the bottom of
finding out why the clicking occurred only for one particular source.

Thanks!
Shane

On Fri, Sep 26, 2008 at 4:51 AM, Daniel PEACOCK
<dpeacock at creativelabs.com> wrote:
> 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>
>
>
> "Shane Vitarana" <shanev at gmail.com>
> Sent by: openal-bounces at opensource.creative.com
>
> 09/25/2008 10:37 PM
>
> To
> openal at opensource.creative.com
> cc
>
> Subject
> [Openal] Sound artifacts/popping when repeatedly playing source
> 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
>



-- 
iPhone Apps: http://crimsonjet.com


More information about the Openal mailing list