MCPcopy Create free account
hub / github.com/LancePutnam/Gamma / encoding

Method encoding

src/SoundFile.cpp:195–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193}
194
195SoundFile::EncodingType SoundFile::encoding() const {
196 #define CS(x) case SF_FORMAT_##x: return x;
197 switch(mImpl->formatMinor()){
198 CS(PCM_S8) CS(PCM_16) CS(PCM_24) CS(PCM_32) CS(PCM_U8)
199 CS(FLOAT) CS(DOUBLE) CS(ULAW) CS(ALAW)
200 default: return EncodingType(0);
201 }
202 #undef CS
203}
204
205SoundFile& SoundFile::encoding(EncodingType v){
206 #define CS(x) case x: mImpl->formatMinor(SF_FORMAT_##x); break;

Callers 2

recordNRTMethod · 0.80
mainFunction · 0.80

Calls 2

EncodingTypeEnum · 0.85
formatMinorMethod · 0.80

Tested by

no test coverage detected