Skip to content

Commit 1d9bcc5

Browse files
authored
fix doc error in audioOut.c
fixes adafruit#851
1 parent 1eb412b commit 1d9bcc5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

shared-bindings/audioio/AudioOut.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@
8080
//| speaker_enable = digitalio.DigitalInOut(board.SPEAKER_ENABLE)
8181
//| speaker_enable.switch_to_output(value=True)
8282
//|
83-
//| wav = audioio.WaveFile("cplay-5.1-16bit-16khz.wav")
83+
//| data = open("cplay-5.1-16bit-16khz.wav", "rb")
84+
//| wav = audioio.WaveFile(data)
8485
//| a = audioio.AudioOut(board.A0)
8586
//|
8687
//| print("playing")

0 commit comments

Comments
 (0)