| 193 | } |
| 194 | |
| 195 | SoundFile::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 | |
| 205 | SoundFile& SoundFile::encoding(EncodingType v){ |
| 206 | #define CS(x) case x: mImpl->formatMinor(SF_FORMAT_##x); break; |
no test coverage detected