MCPcopy Create free account
hub / github.com/LabSound/LabSound / formatBytes

Method formatBytes

src/backends/RtAudio/RtAudio.cpp:11030–11047  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11028}
11029
11030unsigned int RtApi ::formatBytes(RtAudioFormat format)
11031{
11032 if (format == RTAUDIO_SINT16)
11033 return 2;
11034 else if (format == RTAUDIO_SINT32 || format == RTAUDIO_FLOAT32)
11035 return 4;
11036 else if (format == RTAUDIO_FLOAT64)
11037 return 8;
11038 else if (format == RTAUDIO_SINT24)
11039 return 3;
11040 else if (format == RTAUDIO_SINT8)
11041 return 1;
11042
11043 errorText_ = "RtApi::formatBytes: undefined format.";
11044 error(RtAudioError::WARNING);
11045
11046 return 0;
11047}
11048
11049void RtApi ::setConvertInfo(StreamMode mode, unsigned int firstChannel)
11050{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected