diff options
Diffstat (limited to 'apps/plugins/mpegplayer/mpegplayer.h')
-rw-r--r-- | apps/plugins/mpegplayer/mpegplayer.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/plugins/mpegplayer/mpegplayer.h b/apps/plugins/mpegplayer/mpegplayer.h index 79c25f6109..7333d87d6e 100644 --- a/apps/plugins/mpegplayer/mpegplayer.h +++ b/apps/plugins/mpegplayer/mpegplayer.h | |||
@@ -51,14 +51,13 @@ | |||
51 | /* Define this as "1" to have a test tone instead of silence clip */ | 51 | /* Define this as "1" to have a test tone instead of silence clip */ |
52 | #define SILENCE_TEST_TONE 0 | 52 | #define SILENCE_TEST_TONE 0 |
53 | 53 | ||
54 | /* NOTE: Sizes make no frame header allowance when considering duration */ | ||
54 | #define PCMOUT_BUFSIZE (CLOCK_RATE/2*4) /* 1/2s */ | 55 | #define PCMOUT_BUFSIZE (CLOCK_RATE/2*4) /* 1/2s */ |
55 | #define PCMOUT_GUARD_SAMPLES ((CLOCK_RATE*576+7999)/8000) /* Worst upsampling case */ | 56 | #define PCMOUT_GUARD_SIZE (PCMOUT_BUFSIZE) /* guarantee contiguous sizes */ |
56 | #define PCMOUT_GUARD_SIZE (PCMOUT_GUARD_SAMPLES*4 + sizeof (struct pcm_frame_header)) | ||
57 | #define PCMOUT_ALLOC_SIZE (PCMOUT_BUFSIZE + PCMOUT_GUARD_SIZE) | 57 | #define PCMOUT_ALLOC_SIZE (PCMOUT_BUFSIZE + PCMOUT_GUARD_SIZE) |
58 | /* Start pcm playback @ 25% full */ | 58 | /* Start pcm playback @ 25% full */ |
59 | #define PCMOUT_PLAY_WM (PCMOUT_BUFSIZE/4) | 59 | #define PCMOUT_PLAY_WM (PCMOUT_BUFSIZE/4) |
60 | /* No valid audio frame is smaller */ | 60 | #define PCMOUT_LOW_WM (0) |
61 | #define PCMOUT_LOW_WM (sizeof (struct pcm_frame_header)) | ||
62 | 61 | ||
63 | /** disk buffer **/ | 62 | /** disk buffer **/ |
64 | #define DISK_BUF_LOW_WATERMARK (1024*1024) | 63 | #define DISK_BUF_LOW_WATERMARK (1024*1024) |