diff options
author | Peter D'Hoye <peter.dhoye@gmail.com> | 2008-10-08 22:18:16 +0000 |
---|---|---|
committer | Peter D'Hoye <peter.dhoye@gmail.com> | 2008-10-08 22:18:16 +0000 |
commit | 528fe442fc6e6e077172b2e8a3b586a3ce96d16b (patch) | |
tree | 4985fe6f102727419862cf58bcb5aa8a7d736f11 /firmware/export | |
parent | cb1173cedd4eb1c8648420a3926a591995390537 (diff) | |
download | rockbox-528fe442fc6e6e077172b2e8a3b586a3ce96d16b.tar.gz rockbox-528fe442fc6e6e077172b2e8a3b586a3ce96d16b.zip |
New recording setting to configure how mono recordings are made. Previously, this was always L+R, which was kinda silly if your signal was on L only. This setting allows for L, R or L+R. SWCODEC only for now, to be added for HWCODEC (although that will only be L and L+R probably)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18745 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/audio.h | 1 | ||||
-rw-r--r-- | firmware/export/enc_base.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/firmware/export/audio.h b/firmware/export/audio.h index aedaffbe89..9530082050 100644 --- a/firmware/export/audio.h +++ b/firmware/export/audio.h | |||
@@ -176,6 +176,7 @@ struct audio_recording_options | |||
176 | int rec_channels; | 176 | int rec_channels; |
177 | int rec_prerecord_time; | 177 | int rec_prerecord_time; |
178 | #if CONFIG_CODEC == SWCODEC | 178 | #if CONFIG_CODEC == SWCODEC |
179 | int rec_mono_mode; | ||
179 | int rec_source_flags; /* for rec_set_source */ | 180 | int rec_source_flags; /* for rec_set_source */ |
180 | struct encoder_config enc_config; | 181 | struct encoder_config enc_config; |
181 | #else | 182 | #else |
diff --git a/firmware/export/enc_base.h b/firmware/export/enc_base.h index e73e87659d..321421c6e7 100644 --- a/firmware/export/enc_base.h +++ b/firmware/export/enc_base.h | |||
@@ -246,6 +246,7 @@ struct enc_inputs | |||
246 | { | 246 | { |
247 | unsigned long sample_rate; /* out - pcm frequency */ | 247 | unsigned long sample_rate; /* out - pcm frequency */ |
248 | int num_channels; /* out - number of audio channels */ | 248 | int num_channels; /* out - number of audio channels */ |
249 | int rec_mono_mode; /* out - how to create mono */ | ||
249 | struct encoder_config *config; /* out - encoder settings */ | 250 | struct encoder_config *config; /* out - encoder settings */ |
250 | }; | 251 | }; |
251 | 252 | ||