Problems with the Music class

Maybe I'm just doing this wrong (which is very likely) but I can't seem to get the Music class to play anything.

dim m as new Music("test.ogg")

raises a NotSupportedException, with the message, "Could not find a decoder for the specified sound stream." This also happens with mp3, wav, and midi files.

(I'm using AgateLib 0.3.1, with VB.NET under VS2008)

kanato
Posted - Wed, 05/06/2009 - 16:47

Can you post some more information about this? What OS are you using? Which driver for audio (AgateMDX, AgateSDL, AgateOTK)? Can you post a stack trace for the exception?

Unfortunately, the file formats that are accepted are dependent on the driver, I think only wav files are supported in OpenAL (used with AgateOTK). Support for ogg through AgateSDL depends on having SDL_music built with ogg/vorbis libraries or having them present on the system. IIRC support for ogg through AgateMDX depends on having the Ogg Vorbis DirectShow filters installed.