diff options
author | Peter D'Hoye <peter.dhoye@gmail.com> | 2006-04-01 15:52:06 +0000 |
---|---|---|
committer | Peter D'Hoye <peter.dhoye@gmail.com> | 2006-04-01 15:52:06 +0000 |
commit | 769f18be1d1a65aa521b91a9f7ba0f8baa0e0e4e (patch) | |
tree | 17d4e8d8604501650331d3ddbcfd08050b85ec7c | |
parent | d884806a91f8a3d599210efa05d243a19a739e1c (diff) | |
download | rockbox-769f18be1d1a65aa521b91a9f7ba0f8baa0e0e4e.tar.gz rockbox-769f18be1d1a65aa521b91a9f7ba0f8baa0e0e4e.zip |
simulator stubs for iriver recording, iriver sims now have a recording screen (doesn't actually record!)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9403 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/recorder/recording.c | 78 | ||||
-rw-r--r-- | firmware/export/config-h100.h | 6 | ||||
-rw-r--r-- | firmware/export/config-h120.h | 6 | ||||
-rw-r--r-- | firmware/export/config-h300.h | 6 |
4 files changed, 86 insertions, 10 deletions
diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c index 84fef9f3a1..5fa0f398fe 100644 --- a/apps/recorder/recording.c +++ b/apps/recorder/recording.c | |||
@@ -1537,7 +1537,83 @@ void audio_beep(int duration) | |||
1537 | /* dummy */ | 1537 | /* dummy */ |
1538 | (void)duration; | 1538 | (void)duration; |
1539 | } | 1539 | } |
1540 | #endif | 1540 | |
1541 | #ifdef SIMULATOR | ||
1542 | /* stubs for recording sim */ | ||
1543 | void audio_init_recording(void) | ||
1544 | { | ||
1545 | } | ||
1546 | |||
1547 | void audio_close_recording(void) | ||
1548 | { | ||
1549 | } | ||
1550 | |||
1551 | unsigned long audio_recorded_time(void) | ||
1552 | { | ||
1553 | return 123; | ||
1554 | } | ||
1555 | |||
1556 | unsigned long audio_num_recorded_bytes(void) | ||
1557 | { | ||
1558 | return 5 * 1024 * 1024; | ||
1559 | } | ||
1560 | |||
1561 | void audio_set_recording_options(int frequency, int quality, | ||
1562 | int source, int channel_mode, | ||
1563 | bool editable, int prerecord_time) | ||
1564 | { | ||
1565 | frequency = frequency; | ||
1566 | quality = quality; | ||
1567 | source = source; | ||
1568 | channel_mode = channel_mode; | ||
1569 | editable = editable; | ||
1570 | prerecord_time = prerecord_time; | ||
1571 | } | ||
1572 | |||
1573 | void audio_set_recording_gain(int left, int right, int type) | ||
1574 | { | ||
1575 | left = left; | ||
1576 | right = right; | ||
1577 | type = type; | ||
1578 | } | ||
1579 | |||
1580 | void audio_stop_recording(void) | ||
1581 | { | ||
1582 | } | ||
1583 | |||
1584 | void audio_pause_recording(void) | ||
1585 | { | ||
1586 | } | ||
1587 | |||
1588 | void audio_resume_recording(void) | ||
1589 | { | ||
1590 | } | ||
1591 | |||
1592 | void pcm_rec_get_peaks(int *left, int *right) | ||
1593 | { | ||
1594 | if (left) | ||
1595 | *left = 0; | ||
1596 | if (right) | ||
1597 | *right = 0; | ||
1598 | } | ||
1599 | |||
1600 | void audio_record(const char *filename) | ||
1601 | { | ||
1602 | filename = filename; | ||
1603 | } | ||
1604 | |||
1605 | void audio_new_file(const char *filename) | ||
1606 | { | ||
1607 | filename = filename; | ||
1608 | } | ||
1609 | |||
1610 | unsigned long pcm_rec_status(void) | ||
1611 | { | ||
1612 | return 0; | ||
1613 | } | ||
1614 | |||
1615 | #endif /* #ifdef SIMULATOR */ | ||
1616 | #endif /* #ifdef CONFIG_CODEC == SWCODEC */ | ||
1541 | 1617 | ||
1542 | 1618 | ||
1543 | #endif /* HAVE_RECORDING */ | 1619 | #endif /* HAVE_RECORDING */ |
diff --git a/firmware/export/config-h100.h b/firmware/export/config-h100.h index 3185801078..5042c5407e 100644 --- a/firmware/export/config-h100.h +++ b/firmware/export/config-h100.h | |||
@@ -62,6 +62,9 @@ | |||
62 | 62 | ||
63 | #define HAVE_UDA1380 | 63 | #define HAVE_UDA1380 |
64 | 64 | ||
65 | /* define this if you have recording possibility */ | ||
66 | #define HAVE_RECORDING 1 | ||
67 | |||
65 | #ifndef SIMULATOR | 68 | #ifndef SIMULATOR |
66 | 69 | ||
67 | /* Define this if you have a Motorola SCF5249 */ | 70 | /* Define this if you have a Motorola SCF5249 */ |
@@ -78,9 +81,6 @@ | |||
78 | 81 | ||
79 | #define BATTERY_SCALE_FACTOR 16665 /* FIX: this value is picked at random */ | 82 | #define BATTERY_SCALE_FACTOR 16665 /* FIX: this value is picked at random */ |
80 | 83 | ||
81 | /* define this if you have recording possibility */ | ||
82 | #define HAVE_RECORDING 1 | ||
83 | |||
84 | /* Define this if the platform can charge batteries */ | 84 | /* Define this if the platform can charge batteries */ |
85 | #define HAVE_CHARGING 1 | 85 | #define HAVE_CHARGING 1 |
86 | 86 | ||
diff --git a/firmware/export/config-h120.h b/firmware/export/config-h120.h index a95698de69..0c8eec031e 100644 --- a/firmware/export/config-h120.h +++ b/firmware/export/config-h120.h | |||
@@ -58,6 +58,9 @@ | |||
58 | 58 | ||
59 | #define HAVE_UDA1380 | 59 | #define HAVE_UDA1380 |
60 | 60 | ||
61 | /* define this if you have recording possibility */ | ||
62 | #define HAVE_RECORDING 1 | ||
63 | |||
61 | #ifndef SIMULATOR | 64 | #ifndef SIMULATOR |
62 | 65 | ||
63 | /* Define this if you have a Motorola SCF5249 */ | 66 | /* Define this if you have a Motorola SCF5249 */ |
@@ -70,9 +73,6 @@ | |||
70 | 73 | ||
71 | #define BATTERY_SCALE_FACTOR 16665 /* FIX: this value is picked at random */ | 74 | #define BATTERY_SCALE_FACTOR 16665 /* FIX: this value is picked at random */ |
72 | 75 | ||
73 | /* define this if you have recording possibility */ | ||
74 | #define HAVE_RECORDING 1 | ||
75 | |||
76 | /* Define if we have a hardware defect that causes ticking on the audio line */ | 76 | /* Define if we have a hardware defect that causes ticking on the audio line */ |
77 | #define HAVE_REMOTE_LCD_TICKING | 77 | #define HAVE_REMOTE_LCD_TICKING |
78 | 78 | ||
diff --git a/firmware/export/config-h300.h b/firmware/export/config-h300.h index 8a01203b87..f9901666e5 100644 --- a/firmware/export/config-h300.h +++ b/firmware/export/config-h300.h | |||
@@ -58,6 +58,9 @@ | |||
58 | 58 | ||
59 | #define HAVE_UDA1380 | 59 | #define HAVE_UDA1380 |
60 | 60 | ||
61 | /* define this if you have recording possibility */ | ||
62 | #define HAVE_RECORDING 1 | ||
63 | |||
61 | #ifndef SIMULATOR | 64 | #ifndef SIMULATOR |
62 | 65 | ||
63 | /* Define this if you have a Motorola SCF5249 */ | 66 | /* Define this if you have a Motorola SCF5249 */ |
@@ -71,9 +74,6 @@ | |||
71 | 74 | ||
72 | #define BATTERY_SCALE_FACTOR 23437 /* FIX: this value is picked at random */ | 75 | #define BATTERY_SCALE_FACTOR 23437 /* FIX: this value is picked at random */ |
73 | 76 | ||
74 | /* define this if you have recording possibility */ | ||
75 | #define HAVE_RECORDING 1 | ||
76 | |||
77 | /* Define this if the platform can charge batteries */ | 77 | /* Define this if the platform can charge batteries */ |
78 | #define HAVE_CHARGING 1 | 78 | #define HAVE_CHARGING 1 |
79 | 79 | ||