diff options
Diffstat (limited to 'apps/pcmbuf.c')
-rw-r--r-- | apps/pcmbuf.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/apps/pcmbuf.c b/apps/pcmbuf.c index 8718d730fb..b32cb4c429 100644 --- a/apps/pcmbuf.c +++ b/apps/pcmbuf.c | |||
@@ -580,6 +580,12 @@ static void init_buffer_state(void) | |||
580 | chunk_transidx = INVALID_BUF_INDEX; | 580 | chunk_transidx = INVALID_BUF_INDEX; |
581 | } | 581 | } |
582 | 582 | ||
583 | /* call prior to init to get bytes required */ | ||
584 | size_t pcmbuf_size_reqd(void) | ||
585 | { | ||
586 | return get_next_required_pcmbuf_chunks() * PCMBUF_CHUNK_SIZE; | ||
587 | } | ||
588 | |||
583 | /* Initialize the PCM buffer. The structure looks like this: | 589 | /* Initialize the PCM buffer. The structure looks like this: |
584 | * ...|---------PCMBUF---------|GUARDBUF|DESCS| */ | 590 | * ...|---------PCMBUF---------|GUARDBUF|DESCS| */ |
585 | size_t pcmbuf_init(void *bufend) | 591 | size_t pcmbuf_init(void *bufend) |
@@ -741,9 +747,6 @@ void pcmbuf_start_track_change(enum pcm_track_change_type type) | |||
741 | } | 747 | } |
742 | } | 748 | } |
743 | 749 | ||
744 | if (auto_skip && global_settings.single_mode != SINGLE_MODE_OFF && !global_settings.party_mode) | ||
745 | crossfade = false; | ||
746 | |||
747 | if (crossfade) | 750 | if (crossfade) |
748 | { | 751 | { |
749 | logf("crossfade track change"); | 752 | logf("crossfade track change"); |