Game Development Community

audio stopped working, need help

by Ashwin · in iTorque 2D · 04/28/2009 (10:33 pm) · 5 replies

Hello guys and girls,

I've got a problem with my project. I was just changing some sprites in iTGB and when I ran the game the audio didn't work anymore. This is weird because I didn't touch the script at all.

This message is showing up in the console log:

OpenAL Driver Init:
Failed to initialize audio system. Invalid driver.

Does anybody know how to fix this??

yours truly

Ashwin

#1
04/29/2009 (12:12 am)
Must be something with your operating system then
#2
04/29/2009 (2:13 am)
Audio is working fine on my mac. If I start a new project in iTGB the audio works,but when I open the project with my game the audio is still broken so maybe there is something wrong with the project.

But I don't know what, since I didn't change anything in the scripts.
#3
04/29/2009 (11:41 pm)
I fixed it but it is a weird fix

i changed in gamescripts/audio.cs from:
if($pref::Audio::driver $= "OpenAL")

into

if($pref::Audio::driver !$= "OpenAL")

this is wierd cause in the defaultPrefs.cs
the variable is "OpenAL"
$pref::Audio::driver = "OpenAL";

is this a Bug or am I doing something wrong?
#4
10/23/2009 (2:51 am)
this happened to me too and i did you fix and it fixed it. I wonder what is going on?
#5
12/13/2013 (10:03 am)
Seems the preference is being overwritten somehow and the value of $pref::Audio::driver = ""; By removing the if statement we can get it to load up OpenAL. The REAL question is: what's happening the value of the prefs and are all the other values ok?