MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / init

Method init

Source/Audio/Audio.cpp:77–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77bool WavFile::init() {
78 _wav = new SoLoud::Wav();
79 SoLoud::result result = _wav->loadMem(_data.get(), s_cast<uint32_t>(_size), false, false);
80 _data.reset();
81 if (result) {
82 delete _wav;
83 _wav = nullptr;
84 Error("failed to load sound file due to reason: {}.", SharedAudio.getSoLoud() ? SharedAudio.getSoLoud()->getErrorString(result) : "soloud is not initialized");
85 return false;
86 }
87 return true;
88}
89
90/* WavStream */
91

Callers

nothing calls this directly

Calls 15

getSoLoudMethod · 0.80
getErrorStringMethod · 0.80
getSystemSchedulerMethod · 0.80
getWorldMethod · 0.80
set3dListenerPositionMethod · 0.80
update3dAudioMethod · 0.80
set3dListenerUpMethod · 0.80
set3dListenerAtMethod · 0.80
getMethod · 0.65
ErrorEnum · 0.50
initFunction · 0.50
loadMemMethod · 0.45

Tested by

no test coverage detected