Rockbox mail archiveSubject: Re: Recording plugin
Re: Recording plugin
From: Joseph Garvin <k04jg02_at_gmail.com>
Date: Tue, 2 Sep 2008 18:09:52 -0400
I've been learning the plugin sound API recently and I *think* the way that
callback works (if it's anything like I *think* pcm_play_data works) is you
have it return some buffer space to be used for recording, then when it
fills up, the callback can do something like copy that buffer space to disk
so that it's safe to be overwritten again. So you record and write to disk
in chunks, since MP3 players tend to be really RAM limited.
On Tue, Sep 2, 2008 at 12:51 AM, Lees, Christian <
> I am writing a wav recording plugin for an Iriver H10, I need to be able
> to schedule records which is why I am writing one not just using the record
> app, for example it will record for 30 seconds every 10 minutes. I've been
> attempting to get pcm_record_data to work, it isn't clear what the callback
> is meant to be. All I can find is its typedef and there doesn't seem to be
> any other plugins tat record using the plugin api. Has anyone got any
> pointers on using this method.
> Other then using the plugin api I have considered hijacking the IIS
> interface and using a similar method to the wavrecord plugin. This may be
> how I will go about it anyway since I would like to support 24bit and 96kHz
> which the codec is capable of. Would this be the more suitable method of
> doing this? I could recycle some code from pcm_pp.c and the driver for the
> Any suggestions would be appreciated.
> *IMPORTANT:* This email remains the property of the Australian Defence
> Organisation and is subject to the jurisdiction of section 70 of the CRIMES
> ACT 1914. If you have received this email in error, you are requested to
> contact the sender and delete the email.
Received on 2008-09-03