summaryrefslogtreecommitdiffstats
path: root/apps/recorder
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2011-08-14 15:37:05 +0000
committerThomas Martitz <kugel@rockbox.org>2011-08-14 15:37:05 +0000
commit8a701e5488989944f120f0c37848de24fbeff455 (patch)
tree291b05e4bddad26c92668192edddd4ba4be310dd /apps/recorder
parent7695b0403f772dd773ba25151bd8b97a7d16537e (diff)
downloadrockbox-8a701e5488989944f120f0c37848de24fbeff455.tar.gz
rockbox-8a701e5488989944f120f0c37848de24fbeff455.tar.bz2
rockbox-8a701e5488989944f120f0c37848de24fbeff455.zip
Fix errors and warnings.
The buffer_offset paramter of audio_init_recording() is removed as it was unused in both implementations. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30310 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/recorder')
-rw-r--r--apps/recorder/pcm_record.c3
-rw-r--r--apps/recorder/recording.c4
2 files changed, 3 insertions, 4 deletions
diff --git a/apps/recorder/pcm_record.c b/apps/recorder/pcm_record.c
index 407a7e5f49..3b069b6dc8 100644
--- a/apps/recorder/pcm_record.c
+++ b/apps/recorder/pcm_record.c
@@ -392,12 +392,11 @@ void pcm_rec_init(void)
/**
* Initializes recording - call before calling any other recording function
*/
-void audio_init_recording(unsigned int buffer_offset)
+void audio_init_recording(void)
{
logf("audio_init_recording");
queue_send(&pcmrec_queue, PCMREC_INIT, 0);
logf("audio_init_recording done");
- (void)buffer_offset;
} /* audio_init_recording */
/**
diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c
index 6faaa6c48c..453b2fc42d 100644
--- a/apps/recorder/recording.c
+++ b/apps/recorder/recording.c
@@ -1112,7 +1112,7 @@ bool recording_screen(bool no_source)
#if CONFIG_CODEC == SWCODEC
audio_close_recording();
#endif
- audio_init_recording(0);
+ audio_init_recording();
sound_set_volume(global_settings.volume);
#if CONFIG_RTC == 0
@@ -1213,7 +1213,7 @@ bool recording_screen(bool no_source)
#if CONFIG_CODEC == SWCODEC
audio_close_recording();
- audio_init_recording(0);
+ audio_init_recording();
#endif
rec_init_recording_options(&rec_options);