You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 17, 2024. It is now read-only.
Hey Zoel,
I've been trying to go off of your Finch Code to play multiple sounds at the same time. If the first sound is playing a pop occurs when the second sound begins which I think is a result of the sound not being preloaded to a buffer. I found some other source codes for openal around the web but they negate the ease of Finch.
- (void) play
{
// if (self.playing)
// [self stop];
CLEAR_ERROR_FLAG;
alSourcePlay(source);
[self checkSuccessOrLog:@"Failed to start sound"];
}
This eliminates the pop from the sounds if the sound is currently playing.
play1
play2 *pop*
play1 (play1 and play2 still playing) no pop
play2 (play1 and play2 still playing) no pop
play1 (play1 NOT currently playing and play2 still playing) *pop*
I hope that kind of makes sense. The pop occurs when a sound goes from a non playing state to a playing state while the other sound is playing.
Any advice would be appreciated. I'm been on this thing for weeks now.
Thanks,
Nick