MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / OpenAndPlay2D

Method OpenAndPlay2D

engine/Poseidon/Audio/SoundScene.cpp:518–526  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

516}
517
518IWave* SoundScene::OpenAndPlay2D(const char* filename, float volume, float frequency, bool accomodate)
519{
520 IWave* handle = Open(filename, false, accomodate);
521 if (handle)
522 {
523 handle->SetVolume(volume, frequency, true);
524 }
525 return handle;
526}
527
528void SoundScene::Reset()
529{

Callers 1

StartSoundMethod · 0.80

Calls 1

SetVolumeMethod · 0.45

Tested by

no test coverage detected