GameMaker: Studio

GameMaker: Studio

View Stats:
afanguy Dec 29, 2016 @ 5:29am
Game Maker: Studio - could not find audio file for sound [sound-name]
Hello there, dear ladies and gentlemen.

I would like to thank you ever so much for clicking on my topic, whether it be to help me or for other reasons. So, I'll get straight to the point. So, while I do indeed own GameMaker: Studio and already have a license I had only played around with it. Everything seemed fine, until I switched hardware from my old, dusty, broken and slow laptop, which was infested with viruses, to a new and beautiful PC. Ever since that change of hardware, sounds had always refused to be played. No matter if I am testing my projects, testing executables I made just plainly for sound testing or even things, that were made to help other people create their own games (such as the Hello Mario Engine). Sadly I wasn't able to solve this problem yet.

Here's the "Compile Code" from when I tested a simple "game" with just one object, that would play a simple sound when the spacebar ist pressed:

Compile started: 14:15:57
"C:\Users\afanguy\AppData\Roaming\GameMaker-Studio\GMAssetCompiler.exe" /c /m=win /config="Default" /tgt=64 /obob=True /obpp=False /obru=True /obes=False /i=2 /cvm /tp=2048 /mv=1 /iv=0 /rv=0 /bv=1757 /gn="SoundTest" /td="C:\Users\afanguy\AppData\Local" /cd="C:\Users\afanguy\Documents\GameMaker\Cache" /sh=True /dbgp="6502" /hip="127.0.0.1" /hprt="51268" /o="C:\Users\afanguy\AppData\Local\gm_ttt_93680\gm_ttt_65871" "C:/Users/afanguy/Documents/GameMaker/Projects/SoundTest.gmx/SoundTest.project.gmx"

Reading project file....finished.
Compile Constants...finished.
Remove DnD...finished.
Compile Scripts...finished.
Compile Objects...finished.
Compile Timelines...finished.
Compile Triggers...finished.
Compile Rooms...finished.
Compile Extensions...finished.
Final Compile...finished.
Saving IFF file... C:\Users\afanguy\AppData\Local\gm_ttt_93680\gm_ttt_65871\SoundTest.win
Writing Chunk... GEN8
Writing Chunk... OPTN
Writing Chunk... EXTN
Writing Chunk... SOND
Converting snd_off to Ogg with quality 3, mono @ 44100Hz
ffmpeg (C:\Users\afanguy\AppData\Roaming\GameMaker-Studio\ffmpeg.exe) failed for -y -i "C:/Users/afanguy/Documents/GameMaker/Projects/SoundTest.gmx/sound/audio/snd_off.mp3" -acodec libvorbis -ac 1 -ar 44100 -aq 3 -loglevel quiet "C:\Users\afanguy\Documents\GameMaker\Cache\SoundTest\Default\Audio\snd_off.ogg", The system cannot find the file specified
*writing audio file C:\Users\afanguy\AppData\Local\gm_ttt_93680\gm_ttt_65871\snd_off.ogg...
Writing Chunk... AGRP
Writing Chunk... SPRT
Writing Chunk... BGND
Writing Chunk... PATH
Writing Chunk... SCPT
Writing Chunk... SHDR
Writing Chunk... FONT
Writing Chunk... TMLN
Writing Chunk... OBJT
Writing Chunk... ROOM
Writing Chunk... DAFL
Writing Chunk... TPAGE
Writing Chunk... CODE
Writing Chunk... VARI
Writing Chunk... FUNC
Writing Chunk... STRG
Writing Chunk... TXTR
Writing Chunk... AUDO
Writing Chunk... SCPT
Writing Chunk... DBGI
Writing Chunk... INST
Writing Chunk... LOCL
Writing Chunk... STRG
Stats : GMA : Elapsed=2829,1618
Stats : GMA : sp=0,au=1,bk=0,pt=0,sc=0,sh=0,fo=0,tl=0,ob=1,ro=1,da=0,ex=0,ma=1,fm=0x40
Asset Compile finished: 14:16:06
-----------------------------------------------------------
executing C:\Users\afanguy\AppData\Local\gm_ttt_93680\gm_ttt_65871\SoundTest.win
-----------------------------------------------------------
"C:\Users\afanguy\AppData\Roaming\GameMaker-Studio\Runner.exe" -game "C:\Users\afanguy\AppData\Local\gm_ttt_93680\gm_ttt_65871\SoundTest.win"


