File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ STATIC void audio_dma_load_next_block(audio_dma_t *dma, size_t buffer_idx) {
153
153
}
154
154
155
155
// Convert the sample format resolution and signedness, as necessary.
156
- // The input sample buffer is what was read from a file or a raw sample buffer.
156
+ // The input sample buffer is what was read from a file, Mixer, or a raw sample buffer.
157
157
// The output buffer is one of the DMA buffers (passed in), or if no conversion was done,
158
158
// the original sample buffer (to save copying).
159
159
@@ -370,13 +370,6 @@ void audio_dma_stop(audio_dma_t *dma) {
370
370
dma_channel_abort (channel );
371
371
}
372
372
373
- // Write a zero as the last sample. This stops any PWM output.
374
- if (dma -> output_resolution <= 8 ) {
375
- * ((uint8_t * )dma -> output_register_address ) = 0 ;
376
- } else {
377
- * ((uint16_t * )dma -> output_register_address ) = 0 ;
378
- }
379
-
380
373
dma_channel_set_read_addr (channel , NULL , false /* trigger */ );
381
374
dma_channel_set_write_addr (channel , NULL , false /* trigger */ );
382
375
dma_channel_set_trans_count (channel , 0 , false /* trigger */ );
You can’t perform that action at this time.
0 commit comments