Hi, I'm working on making a game in VB2008, and I'm hoping to use OGG Vorbis-format music (because ogg files are tiny =D) in it. I've googled for info on doing this, but all I've found are dead links and non-free implementations... and when I tried compiling libogg ages ago on Windows, I completely failed. I've already worked out how to use DirectSound, so I really just need to be able to read stuff like length, sample rate, sample format, etc from the header and decompress the audio data into a byte array so it can be played (or indeed modified) later. Can anyone either a) fill me in on exactly how to compile libogg/libvorbis into a DLL, or b) provide such a DLL so I can add a reference to it (I assume there would then be documented functions for e.g. the decompression algorithm available)?
http://www.illiminable.com/ogg/ Should give you all you need. Cheers, Silvia. On Wed, Mar 12, 2008 at 4:05 AM, Keiji Ikari <kei@teamikaria.com> wrote:> Hi, > > I'm working on making a game in VB2008, and I'm hoping to use OGG > Vorbis-format music (because ogg files are tiny =D) in it. I've > googled for info on doing this, but all I've found are dead links and > non-free implementations... and when I tried compiling libogg ages ago > on Windows, I completely failed. > > I've already worked out how to use DirectSound, so I really just need > to be able to read stuff like length, sample rate, sample format, etc > from the header and decompress the audio data into a byte array so it > can be played (or indeed modified) later. > > Can anyone either a) fill me in on exactly how to compile > libogg/libvorbis into a DLL, or b) provide such a DLL so I can add a > reference to it (I assume there would then be documented functions for > e.g. the decompression algorithm available)? > _______________________________________________ > Vorbis-dev mailing list > Vorbis-dev@xiph.org > http://lists.xiph.org/mailman/listinfo/vorbis-dev >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/vorbis-dev/attachments/20080312/97147594/attachment.htm
As we speak, win32 binaries for vorbis-tools are being worked on. That includes libogg and libvorbis DLLs. You can find them here[1]. If what you need is DirectShow filters, please look into the link provided by Silvia. -Ivo [1] http://xiph.binera.de/snapshots/vorbis-tools/2008-03-11/
Keiji Ikari schrieb:> I've already worked out how to use DirectSound, so I really just need > to be able to read stuff like length, sample rate, sample format, etc > from the header and decompress the audio data into a byte array so it > can be played (or indeed modified) later. >If you need more control than provided by the Directshow filters Silvia pointed to, you can find a .NET port of an early version of J-Ogg here: http://www.j-ogg.de/CsOgg.zip I can't gurantee that it's completely bug free, but I think it should work in most situations. You can find an example on how to access meta data and read decoded PCM data from a Vorbis stream in Ogg2Wav.cs. The decoder itself runs on Mono as well. Tor