Good evening forum,
I am trying to load some audio files onto my onboard serial flash chip. The same chip suggested on the Audio homepage. I understand the process of loading the RAW files onto the SD card and then writing them to the flash chip. My issue comes in not understanding how to run the wav2trw sketch. I am using a Mac book with the latest software (Teensy 3.2, Teensyduino 1.31, OS Sierra, Xcode).
My attempts to run wav2trw were as follows:
1. I opened the terminal and typed: gcc -O2 -Wall -o wav2trw wav2trw.c, replacing wav2trw with my filename. I recieve three errors saying these files do not exist. So my question here is, where should I save the wav2trw.c sketch and where should I place my WAV samples to be converted to RAW? Should I create a folder on the desktop, and place in there the c sketch with the WAV samples? I tried this with no luck still.
2. I used the command line tool on Xcode to run the .c file. It seems to run but my output reads:
I have replaced the line:
with:
Is that all I need to do in order to properly run the sketch? If so, why might my output be an exit code of 0? Is there a way to add the file to this sketch in order to make it run properly.
Also, thank you Frank B for making these libraries and sketches. They're sweet!
I am trying to load some audio files onto my onboard serial flash chip. The same chip suggested on the Audio homepage. I understand the process of loading the RAW files onto the SD card and then writing them to the flash chip. My issue comes in not understanding how to run the wav2trw sketch. I am using a Mac book with the latest software (Teensy 3.2, Teensyduino 1.31, OS Sierra, Xcode).
My attempts to run wav2trw were as follows:
1. I opened the terminal and typed: gcc -O2 -Wall -o wav2trw wav2trw.c, replacing wav2trw with my filename. I recieve three errors saying these files do not exist. So my question here is, where should I save the wav2trw.c sketch and where should I place my WAV samples to be converted to RAW? Should I create a folder on the desktop, and place in there the c sketch with the WAV samples? I tried this with no luck still.
2. I used the command line tool on Xcode to run the .c file. It seems to run but my output reads:
PHP:
Total data size 0 bytes
Program ended with exit code: 0
I have replaced the line:
Code:
const char *filename="";
with:
Code:
const char *filename="BLING.wav";
Is that all I need to do in order to properly run the sketch? If so, why might my output be an exit code of 0? Is there a way to add the file to this sketch in order to make it run properly.
Also, thank you Frank B for making these libraries and sketches. They're sweet!