1
0
Fork 0
forked from len0rd/rockbox

Small change to PCM recording API for low latency effects. Latency can be as low as 14 samples from input to output including the FIFOs (ColdFire) but 16 is more reasonable an expectation if only tranferring one sample per interrupt (\!). May convert PCM playback to use the same method as it can still be used in the old manner with some slight mods but has the potential to enable new features since it is more flexible.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11668 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Sevakis 2006-12-06 08:34:55 +00:00
parent 1ff7652adf
commit 51189b4cb4
6 changed files with 62 additions and 74 deletions

View file

@ -580,8 +580,8 @@ struct plugin_api {
#ifndef SIMULATOR
void (*pcm_init_recording)(void);
void (*pcm_close_recording)(void);
void (*pcm_record_data)(pcm_more_callback_type more_ready,
unsigned char *start, size_t size);
void (*pcm_record_data)(pcm_more_callback_type2 more_ready,
void *start, size_t size);
void (*pcm_stop_recording)(void);
void (*pcm_calculate_rec_peaks)(int *left, int *right);
void (*audio_set_recording_gain)(int left, int right, int type);
@ -598,6 +598,7 @@ struct plugin_api {
#if CONFIG_CODEC == SWCODEC && defined(HAVE_RECORDING) && !defined(SIMULATOR)
int (*sound_default)(int setting);
void (*pcm_record_more)(void *start, size_t size);
#endif
};