mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02:00
Re-order sound-related code (#12382)
Dropped ServerSoundParams -> moved to ServerPlayingSound. This gets rid of the duplicated 'fade' and 'pitch' values on server-side where only one was used anyway. SimpleSoundSpec is the basic sound without positional information, hence 'loop' is included. Recursively added PROTOCOL_VERSION to most functions to reduce the versioning mess in the future. Per-type version numbers are kept for now as a safety rope in a special case.
This commit is contained in:
@@ -622,9 +622,9 @@ void GUIEngine::updateTopLeftTextSize()
|
||||
}
|
||||
|
||||
/******************************************************************************/
|
||||
s32 GUIEngine::playSound(const SimpleSoundSpec &spec, bool looped)
|
||||
s32 GUIEngine::playSound(const SimpleSoundSpec &spec)
|
||||
{
|
||||
s32 handle = m_sound_manager->playSound(spec, looped);
|
||||
s32 handle = m_sound_manager->playSound(spec);
|
||||
return handle;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user