File tree Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -368,7 +368,6 @@ bool audio_dma_get_playing(audio_dma_t *dma) {
368
368
}
369
369
if (!dma_channel_is_busy (dma -> channel [0 ]) &&
370
370
!dma_channel_is_busy (dma -> channel [1 ])) {
371
- audio_dma_stop (dma );
372
371
return false;
373
372
}
374
373
Original file line number Diff line number Diff line change @@ -126,17 +126,14 @@ void common_hal_audiopwmio_pwmaudioout_deinit(audiopwmio_pwmaudioout_obj_t *self
126
126
}
127
127
128
128
void common_hal_audiopwmio_pwmaudioout_play (audiopwmio_pwmaudioout_obj_t * self , mp_obj_t sample , bool loop ) {
129
- if (common_hal_audiopwmio_pwmaudioout_get_playing (self )) {
130
- common_hal_audiopwmio_pwmaudioout_stop (self );
131
- }
132
129
133
130
// TODO: Share pacing timers based on frequency.
134
131
size_t pacing_timer = NUM_DMA_TIMERS ;
135
132
for (size_t i = 0 ; i < NUM_DMA_TIMERS ; i ++ ) {
136
133
if (dma_hw -> timer [i ] == 0 ) {
137
134
pacing_timer = i ;
135
+ break ;
138
136
}
139
- break ;
140
137
}
141
138
if (pacing_timer == NUM_DMA_TIMERS ) {
142
139
mp_raise_RuntimeError (translate ("No DMA pacing timer found" ));
You can’t perform that action at this time.
0 commit comments