diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2010-07-04 13:37:52 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2010-07-04 13:37:52 +0000 |
commit | 3982f1e9322184de6bb15bbe8d04476d8bc11601 (patch) | |
tree | b15642a5c1d6d1e3c8ed6b159ed7918f515e3d9e /firmware/target | |
parent | bf83ac624083af0c53fdc358df8270798831d8cb (diff) | |
download | rockbox-3982f1e9322184de6bb15bbe8d04476d8bc11601.tar.gz rockbox-3982f1e9322184de6bb15bbe8d04476d8bc11601.zip |
Simulator: build recording code
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27280 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target')
-rw-r--r-- | firmware/target/hosted/sdl/pcm-sdl.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/firmware/target/hosted/sdl/pcm-sdl.c b/firmware/target/hosted/sdl/pcm-sdl.c index 811d5c7814..5591980217 100644 --- a/firmware/target/hosted/sdl/pcm-sdl.c +++ b/firmware/target/hosted/sdl/pcm-sdl.c | |||
@@ -31,6 +31,10 @@ | |||
31 | #include "audiohw.h" | 31 | #include "audiohw.h" |
32 | #include "system.h" | 32 | #include "system.h" |
33 | 33 | ||
34 | #ifdef HAVE_RECORDING | ||
35 | #include "audiohw.h" | ||
36 | #endif | ||
37 | |||
34 | #include "pcm.h" | 38 | #include "pcm.h" |
35 | #include "pcm_sampr.h" | 39 | #include "pcm_sampr.h" |
36 | 40 | ||
@@ -284,16 +288,19 @@ void pcm_rec_dma_stop(void) | |||
284 | { | 288 | { |
285 | } | 289 | } |
286 | 290 | ||
287 | unsigned long pcm_rec_status(void) | 291 | const void * pcm_rec_dma_get_peak_buffer(void) |
288 | { | 292 | { |
289 | return 0; | 293 | return NULL; |
290 | } | 294 | } |
291 | 295 | ||
292 | const void * pcm_rec_dma_get_peak_buffer(void) | 296 | void audiohw_set_recvol(int left, int right, int type) |
293 | { | 297 | { |
294 | return NULL; | 298 | (void)left; |
299 | (void)right; | ||
300 | (void)type; | ||
295 | } | 301 | } |
296 | 302 | ||
303 | |||
297 | #endif /* HAVE_RECORDING */ | 304 | #endif /* HAVE_RECORDING */ |
298 | 305 | ||
299 | void pcm_play_dma_init(void) | 306 | void pcm_play_dma_init(void) |