Closed natey2000 closed 6 months ago
Minetest 5.8.0 Fixed issue where motorbike engine sound is not ramping up and down correctly when going in reverse.
Errors in minetest log: WARNING[OpenALSoundManager]: OpenALSoundManager::playSoundGeneric: Illegal pitch value: 0
WARNING[OpenALSoundManager]: OpenALSoundManager::playSoundGeneric: Illegal pitch value: 0
Diagnosis: When sound_play is called, pitch parameter is getting sent a negative value when motorbike is going in reverse.
sound_play
Fix applied: Make sure the local variable rpm is mathematically absolute.
rpm
👍🏻
Minetest 5.8.0 Fixed issue where motorbike engine sound is not ramping up and down correctly when going in reverse.
Errors in minetest log:
WARNING[OpenALSoundManager]: OpenALSoundManager::playSoundGeneric: Illegal pitch value: 0
Diagnosis: When
sound_play
is called, pitch parameter is getting sent a negative value when motorbike is going in reverse.Fix applied: Make sure the local variable
rpm
is mathematically absolute.