Example #1
0
File: mdia.c Project: cmjonze/faad
int quicktime_mdia_init_audio(quicktime_t *file, 
							quicktime_mdia_t *mdia, 
							int channels,
							int sample_rate, 
							int bits, 
							int sample_size,
							int time_scale,
							int sample_duration,
							char *compressor)
{
	quicktime_mdhd_init_audio(file, &(mdia->mdhd), time_scale);
	quicktime_minf_init_audio(file, &(mdia->minf), channels, sample_rate, bits, sample_size, time_scale, sample_duration, compressor);
	quicktime_hdlr_init_audio(&(mdia->hdlr));
}
Example #2
0
void quicktime_mdia_init_audio(quicktime_t *file, 
							quicktime_mdia_t *mdia, 
							int channels,
							int sample_rate, 
							int bits, 
							char *compressor)
{
	quicktime_mdhd_init_audio(&(mdia->mdhd), 
		sample_rate);
	quicktime_minf_init_audio(file, 
		&(mdia->minf), 
		channels, 
		sample_rate, 
		bits, 
		compressor);
	quicktime_hdlr_init_audio(&(mdia->hdlr));
}