10 years, 5 months ago.

bmbb cannot play wave files

Hi guys,

I am trying to build one of steves bmbb from here:http://mbed.org/cookbook/Big-Mouth-Billy-Bass

I have pretty much kept the code original and also the wiring. The only thing I have done is I have replaced the SD lib with the SDHC lib. I can read and write files to the SD Card without problems. (Text files that is). I am now as far as the fish.txt is being read but I get an error that he is unable to play my wave file.

the code bit at line 141 is where I fall out:

wavfile=fopen(wavname,"rb"); if (!wavfile) { printf("Unable to open wav file '%s'\n",wavname); return; }

Is the format of the wave a problem. Any changes when I swiched from SD to SDHC lib with reading wav files?

thanks

1 Answer

Eric Ernst
poster
10 years, 5 months ago.

found the issue. had to be 16hz at 16-bit that all worked then just fine.