Apologies if this is a dumb question but I've been trying to include a small ogg file in my binary and play it when the application starts. The problem is, I keep getting the error on the PlaySound() command:
"The specified #Sound is not initialised."
Code: Select all
.
.
.
InitSound()
UseOGGSoundDecoder()
OpenwinMain() ; Open the first window. This procedure name is always 'Open' followed by the window name
CatchSound(0, ?Music)
PlaySound(0) ; Error: "The specified #Sound is not initialised."
Repeat
Event = WaitWindowEvent()
Select EventWindow()
Case MainWindow
winMain_Events(Event) ; This procedure name is always window name followed by '_Events'
EndSelect
Until Event = #PB_Event_CloseWindow ; Quit on any window close
DataSection
Music:
IncludeBinary "song.ogg"
EndDataSectionThank you!


