forked from len0rd/rockbox
MPEGPlyaer: A bit of audio mutation. Remove a useless thread state. Take some control over the buffer away from the audio thread itself. Some atomicity corrections.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28984 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
b1a1831a17
commit
39107956ab
5 changed files with 141 additions and 84 deletions
|
@ -23,6 +23,7 @@
|
|||
#ifndef PCM_OUTPUT_H
|
||||
#define PCM_OUTPUT_H
|
||||
|
||||
#define PCM_HDR_SIZE (sizeof (struct pcm_frame_header))
|
||||
struct pcm_frame_header /* Header added to pcm data every time a decoded
|
||||
audio frame is sent out */
|
||||
{
|
||||
|
@ -31,8 +32,6 @@ struct pcm_frame_header /* Header added to pcm data every time a decoded
|
|||
unsigned char data[]; /* open array of audio data */
|
||||
} ALIGNED_ATTR(4);
|
||||
|
||||
extern int pcm_skipped, pcm_underruns;
|
||||
|
||||
bool pcm_output_init(void);
|
||||
void pcm_output_exit(void);
|
||||
void pcm_output_flush(void);
|
||||
|
@ -42,9 +41,8 @@ uint32_t pcm_output_get_ticks(uint32_t *start);
|
|||
void pcm_output_play_pause(bool play);
|
||||
void pcm_output_stop(void);
|
||||
void pcm_output_drain(void);
|
||||
struct pcm_frame_header * pcm_output_get_buffer(void);
|
||||
void pcm_output_add_data(void);
|
||||
ssize_t pcm_output_used(void);
|
||||
ssize_t pcm_output_free(void);
|
||||
unsigned char * pcm_output_get_buffer(ssize_t *size);
|
||||
bool pcm_output_commit_data(ssize_t size, uint32_t timestamp);
|
||||
bool pcm_output_empty(void);
|
||||
|
||||
#endif /* PCM_OUTPUT_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue