A question about Oolite and audio sample-rates
Posted: Thu May 16, 2013 12:46 am
Background:
I was recently making up a Hyperradio musicpack for my own use, when I ran across an interesting problem. The artist Moby very generously makes all of his music available for free download at his website. (This is for personal use only, of course. Also, he doesn't mind if people use his music as background in not-for-profit movies or videos, but they must obtain his permission first. If I can obtain his permission, I will release the musicpack to the Oolite community.)
However.. it turns out that the MP3s from his website are all encoded at 24kHz. When converted to Ogg Vorbis and played with Hyperradio, they play at (almost) double speed. To be honest, most of it still sounds fairly good even at that speed, however, the tracks with vocals sound like they're being sung by the Chipmunks, which is rather disconcerting, and the songs are over far too quickly.
The solution, of course, was pretty simple.. I used Audacity to re-encode the .ogg files at 44.1kHz, and everything now sounds as it should. Which brings us to my..
Question:
Oolite appears to treat all .ogg files as if they were sampled at 44.1kHz, and plays them accordingly. Is this just a limitation of the music-playing capabilities of Oolite on Linux, or does it apply to the Mac and Windows versions as well? I intend to add an additional section to the musicpack howto on the Wiki, warning of the importance of the sample-rate and how to deal with it if necessary, but before I do so, I'd like to be clear on whether this is a situation which applies equally to all platforms, or just one or two.
I was recently making up a Hyperradio musicpack for my own use, when I ran across an interesting problem. The artist Moby very generously makes all of his music available for free download at his website. (This is for personal use only, of course. Also, he doesn't mind if people use his music as background in not-for-profit movies or videos, but they must obtain his permission first. If I can obtain his permission, I will release the musicpack to the Oolite community.)
However.. it turns out that the MP3s from his website are all encoded at 24kHz. When converted to Ogg Vorbis and played with Hyperradio, they play at (almost) double speed. To be honest, most of it still sounds fairly good even at that speed, however, the tracks with vocals sound like they're being sung by the Chipmunks, which is rather disconcerting, and the songs are over far too quickly.
The solution, of course, was pretty simple.. I used Audacity to re-encode the .ogg files at 44.1kHz, and everything now sounds as it should. Which brings us to my..
Question:
Oolite appears to treat all .ogg files as if they were sampled at 44.1kHz, and plays them accordingly. Is this just a limitation of the music-playing capabilities of Oolite on Linux, or does it apply to the Mac and Windows versions as well? I intend to add an additional section to the musicpack howto on the Wiki, warning of the importance of the sample-rate and how to deal with it if necessary, but before I do so, I'd like to be clear on whether this is a situation which applies equally to all platforms, or just one or two.