forked from len0rd/rockbox
Revert a previous change, works around the problem of freezing on stop-while-paused, and skipping with crossfade
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9889 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
b9b2bcd9b9
commit
ddaf5f096c
2 changed files with 5 additions and 1 deletions
|
@ -353,7 +353,7 @@ int pcmbuf_used_descs(void) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int pcmbuf_descs(void) {
|
int pcmbuf_descs(void) {
|
||||||
return pcmbuf_size / PCMBUF_TARGET_CHUNK;
|
return pcmbuf_size / PCMBUF_MINAVG_CHUNK;
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t get_pcmbuf_descsize(void) {
|
size_t get_pcmbuf_descsize(void) {
|
||||||
|
|
|
@ -21,6 +21,10 @@
|
||||||
|
|
||||||
#define PCMBUF_TARGET_CHUNK 32768 /* This is the target fill size of chunks
|
#define PCMBUF_TARGET_CHUNK 32768 /* This is the target fill size of chunks
|
||||||
on the pcm buffer */
|
on the pcm buffer */
|
||||||
|
#define PCMBUF_MINAVG_CHUNK 24576 /* This is the minimum average size of
|
||||||
|
chunks on the pcm buffer (or we run out
|
||||||
|
of buffer descriptors, which is
|
||||||
|
non-fatal) */
|
||||||
#define PCMBUF_MIN_CHUNK 4096 /* We try to never feed a chunk smaller than
|
#define PCMBUF_MIN_CHUNK 4096 /* We try to never feed a chunk smaller than
|
||||||
this to the DMA */
|
this to the DMA */
|
||||||
#define PCMBUF_MIX_CHUNK 8192 /* This is the maximum size of one packet
|
#define PCMBUF_MIX_CHUNK 8192 /* This is the maximum size of one packet
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue