Initializes pySonic and allows control over global parameters. Only one instantiation of this class can exist at a time.
Initializes pySonic. If values for buffer size, output, driver, and mixer are not provided, they default to reasonable values. Optional args are flags that will be OR'ed together and passed directly to the FMOD library. The flags can be any of the pySonic.Constants.FSOUND_INIT_* values.
The constructor will raise an exception if another instance of the World class already exists. Delete that instance first and then use the constructor again. Instances of other classes (e.g. Sample, Stream, Source) should continue to work across World deletion and creation.
The number of channels currently playing or paused.
The percent of CPU time the mixing system is using. Values range between 0.0 and 100.0.
The distance factor for 3D sound relative to 1.0 meters.
The Doppler shift factor for 3D sound. Values greater than 1.0 exaggerate the Doppler effect. Values less than 1.0 diminish the effect.
The current audio device. Zero is the default output driver on the system. One and higher are other output drivers.
The Listener object that controls the position, velocity, and other parameters of the user within the virtual 3D sound space. See the Listener class for more details.
The master volume control for all sample and stream audio. Values range between 0 and 255.
The maximum number of channels allocated for playback.
The maximum number of samples that can be loaded simultaneously.
The current amount of memory allocated to FMOD and the maximum amount of memory ever allocated to FMOD during this session.
The mixing system used during playback. The value can be any of the pySonic.Constants.FSOUND_MIXER_* flags.
The mixing rate.
The number of audio devices available on the system.
The number of 2D output channels, the number of 3D output channels, and the total number of channels in the pool (not necessarily 2D + 3D if they are shared) supported by the system.
The current audio output system (e.g. DirectSound, OSS, A3D, etc.). The value can be any of the pySonic.Constants.FSOUND_OUTPUT_* flags.
The memory location of a structure containing information specific to the chosen output device. See the FMOD documentation for details.
The Reverb object that controls the global EAX reverberation settings. See the GlobalReverb class for more details.
The volume attenuation factor for 3D sound. Volume of 3D sources normally falls off as 1.0 divided by the distance to listener. Values greater than 1.0 make the volume diminish sooner as the source distance increases. Values less than 1.0 have the opposite effect.
The speaker setup attached to the system. The value can be set to any of the pySonic.Constants.FSOUND_SPEAKERMODES_* flags.
The version of the FMOD DLL. Check to make sure this value matches pySonic.VERSION. Otherwise, you could be using a DLL with functions that don't match those used in this version of pySonic.