diff options
Diffstat (limited to 'apps/plugins/mpegplayer/pcm_output.h')
-rw-r--r-- | apps/plugins/mpegplayer/pcm_output.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/apps/plugins/mpegplayer/pcm_output.h b/apps/plugins/mpegplayer/pcm_output.h index 9335235daa..1a00ac48e6 100644 --- a/apps/plugins/mpegplayer/pcm_output.h +++ b/apps/plugins/mpegplayer/pcm_output.h | |||
@@ -23,6 +23,7 @@ | |||
23 | #ifndef PCM_OUTPUT_H | 23 | #ifndef PCM_OUTPUT_H |
24 | #define PCM_OUTPUT_H | 24 | #define PCM_OUTPUT_H |
25 | 25 | ||
26 | #define PCM_HDR_SIZE (sizeof (struct pcm_frame_header)) | ||
26 | struct pcm_frame_header /* Header added to pcm data every time a decoded | 27 | struct pcm_frame_header /* Header added to pcm data every time a decoded |
27 | audio frame is sent out */ | 28 | audio frame is sent out */ |
28 | { | 29 | { |
@@ -31,8 +32,6 @@ struct pcm_frame_header /* Header added to pcm data every time a decoded | |||
31 | unsigned char data[]; /* open array of audio data */ | 32 | unsigned char data[]; /* open array of audio data */ |
32 | } ALIGNED_ATTR(4); | 33 | } ALIGNED_ATTR(4); |
33 | 34 | ||
34 | extern int pcm_skipped, pcm_underruns; | ||
35 | |||
36 | bool pcm_output_init(void); | 35 | bool pcm_output_init(void); |
37 | void pcm_output_exit(void); | 36 | void pcm_output_exit(void); |
38 | void pcm_output_flush(void); | 37 | void pcm_output_flush(void); |
@@ -42,9 +41,8 @@ uint32_t pcm_output_get_ticks(uint32_t *start); | |||
42 | void pcm_output_play_pause(bool play); | 41 | void pcm_output_play_pause(bool play); |
43 | void pcm_output_stop(void); | 42 | void pcm_output_stop(void); |
44 | void pcm_output_drain(void); | 43 | void pcm_output_drain(void); |
45 | struct pcm_frame_header * pcm_output_get_buffer(void); | 44 | unsigned char * pcm_output_get_buffer(ssize_t *size); |
46 | void pcm_output_add_data(void); | 45 | bool pcm_output_commit_data(ssize_t size, uint32_t timestamp); |
47 | ssize_t pcm_output_used(void); | 46 | bool pcm_output_empty(void); |
48 | ssize_t pcm_output_free(void); | ||
49 | 47 | ||
50 | #endif /* PCM_OUTPUT_H */ | 48 | #endif /* PCM_OUTPUT_H */ |