[Openal] loading ogg file problem
Sven Panne
sven.panne at benqmobile.com
Wed Nov 15 05:21:06 PST 2006
> -----Original Message-----
> From: openal-bounces at opensource.creative.com
> [mailto:openal-bounces at opensource.creative.com] On Behalf Of
> crazeemazee at tiscali.co.uk
> Sent: Mittwoch, 15. November 2006 13:37
> To: openal at opensource.creative.com
> Subject: [Openal] loading ogg file problem
>
> Hi
> I can load wav files using freelut - but couldn't get
> anywhere with the ogg files.
> The wav files and the ogg files were all created from the
> Audacity sound editting tool.
> I ripped some songs from a cd to wav, loaded them into
> Audacity - created new mono audio track from this - exported
> to wav format and then exported to ogg format. The wav files
> load up and play ok whereas the ogg files seem to load but no
> sound can be heard on playing. When I call the OpenAL error
> function no errors are returned after loading the ogg file though.
> [...]
The reason for this is quite simple: freealut can't handle Ogg Vorbis
yet. From an architectural point there are no obstacles, it just hasn't
been implemented yet. I can't promise to add this in the next few weeks,
it depends on my workload and my spare time, but of course patches are
always happily accepted (<= hint ;-).
In the meantime you can stream Ogg Vorbis into OpenAL directly using
libvorbisfile, it is not that complicated, see e.g.
http://www.gamedev.net/reference/articles/article2031.asp or
http://www.devmaster.net/articles/openal-tutorials/lesson8.php.
One note regarding errors: ALUT errors are reported via alutGetError
(and the related alutGetErrorString), not via alGetError/alcGetError, so
testing for the latter won't help in our case.
Cheers,
S.
More information about the Openal
mailing list