1
0
Fork 0
forked from len0rd/rockbox

Archos Recorders, Ondio FM: WAV recording plugin. This is considered a technical preview, and has the following limitations: * No peakmeters and no gain control. The plugin reuses the gain values from the core, so use the core's recording screen to set gain, then call the plugin. * Recording directory is fixed, and on Ondio it always records to external MMC (there is not much point to record WAV to the 128MB internal flash). * All supported targets just generate numbered filenames, i.e. no R[DATE][TIME].wav files on recorders. * Only records to a single file, and will stop when approaching the safe file size limit of 2GB.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13416 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2007-05-19 18:29:27 +00:00
parent 1d16efbff8
commit b4702463e2
4 changed files with 3823 additions and 1 deletions

View file

@ -495,6 +495,7 @@ static const struct plugin_api rockbox_api = {
get_codec_filename,
#endif
threads,
create_numbered_filename,
};
int plugin_load(const char* plugin, void* parameter)

View file

@ -114,7 +114,7 @@
#define PLUGIN_MAGIC 0x526F634B /* RocK */
/* increase this every time the api struct changes */
#define PLUGIN_API_VERSION 56
#define PLUGIN_API_VERSION 57
/* update this to latest version if a change to the api struct breaks
backwards compatibility (and please take the opportunity to sort in any
@ -611,6 +611,10 @@ struct plugin_api {
const char *(*get_codec_filename)(int cod_spec);
#endif
struct thread_entry* threads;
char *(*create_numbered_filename)(char *buffer, const char *path,
const char *prefix, const char *suffix,
int numberlen IF_CNFN_NUM_(, int *num));
};
/* plugin header */

View file

@ -27,6 +27,9 @@ metronome.c
#if ((CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)) && !defined(SIMULATOR)
wavplay.c
#endif
#if (CONFIG_CODEC == MAS3587F) && !defined(SIMULATOR)
wavrecord.c
#endif
#ifndef IRIVER_IFP7XX_SERIES /* Temporarily disable plugins for iFP7xx */
dice.c

3814
apps/plugins/wavrecord.c Normal file

File diff suppressed because it is too large Load diff