spAudio
|
#include <sp/spWave.h>
Data Fields | |
char | file_type [SP_WAVE_FILE_TYPE_SIZE] |
char | file_desc [SP_WAVE_FILE_DESC_SIZE] |
char | file_filter [SP_WAVE_FILE_FILTER_SIZE] |
int | buffer_size |
spLong | header_size |
int | samp_bit |
int | num_channel |
double | samp_rate |
long | bit_rate |
spLong | length |
Related Symbols | |
(Note that these are not member symbols.) | |
spBool | spInitWaveInfo (spWaveInfo *wave_info) |
spBool | spCopyWaveInfo (spWaveInfo *dest_info, spWaveInfo *src_info) |
A structure to hold information related to the audio file.
|
related |
Initialize contents of spWaveInfo .
|
related |
Copy contents of spWaveInfo to another.
char file_type[SP_WAVE_FILE_TYPE_SIZE] |
Format unique ID, e.g. "wav"
.
char file_desc[SP_WAVE_FILE_DESC_SIZE] |
Format description, e.g. "Microsoft PCM"
.
char file_filter[SP_WAVE_FILE_FILTER_SIZE] |
Filter mask, e.g. "*.wav"
.
int buffer_size |
Buffer size for output buffer.
spLong header_size |
You can skip header by fseek with this size. If you aren't allowed that, zero will be set.
int samp_bit |
Bits/sample.
int num_channel |
The number of channels.
double samp_rate |
Sampling rate [Hz].
long bit_rate |
Bit rate [bits/sec].
spLong length |
Total length of sound [point].