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

Method OpenAndPlayOnce2D

engine/Poseidon/Audio/SoundScene.cpp:507–516  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

505}
506
507IWave* SoundScene::OpenAndPlayOnce2D(const char* filename, float volume, float frequency, bool accomodate)
508{
509 IWave* handle = Open(filename, false, accomodate);
510 if (handle)
511 {
512 handle->SetVolume(volume, frequency, true);
513 handle->Repeat(1);
514 }
515 return handle;
516}
517
518IWave* SoundScene::OpenAndPlay2D(const char* filename, float volume, float frequency, bool accomodate)
519{

Callers 10

SayMethod · 0.80
OnMessageMethod · 0.80
StartSoundMethod · 0.80
SayMethod · 0.80
StartMusicTrackMethod · 0.80
PreviewMethod · 0.80
PlaySoundMethod · 0.80
ShowHintMethod · 0.80
PlaySoundMethod · 0.80

Calls 2

SetVolumeMethod · 0.45
RepeatMethod · 0.45

Tested by

no test coverage detected