Bill Cox | ca02d87 | 2010-11-02 15:10:52 -0400 | [diff] [blame] | 1 | /* Sonic library |
| 2 | Copyright 2010 |
| 3 | Bill Cox |
| 4 | This file is part of the Sonic Library. |
| 5 | |
Bill Cox | 60eeb06 | 2015-02-27 10:17:45 -0800 | [diff] [blame] | 6 | This file is licensed under the Apache 2.0 license. */ |
Bill Cox | ca02d87 | 2010-11-02 15:10:52 -0400 | [diff] [blame] | 7 | |
| 8 | /* Support for reading and writing wave files. */ |
| 9 | |
| 10 | typedef struct waveFileStruct *waveFile; |
| 11 | |
Bill Cox | 1a299bb | 2010-11-19 15:07:17 -0500 | [diff] [blame] | 12 | waveFile openInputWaveFile(char *fileName, int *sampleRate, int *numChannels); |
| 13 | waveFile openOutputWaveFile(char *fileName, int sampleRate, int numChannels); |
Bill Cox | ec23ae0 | 2011-10-21 03:02:47 -0400 | [diff] [blame] | 14 | int closeWaveFile(waveFile file); |
Bill Cox | 0c4c060 | 2010-11-08 11:46:30 -0500 | [diff] [blame] | 15 | int readFromWaveFile(waveFile file, short *buffer, int maxSamples); |
| 16 | int writeToWaveFile(waveFile file, short *buffer, int numSamples); |