Commit 6790bb5
committed
codal_port: Don't call microbit_pin_audio_free when audio/music is done.
Instead leave any connected pin (pin0 by default) in "music" mode. This
simplifies the behaviour and can help to avoid clicks going from one sound
to another.
See related issue #50.
Signed-off-by: Damien George <damien@micropython.org>1 parent ab59d87 commit 6790bb5
2 files changed
+2
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | 53 | | |
55 | 54 | | |
56 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
109 | 108 | | |
110 | 109 | | |
111 | 110 | | |
| |||
289 | 288 | | |
290 | 289 | | |
291 | 290 | | |
292 | | - | |
| 291 | + | |
293 | 292 | | |
294 | | - | |
295 | 293 | | |
296 | 294 | | |
297 | 295 | | |
| |||
326 | 324 | | |
327 | 325 | | |
328 | 326 | | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | 327 | | |
333 | 328 | | |
334 | 329 | | |
| |||
376 | 371 | | |
377 | 372 | | |
378 | 373 | | |
379 | | - | |
380 | 374 | | |
381 | 375 | | |
382 | 376 | | |
383 | 377 | | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
| 378 | + | |
388 | 379 | | |
389 | 380 | | |
390 | 381 | | |
| |||
0 commit comments