File: wave.h

package info (click to toggle)
sonic 0.2.0-13
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,780 kB
  • sloc: ansic: 1,456; java: 887; makefile: 64; sh: 32
file content (16 lines) | stat: -rw-r--r-- 569 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* Sonic library
   Copyright 2010
   Bill Cox
   This file is part of the Sonic Library.

   This file is licensed under the Apache 2.0 license. */

/* Support for reading and writing wave files. */

typedef struct waveFileStruct *waveFile;

waveFile openInputWaveFile(char *fileName, int *sampleRate, int *numChannels);
waveFile openOutputWaveFile(char *fileName, int sampleRate, int numChannels);
int closeWaveFile(waveFile file);
int readFromWaveFile(waveFile file, short *buffer, int maxSamples);
int writeToWaveFile(waveFile file, short *buffer, int numSamples);