[Openal] Re: Openal Digest, Vol 38, Issue 6
Robert Smyth
macgabhr at tcd.ie
Sun May 10 07:37:26 PDT 2009
I am using Microsoft visual basic. The Doppler effect is enabled however is
set to default (1) and I am currently not varying the pitch. The hardware is
all up to spec. I am using the standard openal implementation in order to
produce a sound, set listener position, velocity,alutLoadWAVFile,play the
sound stop the sound destroy the sound etc. The programme in full works fine
but like i explained above a clicking after each loop can be clearly heard.
Below is the function I am using to simulate the pass by of a car. The wav
file being loaded at the minute is a one second recording of an engine.
Delay_ms is set up so i can loop at the appropriate speed, I think my error
may be coming from incorrect splicing of the my wav file
void ALSound::PassBy()
{
for(float x = 10; x > -10; x = x-.5)
{
float z = -10;
float y = 0;
cout << x << y << z;
sound.SetProperties(x,y,z,0,0,0);
sound.PlayALSound();
delay_ms(1000);
}
sound.StopSound();
printf("\nThat's the loop done - hit Return to select again or X to
exit\n");
}
2009/5/9 <openal-request at opensource.creative.com>
> Send Openal mailing list submissions to
> openal at opensource.creative.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://opensource.creative.com/mailman/listinfo/openal
> or, via email, send a message with subject or body 'help' to
> openal-request at opensource.creative.com
>
> You can reach the person managing the list at
> openal-owner at opensource.creative.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Openal digest..."
>
>
> Today's Topics:
>
> 1. Re: Popping or clicking at the end of sound loop (Jason Daly)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 08 May 2009 17:32:24 -0400
> From: Jason Daly <jdaly at ist.ucf.edu>
> Subject: Re: [Openal] Popping or clicking at the end of sound loop
> To: Robert Smyth <macgabhr at tcd.ie>
> Cc: "openal at opensource.creative.com" <openal at opensource.creative.com>
> Message-ID: <4A04A4E8.6040107 at ist.ucf.edu>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Robert Smyth wrote:
> > My program is set up so as the listener will experience a car noise
> > source pass by from his right to left i.e so as to simulate traffic.
> > In order for the sound to be updated to the speaker system
> > (headphones) the coordinates of the source are updated every meter in
> > the x direction. The wav files I have are edited so that when they
> > loop its as if theres no gap between them like a continuous sound but
> > as the coordinates up date the sound appears to get closer and then
> > further away as it passes by. My problem is that when i Load the
> > sound, after each snippet is played at each position a clicking or
> > popping is being heard by the listener before ech repition of the
> > source through the headphones which destroys the purpose of the code.
> > If anyone has any ideas of how to solve this problem I would
> > appreciate it.
>
> What OS are you using?
>
> What OpenAL implementation?
>
> What hardware?
>
> Do you have the Doppler effect enabled or disabled, or are you changing
> the pitch of the sound at all?.
>
> --"J"
>
>
>
> ------------------------------
>
> _______________________________________________
> Openal mailing list
> Openal at opensource.creative.com
> http://opensource.creative.com/mailman/listinfo/openal
>
>
> End of Openal Digest, Vol 38, Issue 6
> *************************************
>
>
--
Robert Smyth
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://opensource.creative.com/pipermail/openal/attachments/20090510/2ddca5b3/attachment-0001.html
More information about the Openal
mailing list