MCPcopy Create free account
hub / github.com/BruceDevices/firmware / isAudioFile

Function isAudioFile

src/modules/others/audio.cpp:649–653  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

647}
648
649bool isAudioFile(String filepath) {
650 return filepath.endsWith(".opus") || filepath.endsWith(".rtttl") || filepath.endsWith(".txt") ||
651 filepath.endsWith(".wav") || filepath.endsWith(".mod") || filepath.endsWith(".mp3") ||
652 filepath.endsWith(".aac") || filepath.endsWith(".flac");
653}
654
655void playTone(unsigned int frequency, unsigned long duration, short waveType) {
656 if (!bruceConfig.soundEnabled) return;

Callers 1

loopSDFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected