MCPcopy Create free account
hub / github.com/EasyRPG/Player / GetFormat

Method GetFormat

src/audio_secache.cpp:98–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98void AudioSeCache::GetFormat(int& frequency, AudioDecoder::Format& format, int& channels) const {
99 if (!audio_decoder) {
100 if (!GetCachedFormat(frequency, format, channels)) {
101 assert(false);
102 }
103
104 return;
105 }
106
107 audio_decoder->GetFormat(frequency, format, channels);
108}
109
110std::unique_ptr<AudioSeCache> AudioSeCache::GetCachedSe(std::string_view name) {
111 auto se = std::make_unique<AudioSeCache>();

Callers 1

CreateSeDecoderMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected