mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-27 17:28:41 +00:00
Warn only once about positional stereo sounds (#13895)
This commit is contained in:
parent
6fdc7e0dad
commit
6026003508
2 changed files with 7 additions and 1 deletions
|
@ -164,10 +164,13 @@ std::shared_ptr<PlayingSound> OpenALSoundManager::createPlayingSound(
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
if (lsnd->m_decode_info.is_stereo && pos_vel_opt.has_value()) {
|
||||
if (lsnd->m_decode_info.is_stereo && pos_vel_opt.has_value()
|
||||
&& m_warned_positional_stereo_sounds.find(sound_name)
|
||||
== m_warned_positional_stereo_sounds.end()) {
|
||||
warningstream << "OpenALSoundManager::createPlayingSound: "
|
||||
<< "Creating positional stereo sound \"" << sound_name << "\"."
|
||||
<< std::endl;
|
||||
m_warned_positional_stereo_sounds.insert(sound_name);
|
||||
}
|
||||
|
||||
ALuint source_id;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue