GetSoundsPlaying() does not decrement after calling StopSoundInstance()
Please see the following code.
// Project: Sound Bug
// Created: 2015-08-19
// set window properties
SetWindowTitle( "Sound Bug" )
SetWindowSize( 1024, 768, 0 )
// set display properties
SetVirtualResolution( 1024, 768 )
SetOrientationAllowed( 1, 1, 1, 1 )
sound = LoadSound("mysound.wav")
inst = PlaySound(sound, 100, 1)
AddVirtualButton(1, 100, 100, 30)
do
if(GetVirtualButtonPressed(1))
StopSoundInstance(inst)
endif
print(GetSoundInstances(sound))
print(GetSoundsPlaying(sound))
print(GetSoundInstancePlaying(inst))
Sync()
loop
Upon clicking the button, all three printed values should be 0, but in reality only the third becomes 0. The first two stay at 1.