| 11028 | } |
| 11029 | |
| 11030 | unsigned 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 | |
| 11049 | void RtApi ::setConvertInfo(StreamMode mode, unsigned int firstChannel) |
| 11050 | { |
nothing calls this directly
no outgoing calls
no test coverage detected