Hi I'am buiding a game and I loaded the required .wav files to be played when the player colloid with an obstacle :
FlameAudio.play("file.wav")
But when I restart the app in debug mode it gives me an error:
OS Error:
FileSystemException (FileSystemException: Cannot open file, path = 'C:\Users\ashoukry\AppData\Local\Temp/file.wav'
"The process cannot access the file because it is being used by another process "
What I am tried : I used the following code but with no success and it gives the same error:
AudioPLayer player = await FlameAudio.play("file.wav");
player.dispose()
Also :
AudioPLayer player = await FlameAudio.play("file.wav");
player.release()