| 29 | bool operator!=(const AudioFormat &other) const { return !(*this == other); } |
| 30 | |
| 31 | int getSampleSize() const |
| 32 | { |
| 33 | switch (format) |
| 34 | { |
| 35 | case SampleFormat::PCM_SINT16: |
| 36 | return 2; |
| 37 | case SampleFormat::PCM_UINT8: |
| 38 | return 1; |
| 39 | default: |
| 40 | // Invalid sample format |
| 41 | return 0; |
| 42 | } |
| 43 | } |
| 44 | }; |
| 45 | |
| 46 | class BackendSampleData |
no outgoing calls
no test coverage detected