We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dad521a commit 17715d6Copy full SHA for 17715d6
examples/Beginner/Audio_Playback/Audio_Playback.ino
@@ -9,8 +9,8 @@
9
#include <USBHostMbed5.h>
10
#include <FATFileSystem.h>
11
12
-// AdvancedDAC library is included inside wav_seeker library
13
#include "wav_seeker.h"
+
14
AdvancedDAC dac1(A12);
15
16
USBHostMSD msd;
@@ -41,7 +41,7 @@ void setup()
41
Serial.println("Opening audio file ...");
42
43
// 16-bit PCM Mono 16kHz realigned noise reduction
44
- FILE * f = fopen("/USB_DRIVE/AUDIO_SAMPLE.wav", "r+");
+ FILE * f = fopen("/USB_DRIVE/AUDIO_SAMPLE.wav", "r");
45
if (f == nullptr)
46
{
47
Serial.print("Error opening audio file: ");
0 commit comments