MCPcopy Create free account
hub / github.com/Tracktion/choc / getIntegerBitDepth

Function getIntegerBitDepth

choc/audio/choc_AudioFileFormat.h:337–347  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

335}
336
337inline constexpr BitDepth getIntegerBitDepth (uint16_t numBits)
338{
339 switch (numBits)
340 {
341 case 8: return BitDepth::int8;
342 case 16: return BitDepth::int16;
343 case 24: return BitDepth::int24;
344 case 32: return BitDepth::int32;
345 default: return BitDepth::unknown;
346 }
347}
348
349inline constexpr BitDepth getFloatBitDepth (uint16_t numBits)
350{

Callers 2

handleStreamInfoMethod · 0.85
readChunk_fmtMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected