spAudio
Loading...
Searching...
No Matches
spWaveInfo Struct Reference

#include <sp/spWave.h>

Collaboration diagram for spWaveInfo:
Collaboration graph

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)
 

Detailed Description

A structure to hold information related to the audio file.

Examples
rec.c.

Friends And Related Symbol Documentation

◆ spInitWaveInfo()

spBool spInitWaveInfo ( spWaveInfo * wave_info)
related

Initialize contents of spWaveInfo .

◆ spCopyWaveInfo()

spBool spCopyWaveInfo ( spWaveInfo * dest_info,
spWaveInfo * src_info )
related

Copy contents of spWaveInfo to another.

Field Documentation

◆ file_type

char file_type[SP_WAVE_FILE_TYPE_SIZE]

Format unique ID, e.g. "wav" .

◆ file_desc

char file_desc[SP_WAVE_FILE_DESC_SIZE]

Format description, e.g. "Microsoft PCM" .

Examples
rec.c.

◆ file_filter

char file_filter[SP_WAVE_FILE_FILTER_SIZE]

Filter mask, e.g. "*.wav" .

◆ buffer_size

int buffer_size

Buffer size for output buffer.

◆ header_size

spLong header_size

You can skip header by fseek with this size. If you aren't allowed that, zero will be set.

◆ samp_bit

int samp_bit

Bits/sample.

Examples
rec.c.

◆ num_channel

int num_channel

The number of channels.

Examples
rec.c.

◆ samp_rate

double samp_rate

Sampling rate [Hz].

Examples
rec.c.

◆ bit_rate

long bit_rate

Bit rate [bits/sec].

◆ length

spLong length

Total length of sound [point].

Examples
rec.c.