MCPcopy Create free account
hub / github.com/SFML/SFML / setSpatializationEnabled

Method setSpatializationEnabled

src/SFML/Audio/SoundSource.cpp:63–67  ·  view source on GitHub ↗

///////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

61
62////////////////////////////////////////////////////////////
63void SoundSource::setSpatializationEnabled(bool enabled)
64{
65 if (auto* sound = static_cast<ma_sound*>(getSound()))
66 ma_sound_set_spatialization_enabled(sound, enabled ? MA_TRUE : MA_FALSE);
67}
68
69
70////////////////////////////////////////////////////////////

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected