didgmo 0.3.2
Functions
wave
didgmo

Routines for interaction with wave files. More...

Collaboration diagram for wave:

Functions

wave * wave_new (int i_size)
 creates new wave object with size i_size.
void wave_free (wave *i_wave)
 frees wave object.
wave * wave_load (char *i_path, int i_sec)
 loads given wave file.
void wave_save (wave *i_wave, char *i_path)
 saves given wave file.
fft * wave_fft (wave *i_wave, int i_freq)
 fast fourier transformation of wave object to a fft spectrum.
void wave_play (wave *i_wave)
 play back wave object on sound card.

Detailed Description

Routines for interaction with wave files.


Function Documentation

wave* wave_new ( int  i_size)

creates new wave object with size i_size.

Parameters:
i_sizesize of wave array (bitrate x duration)
Returns:
wave object (free with wave_free)
void wave_free ( wave *  i_wave)

frees wave object.

Parameters:
i_wavewave object
wave* wave_load ( char *  i_path,
int  i_sec 
)

loads given wave file.

Parameters:
i_pathfile path
i_secduration to read from wave file
Returns:
wave object
void wave_save ( wave *  i_wave,
char *  i_path 
)

saves given wave file.

Parameters:
i_wavewave object
i_pathfile path
fft* wave_fft ( wave *  i_wave,
int  i_freq 
)

fast fourier transformation of wave object to a fft spectrum.

Parameters:
i_wavewave object
i_freqfrequency range
Returns:
fft spectrum (only sound spectrum is defined)
void wave_play ( wave *  i_wave)

play back wave object on sound card.

Parameters:
i_wavewave object