« Return to Thread: Re: Openal Digest, Vol 38, Issue 6

Re: Openal Digest, Vol 38, Issue 6

by Robert Smyth :: Rate this Message:

Reply to Author | View in Thread

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@...>
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:

  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@...>
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

 « Return to Thread: Re: Openal Digest, Vol 38, Issue 6