reset delay state on flush in all cases rather than just for dsd
Adrian Smith
9 years ago
128 | 128 | } |
129 | 129 | ) |
130 | 130 | frames -= size; |
131 | // add silence delay in two halves, before and after track start and rate or pcm-dop change | |
131 | // add silence delay in two halves, before and after track start on rate or pcm-dop change | |
132 | 132 | if (delay) { |
133 | 133 | output.state = OUTPUT_PAUSE_FRAMES; |
134 | 134 | if (!output.delay_active) { |
419 | 419 | if (output.error_opening) { |
420 | 420 | output.current_sample_rate = output.default_sample_rate; |
421 | 421 | } |
422 | IF_DSD( output.delay_active = false; ) | |
422 | output.delay_active = false; | |
423 | 423 | } |
424 | 424 | output.frames_played = 0; |
425 | 425 | UNLOCK; |