***************************************
* YoYo Games Runner v1.0(999)[r32908] *
***************************************
RunnerLoadGame: C:\Users\afanguy\AppData\Local\gm_ttt_93680\gm_ttt_65871\SoundTest.win
#########################################################################
####!!!!$$$$$$ pwd - C:\Users\Micah\AppData\Local\gm_ttt_93680\gm_ttt_65871\
#########################################################################
RunnerLoadGame() - C:\Users\afanguy\AppData\Local\gm_ttt_93680\gm_ttt_65871\SoundTest.win
Checking if INIFile C:\Users\afanguy\AppData\Local\gm_ttt_93680\gm_ttt_65871/options.ini Exists
C:\Users\afanguy\AppData\Local\gm_ttt_93680\gm_ttt_65871/options.ini file contents: [Windows] CreateTexturesOnDemand=0 AlternateSyncMethod=0 VertexBufferMethod=1 SleepMargin=1
Process Chunk: SCPT 12
Process Chunk: DBGI 36
Process Chunk: INST 4
Process Chunk: LOCL 24
Process Chunk: STRG 217
Reading File C:\Users\afanguy\AppData\Local\gm_ttt_93680\gm_ttt_65871\SoundTest.win
Loaded File C:\Users\afanguy\AppData\Local\gm_ttt_93680\gm_ttt_65871\SoundTest.win(2712)
IFF wad found
Get Resolution
Get Header Information
InitGMLFunctions
HighScore..SavePrePend = C:\Users\afanguy\AppData\Local\SoundTest\
Game..Math..Graphic..Action..File..Resource..Interaction..3D..Particle..Misc..DS..Sound..Physics..Gamepad..GAMEPAD: 4 axis values (last) at 0x2954f10
GAMEPAD: 4 axis values (last) at 0x2954f60
GAMEPAD: 4 axis values (last) at 0x29c0580
GAMEPAD: 4 axis values (last) at 0x29c05d0
Buffers..Networking..Shaders..InitPushFunctions...YoYo..Fini
Code_Load()
VARI_Load()
got 0 global variables
got 2 instance variables
got 1 local variables
ID_STRG
Create Window
AdjustWindowRectEx
RegisterClassEx
CreateWindowEx
Init Graphics
GR_D3D_Init()
Enable DwmEnableMMCSS
Create D3D9Ex interface
Enumerate Adapters
Selected Resolution: 1024x730
Prepare to create device
Creating D3D device - ARGB=32bit, D24S8, SwapEffect=Copy, Hardware vertex processing
Creating screen render target
Get Device Caps
Graphics initialisation end...
Background_InitTextures()
Sprite_InitTextures()
Font_InitTextures()
IO Init
Process Messages
Splash!
Start Frame
Part Create Textures
Debug Init Remote Interface
VM Init
Create Score Form
Create Load Form
Create Error Form
Do The Work
LoadGameData()
initialise everything!
Process Chunk: GEN8 136
Process Chunk: OPTN 64
Process Chunk: EXTN 4
Process Chunk: SOND 44
Audio_Load()
Process Chunk: AGRP 4
AudioGroup_Load()
Process Chunk: SPRT 4
Process Chunk: BGND 4
Process Chunk: PATH 4
Process Chunk: SCPT 4
Process Chunk: SHDR 4
Process Chunk: FONT 516
Process Chunk: TMLN 4
Process Chunk: OBJT 260
Process Chunk: ROOM 984
Process Chunk: DAFL 0
Process Chunk: TPAG 4
Process Chunk: CODE 68
Process Chunk: VARI 72
Process Chunk: FUNC 48
Process Chunk: STRG 292
Process Chunk: TXTR 4
Process Chunk: AUDO 4
Audio_WAVs()
PrepareGame()
Extension_Prepare()
Code_Constant_Prepare()
Script_Prepare()
TimeLine_Prepare()
Object_Prepare()
Preparing 1 objects:
Objects 0: object0
Room_Prepare()
Sound_Prepare()
InitGraphics()
Finished PrepareGame()
Run_Start
StartGame()
StartGame() - DONE
Total memory used = 370741(0x00499649) bytes
**********************************.
Entering main loop.
**********************************.
COggAudio::PlaySound- could not find audio file for sound snd_off.ogg
---------------------------------------------------------------
minFPS, maxFPS, avgFPS
279, 3584, 1002
---------------------------------------------------------------
Compile finished: 14:16:19





I would apreciate any help or ideas given. Thanks in advance and have a lovely day!
< >
Showing 1-2 of 2 comments
frumple Dec 29, 2016 @ 9:33am 
This seems to stand out:

Converting snd_off to Ogg with quality 3, mono @ 44100Hz
ffmpeg (C:\Users\afanguy\AppData\Roaming\GameMaker-Studio\ffmpeg.exe) failed for -y -i "C:/Users/afanguy/Documents/GameMaker/Projects/SoundTest.gmx/sound/audio/snd_off.mp3" -acodec libvorbis -ac 1 -ar 44100 -aq 3 -loglevel quiet "C:\Users\afanguy\Documents\GameMaker\Cache\SoundTest\Default\Audio\snd_off.ogg", The system cannot find the file specified

GMS is failing to convert the mp3 file to ogg and then cannot find the ogg file because it doesn't exist.

Test if you can convert the file to ogg yourself or try using different sound files such as wav.

You could also try to fiddle with sound options in the sound object or IDE settings.

I can't guess why GMS is having trouble here. If this persists, post on the Gamemaker forum, or search there if others had a similar issue.
afanguy Dec 30, 2016 @ 8:33am 
Originally posted by frumple:
This seems to stand out:

Converting snd_off to Ogg with quality 3, mono @ 44100Hz
ffmpeg (C:\Users\afanguy\AppData\Roaming\GameMaker-Studio\ffmpeg.exe) failed for -y -i "C:/Users/afanguy/Documents/GameMaker/Projects/SoundTest.gmx/sound/audio/snd_off.mp3" -acodec libvorbis -ac 1 -ar 44100 -aq 3 -loglevel quiet "C:\Users\afanguy\Documents\GameMaker\Cache\SoundTest\Default\Audio\snd_off.ogg", The system cannot find the file specified

GMS is failing to convert the mp3 file to ogg and then cannot find the ogg file because it doesn't exist.

Test if you can convert the file to ogg yourself or try using different sound files such as wav.

You could also try to fiddle with sound options in the sound object or IDE settings.

I can't guess why GMS is having trouble here. If this persists, post on the Gamemaker forum, or search there if others had a similar issue.

Thanks for your reply. I have indeed now tried to manually put an ogg-version of the file in the game's cache and it seems to work. Now all I need to know is why exactly it doesn't convert the files/puts the files that are already .ogg-files in the cache.

Thanks again!
< >
Showing 1-2 of 2 comments
Per page: 1530 50

Date Posted: Dec 29, 2016 @ 5:29am
Posts: 2