Skip to content

setSoundEffectParameter doesn't work with playSound3D #2326

@jayceon123

Description

@jayceon123

Describe the bug
The new setSoundEffectParameter function only works with the playSound function.

To reproduce

Use the example code from wiki:

local sound = playSound3D("music.mp3", 0, 0, 10)
setSoundEffectEnabled(sound, "echo", true)
setSoundEffectParameter(sound, "echo", "wetDryMix", 80)
setSoundEffectParameter(sound, "echo", "feedback", 30)

Expected behaviour
The same as with the playSound function

Screenshots
unknown

Version
MTA:SA Client 20935
MTA:SA Server 20935

Additional context
Tested with multiple sound files and types.

Activity

theSarrum

theSarrum commented on Sep 20, 2021

@theSarrum
Contributor

This function actually works, but you need to use a timer, at least for 1 millisecond. There is a similar issue with other functions, such as getSoundFFTData and getSoundWaveData.

jayceon123

jayceon123 commented on Sep 20, 2021

@jayceon123
Author

Then we need to add a note about this on the function wiki page, and correct the example too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @theSarrum@patrikjuvonen@jayceon123

        Issue actions

          setSoundEffectParameter doesn't work with playSound3D · Issue #2326 · multitheftauto/mtasa-blue