Problems playing certain Ogg files with OpenAL Soft

View: New views
2 Messages — Rating Filter:   Alert me  

Problems playing certain Ogg files with OpenAL Soft

by Stevens, Peter :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Im having problems playing certain multi-channel ogg files. So far I've
tracked the problem down to openal soft detecting that my audio buffer
does not contain the same amount of data per channel ; internally openal
soft is performing "(size % (bytesPerChannel * numChannels))==0" which
is returning non-zero. The strange thing is that the wav channels are
all clipped to be the same length. I'm wondering if the issue is with
the ogg vorbis libraries; had anybody had any similar issues? If I
neuter the sanity check everything seems to play just fine? The setup up
Im using is as follows

kernel 2.6.21
alsa audio driver
openal-soft-1.4.272
libogg-1.1.3        
libvorbis-1.1.2


_______________________________________________
Openal mailing list
Openal@...
http://opensource.creative.com/mailman/listinfo/openal

Re: Problems playing certain Ogg files with OpenAL Soft

by Chris Robinson-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thursday 10 July 2008 01:00:55 pm Stevens, Peter wrote:
> Im having problems playing certain multi-channel ogg files. So far I've
> tracked the problem down to openal soft detecting that my audio buffer
> does not contain the same amount of data per channel ; internally openal
> soft is performing "(size % (bytesPerChannel * numChannels))==0" which
> is returning non-zero. The strange thing is that the wav channels are
> all clipped to be the same length. I'm wondering if the issue is with
> the ogg vorbis libraries; had anybody had any similar issues?

I can't say I've heard or seen issues like that (that wasn't due to errors in
my own lading code, anyway). Can you paste your code? If the channel data is
unaligned, which would be odd (don't think many encoders would allow that),
you may need to clip the last frame so each channel has the same number of
samples.
_______________________________________________
Openal mailing list
Openal@...
http://opensource.creative.com/mailman/listinfo/openal