[ Home ]

wav.h File Reference

Handles wav file writing. More...

#include "../common/platform.h"

Include dependency graph for wav.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

wtBoolean wav_write (const char *filename, void *data, W32 size, W16 channels, W32 sample_rate, W16 sample_size)
 Writes a wav file.


Detailed Description

Handles wav file writing.

Author:
Michael Liebscher
Date:
2004

Function Documentation

wtBoolean wav_write ( const char *  filename,
void *  data,
W32  size,
W16  channels,
W32  sample_rate,
W16  sample_size 
)

Writes a wav file.

Parameters:
[in] filename Pointer to a null-terminated string that specifies the name of the file to save as.
[in] data Pointer to audio data.
[in] size Length of audio data in bytes.
[in] channels Number of Channels (0x01 = Mono, 0x02 = Stereo).
[in] sample_rate Sample Rate in Hz.
[in] sample_size Bytes Per Sample: 1 = 8 bit Mono, 2 = 8 bit Stereo or 16 bit Mono, 4 = 16 bit Stereo
Returns:
On success true, otherwise false.

Here is the caller graph for this function: