diff options
Diffstat (limited to 'apps/recorder/pcm_record.c')
-rw-r--r-- | apps/recorder/pcm_record.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/recorder/pcm_record.c b/apps/recorder/pcm_record.c index e5a5107603..2567b56ef3 100644 --- a/apps/recorder/pcm_record.c +++ b/apps/recorder/pcm_record.c | |||
@@ -31,6 +31,7 @@ | |||
31 | #include "audio.h" | 31 | #include "audio.h" |
32 | #include "sound.h" | 32 | #include "sound.h" |
33 | #include "metadata.h" | 33 | #include "metadata.h" |
34 | #include "appevents.h" | ||
34 | #ifdef HAVE_SPDIF_IN | 35 | #ifdef HAVE_SPDIF_IN |
35 | #include "spdif.h" | 36 | #include "spdif.h" |
36 | #endif | 37 | #endif |
@@ -1127,6 +1128,7 @@ static void pcmrec_new_stream(const char *filename, /* next file name */ | |||
1127 | static void pcmrec_init(void) | 1128 | static void pcmrec_init(void) |
1128 | { | 1129 | { |
1129 | unsigned char *buffer; | 1130 | unsigned char *buffer; |
1131 | send_event(RECORDING_EVENT_START, NULL); | ||
1130 | 1132 | ||
1131 | /* warings and errors */ | 1133 | /* warings and errors */ |
1132 | warnings = | 1134 | warnings = |
@@ -1183,6 +1185,7 @@ static void pcmrec_close(void) | |||
1183 | pcm_close_recording(); | 1185 | pcm_close_recording(); |
1184 | reset_hardware(); | 1186 | reset_hardware(); |
1185 | audio_remove_encoder(); | 1187 | audio_remove_encoder(); |
1188 | send_event(RECORDING_EVENT_STOP, NULL); | ||
1186 | } /* pcmrec_close */ | 1189 | } /* pcmrec_close */ |
1187 | 1190 | ||
1188 | /* PCMREC_OPTIONS */ | 1191 | /* PCMREC_OPTIONS */ |