summaryrefslogtreecommitdiff
path: root/apps/enc_config.c
diff options
context:
space:
mode:
authorBarry Wardell <rockbox@barrywardell.net>2006-12-18 01:52:21 +0000
committerBarry Wardell <rockbox@barrywardell.net>2006-12-18 01:52:21 +0000
commitdf0dc2262ea10f621677c0f97aae1c205e253b87 (patch)
treed25085132fe9f0504d221360092537492cedd3b8 /apps/enc_config.c
parent440353a9aa1159584b977a2852e723ae07bad2a6 (diff)
downloadrockbox-df0dc2262ea10f621677c0f97aae1c205e253b87.tar.gz
rockbox-df0dc2262ea10f621677c0f97aae1c205e253b87.zip
FS#6096. Recording on PortalPlayer targets (H10, iPod Video, iPod 4g, iPod Color, iPod Nano).
* Fix failed compile of enc_config.c when HAVE_MPEG2_SAMPR is not defined. * Fix bug in AIFF encoder header creation on little endian targets. * Add recording screen keymaps for H10 and iPod. * Move pcm_playback PP specific code to target tree. * Add recording code to wmcodec drivers. * Add pcm_record code. Some problems still remain: * Playback doesn't work after recording until Rockbox is restarted. * Gain control not implemented. * Only 16-bit/44KHz for now. The hardware should be capable of up to 24-bit/96KHz. * Line-in recording not tested on H10. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11794 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/enc_config.c')
-rw-r--r--apps/enc_config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/enc_config.c b/apps/enc_config.c
index 2d2abae61a..f4ea1cc4b5 100644
--- a/apps/enc_config.c
+++ b/apps/enc_config.c
@@ -159,9 +159,9 @@ static bool mp3_enc_bitrate(struct encoder_config *cfg)
159 MPEG1_BITR_CAPS | MPEG2_BITR_CAPS, mp3_enc_bitr, 159 MPEG1_BITR_CAPS | MPEG2_BITR_CAPS, mp3_enc_bitr,
160 MPEG1_BITR_CAPS 160 MPEG1_BITR_CAPS
161#ifdef HAVE_MPEG2_SAMPR 161#ifdef HAVE_MPEG2_SAMPR
162 | (MPEG2_BITR_CAPS & ~(MP3_BITR_CAP_144 | MP3_BITR_CAP_8)), 162 | (MPEG2_BITR_CAPS & ~(MP3_BITR_CAP_144 | MP3_BITR_CAP_8))
163#endif 163#endif
164 rate_list); 164 , rate_list);
165 165
166 int index = round_value_to_list32(cfg->mp3_enc.bitrate, rate_list, 166 int index = round_value_to_list32(cfg->mp3_enc.bitrate, rate_list,
167 n_rates, false); 167 n_rates, false);