Rockbox mail archive
Subject: Start recording (A cassette?) and leave mode
From: David H. Straayer (mail_at_dhstraayer.com)
Date: 2004-05-03
One thing I've missed on my Jukebox Recorder is an ability to
start a recording, and leave without worrying about filling my
disk. I want to use this, for example, to be able to dub
cassettes. I want to tell my recorder to record the cassette
then stop recording.
I know that Linus intends to put this into a full "timed
recording" system, but I've been impatient and he's been working
on other things. So I downloaded the development tool set and
looked at the problem.
The recording setting "Split" is actually quite close to what I
want. All we need is for the split timer to not bother starting
another recording. I call this "Split_And_Quit". If I
implement it, for example, as a boolean
"global_settings.rec_split_and_quit", then I just add this code:
if (mpeg_status() && (seconds >= dseconds))
{
if (global_settings.rec_split_and_quit)
**add
{
**add
mpeg_stop();
**add
status_set_playmode(STATUS_STOP);
**add
}
**add
else
**add
{
**add
mpeg_new_file(rec_create_filename(path_buffer));
update_countdown = 1;
last_seconds = 0;
}
**add
}
And that simulate a "stop" button when the split timer goes off.
Of course, it would be nice to have a little more precision
setting ability in the split timer, and I'll need to add a user
interface to set the boolean, but I think that should about do
it, no?
David H. Straayer
916.729.4954
mail_at_dhstraayer.com
_______________________________________________
http://cool.haxx.se/mailman/listinfo/rockbox
Page was last modified "Jan 10 2012" The Rockbox Crew
|