mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 00:25:19 +02:00
Sounds: Various little improvements (#12486)
Use SimpleSoundSpec where reasonable (OpenAL) Ensure the sound IDs do not underflow or get overwritten -> loop in u16 Proper use of an enum.
This commit is contained in:
@@ -59,3 +59,11 @@ struct SimpleSoundSpec
|
||||
float pitch = 1.0f;
|
||||
bool loop = false;
|
||||
};
|
||||
|
||||
|
||||
// The order must not be changed. This is sent over the network.
|
||||
enum class SoundLocation : u8 {
|
||||
Local,
|
||||
Position,
|
||||
Object
|
||||
};
|
||||
|
Reference in New Issue
Block a user