Archives for Sound

Java Ices

Work has required me to look into streaming of audio/video at work, and as we’re mainly a Java shop, I’ve been struggling with audio decoding/encoding and Java. Java really needs to get its act together, and come up with a streamlined & polished media solution that actually works out of the box. I’ve been forced [...]

vorbisspi and length calculation

Seems the latest version of Jorbis has a bug which causes the length of a `.ogg` song to get a negative value if it’s longer than ~34 minutes. As I mostly deal with livesets of several hours, this didn’t work well for me. Anyways, the fix is to convert the length calculation `int`s to `long`, [...]

Tritonus Vorbis Encoding

I’ve been working on audio encoding using Java at work for a while, and one problem I ran into was with Tritonus and encoding a pcm stream to Ogg Vorbis. No matter what I did, I only got sound in the left channel. It seems Tritonus assumes that the channel buffers from libvorbis are allocated [...]