WAV utilities
- closeWAVMETHODCloses a 16-bit stereo WAV file. fclose() is not enough to create a valid a WAV file, use this function to close it.ParametersReturns- Name - Type - Default - Description - fd - FILE *- The file handle to write into. None
- createWAVMETHODCreates a 16-bit WAV file. After createWAV, write audio data using the writeWAV() function or fwrite(). Close the file with the closeWAV() function. Never use direct disk writing in a real-time audio processing thread, use the Superpowered Recorder class in that case.ParametersReturns- Name - Type - Default - Description - path - const char *- The full filesystem path of the file. - samplerate - unsigned int- Sample rate of the file in Hz. - numChannels - unsigned char- The number of channels. - Type - Description - FILE *- A file handle (success) or NULL (error). 
- createWAVfdMETHODCreates a 16-bit WAV file. After createWAVfd, write audio data using the writeWAV() function or fwrite(). Close the file with the closeWAV() function. Never use direct disk writing in a real-time audio processing thread, use the Superpowered Recorder class in that case.ParametersReturns- Name - Type - Default - Description - fd - int- Existing file descriptor. Superpowered will fdopen on this using "w" mode. - samplerate - unsigned int- Sample rate of the file in Hz. - numChannels - unsigned char- The number of channels. - Type - Description - FILE *- A file handle (success) or NULL (error). 
- writeWAVMETHODWrites audio into a WAV file.ParametersReturns- Name - Type - Default - Description - fd - FILE *- The file handle to write into. - audio - short int *- 16-bit audio to write. - numberOfBytes - unsigned int- The number of bytes to write. - Type - Description - bool- Returns true for success and false for error.