This is first revision of second milestone of On the Other Side of Wormhole game creation. In it new version of PortAdio is added to game engine; WASAPI sound output interface now is fully functioning; and sounds resampling ( velocity with pitch correction ) and volume adjustments functions are added to game engine.
This is first revision of second milestone of On the Other Side of Wormhole game creation. In it new version of PortAdio is added to game engine; WASAPI sound output interface now is fully functioning; and sounds resampling ( velocity with pitch correction ) and volume adjustments functions are added to game engine.
To change sound output interface on you system - you need to look into "Logs\Log.txt" file in your game installation directory, and look for the following lines :
Information : Sound Engine ( 16.020 ) : Sound Engine initializes.
Information : Sound Engine ( 16.058 ) : Available host API : ASIO
Information : Sound Engine ( 16.059 ) : Available device of host API : ASIO 2.0 - ESI UGM96
Information : Sound Engine.Init () ( 16.059 ) : Default sample rate 44100.000000
Information : Sound Engine ( 16.059 ) : Available host API : Windows WASAPI
Information : Sound Engine ( 16.060 ) : Available device of host API : Динамики (2- UGM96 Audio driver)
Information : Sound Engine.Init () ( 16.060 ) : Default sample rate 96000.000000
Information : Sound Engine ( 16.060 ) : Available device of host API : Линия (2- UGM96 Audio driver)
Information : Sound Engine.Init () ( 16.061 ) : Default sample rate 96000.000000
Information : Sound Engine.Init () ( 16.061 ) :
Information : Sound Engine.Init () ( 16.061 ) : Chosen audio system : ASIO
Information : Sound Engine.Init () ( 16.062 ) : Chosen device : ASIO 2.0 - ESI UGM96
Information : Sound Engine.Init () ( 16.062 ) : Chosen channels count : 2
Information : Sound Engine.Init () ( 16.062 ) : Chosen sample rate : 48000
"Available host API : ASIO" line tells that ASIO sound output interface is present on your computer, and it has index 0, as it goes first in log file. "Available host API : Windows WASAPI" tells that WASAPI sound interface is present on your computer and it has index 1, as it goes second in log file. Then you need to open "Data\Configs\DefaultPlayer\Engine.xml" file and look for the following lines :
Option Name="SoundSystemIndex" Value="0"
Option Name="AudioDeviceIndex" Value="0"
Here you can set sound output interface "SoundSystemIndex" by setting its index into Value attribute ( index is determined by order of sound output interface in log file ); and here is ability to choose output audio device index "AudioDeviceIndex" - names of output audio devices follow after names of sound output interfaces and their indexes are determined by the same way, as indexes of sound output interfaces are determined.
For now there is only this way to choose different sound output interfaces and devices; when graphical user interface system will be created - audio devices will be chosen from convenient system options menus.