MCPcopy Create free account
hub / github.com/Signalsmith-Audio/reverb-example-code / formatIsValid

Method formatIsValid

wav.h:93–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91 PCM=1
92 };
93 bool formatIsValid(uint16_t format, uint16_t bits) {
94 if (format == (uint16_t)Format::PCM) {
95 if (bits == 16) {
96 return true;
97 }
98 }
99 return false;
100 }
101
102 Result read(std::string filename) {
103 std::ifstream file;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected