diff options
Diffstat (limited to 'apps/talk.c')
-rw-r--r-- | apps/talk.c | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/apps/talk.c b/apps/talk.c index 736c68c7b4..8f507eb700 100644 --- a/apps/talk.c +++ b/apps/talk.c | |||
@@ -146,10 +146,6 @@ static int open_voicefile(void) | |||
146 | return open(buf, O_RDONLY); | 146 | return open(buf, O_RDONLY); |
147 | } | 147 | } |
148 | 148 | ||
149 | int talk_get_bufsize(void) | ||
150 | { | ||
151 | return voicefile_size; | ||
152 | } | ||
153 | 149 | ||
154 | /* load the voice file into the mp3 buffer */ | 150 | /* load the voice file into the mp3 buffer */ |
155 | static void load_voicefile(void) | 151 | static void load_voicefile(void) |
@@ -532,6 +528,19 @@ void talk_init(void) | |||
532 | } | 528 | } |
533 | } | 529 | } |
534 | 530 | ||
531 | /* return if a voice codec is required or not */ | ||
532 | bool talk_voice_required(void) | ||
533 | { | ||
534 | return (voicefile_size != 0) | ||
535 | || (global_settings.talk_dir == 3) | ||
536 | || (global_settings.talk_file == 3); | ||
537 | } | ||
538 | |||
539 | /* return size of voice file */ | ||
540 | int talk_get_bufsize(void) | ||
541 | { | ||
542 | return voicefile_size; | ||
543 | } | ||
535 | 544 | ||
536 | /* somebody else claims the mp3 buffer, e.g. for regular play/record */ | 545 | /* somebody else claims the mp3 buffer, e.g. for regular play/record */ |
537 | int talk_buffer_steal(void) | 546 | int talk_buffer_steal(void) |