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

Function getBitDepthDescription

choc/audio/choc_AudioFileFormat.h:302–315  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

300//==============================================================================
301
302inline std::string_view getBitDepthDescription (BitDepth b)
303{
304 switch (b)
305 {
306 case BitDepth::int8: return "8-bit int";
307 case BitDepth::int16: return "16-bit int";
308 case BitDepth::int24: return "24-bit int";
309 case BitDepth::int32: return "32-bit int";
310 case BitDepth::float32: return "32-bit float";
311 case BitDepth::float64: return "64-bit float";
312 case BitDepth::unknown:
313 default: return "unknown";
314 }
315}
316
317inline constexpr bool isFloat (BitDepth b)
318{

Callers 1

getDescriptionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected