|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
|
|
|
Re: Re: Openal Digest, Vol 38, Issue 6Hi, What does sound.PlayALSound() do exactly? In OpenAL, calling alSourcePlay on a Source that is already playing causes it start to start playing from the beginning. You will never be able to make a seemless loop by making repeated calls to alSourcePlay at the time you think the sample finishes playing, you will inevitably re-start the file too early or too late, both of which could cause an audible glitch. Instead, you can enable looping on the Source itself, using alSourcei(sourceID, AL_LOOPING, AL_TRUE) and only call alSourcePlay once. 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. Creative Labs UK Ltd company number 2658256 registered in England and Wales at Belmont Road, Belmont Place, Maidenhead, Berkshire, SL6 6TB Robert Smyth <macgabhr@...> Sent by: To openal-bounces@op openal@... ensource.creative cc .com Subject [Openal] Re: Openal Digest, Vol 38, 05/10/2009 03:37 Issue 6 PM 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() { -10; sound.SetProperties(x,y,z,0,0,0); delay_ms(1000); loop done - hit Return to select again or X to exit\n"); } 2009/5/9 <openal-request@...> Send Openal mailing list submissions to openal@... 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@... You can reach the person managing the list at openal-owner@... When replying, please edit your Subject line so it is more specific than "Re: Contents of Openal digest..." Today's Topics: (Jason Daly) ---------------------------------------------------------------------- Message: 1 Date: Fri, 08 May 2009 17:32:24 -0400 From: Jason Daly <jdaly@...> Subject: Re: [Openal] Popping or clicking at the end of sound loop To: Robert Smyth <macgabhr@...> Cc: "openal@..." <openal@...> Message-ID: <4A04A4E8.6040107@...> 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@... http://opensource.creative.com/mailman/listinfo/openal End of Openal Digest, Vol 38, Issue 6 ************************************* -- Robert Smyth_______________________________________________ Openal mailing list Openal@... http://opensource.creative.com/mailman/listinfo/openal ForwardSourceID:NT0006BB26 _______________________________________________ Openal mailing list Openal@... http://opensource.creative.com/mailman/listinfo/openal |
| Free embeddable forum powered by Nabble | Forum Help |