Sign in to follow this  
lXciD

[OpenAL & oggVorbis] Small mono ogg files doesn't play

Recommended Posts

lXciD    122
Hi, recently I was developing a OpenAL Manager class. Its working fine except for one problem I am facing. Whenever I try to play mono ogg files, it sometimes work, sometimes don't work. :( This is frustrating. All I know is that this only happen to mono ogg files. If I put a breakpoint before it play, it will always work. But then if didn't put a breakpoint, it randomly work and don't work. Most of the time it don't work. I tried putting a while loop to generate a short pause at the place I put the breakpoint but still the random playing still exist. I actually tried recreating a new source whenever I tried to play a sound. This method of doing have no effect on stereo type ogg but cause random playing in mono type ogg. I am using OpenAL 1.1, Ogg 1.1.3 and Vorbis 1.1.2. Can anyone help me? If you need code, I have no problem in posting it ;)

Share this post


Link to post
Share on other sites
DMINATOR    240
Hi.


It is really hard to tell what could be the problem, I don't understand also what you mean by "mono ogg" ?. Anyway I can suggest that you can try few things.

1. There are examples included with OpenAL. Do they work fine, and do the files that are included with them work well with your code ?

2. Try to check for OpenAL errors. Especially when you start playing it. Also post this part of the code here.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this