Thief007 / swingamesdk

Automatically exported from code.google.com/p/swingamesdk
1 stars 2 forks source link

Checking for Audio Devices #11

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Try starting audio without actually having a output device.

What is the expected output? What do you see instead?
The program should at least continue running, without the audio.

What version of the product are you using? On what operating system?
SwinGame API v3.0a (But I know for a fact this also happens in version 2 of
the API)

Please provide any additional information below.
Maybe there should be a function under Audio that allows the programmer to
check for the existence of a audio output, or even an option to make errors
that are caused by no sound cards/audio outputs being installed not be
raised (Ie: Allowing the game to be run without sound, not raising errors :D)

Original issue reported on code.google.com by trinity....@gmail.com on 8 Sep 2009 at 4:45

GoogleCodeExporter commented 8 years ago

Original comment by swinbr...@gmail.com on 9 Sep 2009 at 5:27

GoogleCodeExporter commented 8 years ago
Added a TryOpenAudio function to Audio. This will return false if open fails. 
The standard OpenAudio will result 
in an error if the open action fails.

Original comment by swinbr...@gmail.com on 9 Sep 2009 at 6:48