Skip to content

Commit

Permalink
fix(client): releasing named audio bank rather than releasing a gener…
Browse files Browse the repository at this point in the history
…al audio bank
  • Loading branch information
Manason committed Dec 22, 2023
1 parent 6bd8cb6 commit e6bf30e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ local function playSoundFromEntity(data)
PlaySoundFromEntity(soundId, audioName, data.entity, data.audioRef, false, false)
ReleaseSoundId(soundId)
end
ReleaseScriptAudioBank()
ReleaseNamedScriptAudioBank(data.audioBank)
end

exports('PlaySoundFromEntity', playSoundFromEntity)
Expand Down Expand Up @@ -79,7 +79,7 @@ local function playSoundFromCoords(data)
PlaySoundFromCoord(soundId, audioName, data.coords.x, data.coords.y, data.coords.z, data.audioRef, false, data.range, false)
ReleaseSoundId(soundId)
end
ReleaseScriptAudioBank()
ReleaseNamedScriptAudioBank(data.audioBank)
end

exports('PlaySoundFromCoords', playSoundFromCoords)
Expand Down

0 comments on commit e6bf30e

Please sign in to comment.