View Issue Details

IDProjectCategoryView StatusLast Update
0009490Multi Theft Auto : San Andreaspublic2018-02-21 16:47
ReporterBonus1702Assigned ToNecktrox 
PrioritylowSeverityfeatureReproducibilityalways
Status resolvedResolutionfixed 
PlatformLinuxOSDebianOS Version8.2
Product Version 
Target Version1.5.6Fixed in Version1.5.6 
Summary0009490: [Request] setWorldSoundEnabled could stop the sound if already playing
Description

setWorldSoundEnabled doesn't stop or start the sound immediately.
It works only for the next times the sound should start.

A video:
https://www.youtube.com/watch?v=k8I2qEUe2MY&feature=youtu.be

Steps To Reproduce

Use setWorldSoundEnabled to stop or start a sound.
The sound won't stop or start until you force it by yourself.

Additional Information

It's a bit annoying if you (for example) want to mute the sound of the motor of a vehicle (index 1). It won't stop the sound, so you first have to sit in and drive a little bit to stop the sound.

TagsNo tags attached.

Activities

arranTuna

2016-12-17 18:48

manager   ~~0025507

Easiest way to reproduce is:

setWorldSoundEnabled(0, 0, false)
setWorldSoundEnabled(0, 29, false)
setWorldSoundEnabled(0, 30, false)

Turn the volume up so that you can hear that annoying wind sound. Enter interior, exit interior, notice that the wind no longer plays.

Though whether or not this is a bug or lack of feature is debatable.

Necktrox

2018-02-20 21:11

developer   ~~0026439

(Partially) fixed in https://github.com/multitheftauto/mtasa-blue/commit/44844590d35cf52a1c1bf4e4c659c4dfbe2372fb
It won't immediately start the SFX sound, only stop works. Playing a sound with CAESoundManager requires more reversing.

arranTuna

2018-02-20 23:31

manager   ~~0026440

You mean we'll be able to completely disable the annoying wind sound without first entering an interior to stop the sound playing? If so, THANK YOU! That wind sound annoys me so much I had to make a command that I had to use every time I joined that would set my interior for 1 second to remove that sound.

Inspirator

2018-02-21 10:26

viewer   ~~0026444

Wow, I hated this bug. Thanks for fixing this.

Issue History

Date Modified Username Field Change