scons --> make
[aftubes.git] / aformat.c
blobfff2dc406fbf937ccb3488b60369c3553a7bb4fe
1 #include "aformat.h"
3 int aformat_get_sample_size(struct aformat *af)
5 switch (af->media){
6 case MT_AUDIO_32F:
7 return sizeof(float) * af->channels;
8 case MT_AUDIO_16I:
9 return sizeof(short) * af->channels;
10 case MT_AUDIO_32I:
11 return sizeof(int) * af->channels;
12 default:
13 return 0;