dev builds
themes manual
device status forums
mailing lists
IRC bugs
dev guide

Rockbox mail archive

Subject: Recording PCM format

Recording PCM format

From: David Johnston <>
Date: Tue, 25 Aug 2009 00:17:03 -0700

I'm working with the instrument tuner plugin, trying to work out some
glitches and I was wondering if anyone could help me with this. I'm
trying to figure out a little more about how recording works.
Specifically, when I call pcm_record_data(), what's the format of the
data it loads into my buffer? From examining it while debugging on my
h120 it seems like it's interleaved stereo (left, right, left, right,
etc) signed 16 bit samples. What threw me off was that it gives me
stereo even when recording from the internal mic, which is a mono

So I guess my question is, can I reliably expect the recording on all
devices with the capability to provide an interleaved signed 16-bit
data stream? If not, are there any defines anywhere that will tell me
the format for the current platform? If not, shouldn't there be?

Anyway, any help would be appreciated. Thanks!

Received on 2009-08-27

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy