MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / getSampleSize

Method getSampleSize

framework/sound.h:31–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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
46class BackendSampleData

Callers 4

SDLSampleDataMethod · 0.80
getMoreMusicMethod · 0.80
loadSampleMethod · 0.80
fillDataMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected