repo.or.cz
/
aftubes.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
scons --> make
[aftubes.git]
/
aformat.c
blob
fff2dc406fbf937ccb3488b60369c3553a7bb4fe
1
#include
"aformat.h"
2
3
int
aformat_get_sample_size
(
struct
aformat
*
af
)
4
{
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
;
14
}
15
}
16