Can only use FreeAudio driver?
BlitzMax Forums/BlitzMax Beginners Area/Can only use FreeAudio driver?
| ||
When using FreeAudio all seems to be fine. However, since this driver is causing me lots of delays it's not usable for me. So, instead, I tried DirectSound and OpenAL (downloaded the dll's for the latter) but both give me this error: Unhandled Exception:Attempt to access field or method of Null object Which seems to occur at SetChannelVolume(). I've already preloaded my audio files, assigned channels for them (in the objects constructor, is this a bad thing?) and with FreeAudio it works fine. Am I missing something? |
| ||
This code will show you which audio drivers are available (for use with SetAudioDriver())EnableOpenALAudio() For s:String = EachIn AudioDrivers() Print s Next You should probably set the audio driver before loading any sounds. |
| ||
Thanks. Loading the sounds after loading the driver did the trick! |