Package pyj2d :: Module mixer :: Class Mixer

Class Mixer

java.lang.Runnable --+
                     |
                    Mixer

pyj2d.mixer

Instance Methods
 
__init__(self)
 
init(self, frequency=22050, size=-16, channels=2, buffer=4096)
Mixer initialization. Argument sampled frequency, bit size, channels, and buffer. Currently implements PCM 16-bit audio. Plays WAV, AIFF, and AU sampled audio. To specify BigEndian format of AIFF and AU, use size of float type. The mixing is done by Mixer.class, compiled with 'javac Mixer.java'. For JAR creation include with 'jar uvf App.jar pyj2d/Mixer.class'.
 
pre_init(self, frequency=22050, size=-16, channels=2, buffer=4096)
Mixer initialization.
 
quit(self)
Stop mixer processing and release resources.
 
get_init(self)
Get the audio format initialized.
 
stop(self)
Stop mixer channels.
 
fadeout(self, time)
Fadeout mixer channels in given time.
 
pause(self)
Pause mixer channels.
 
unpause(self)
Unpause mixer channels.
 
set_num_channels(self, count)
Set maximum mixer channels. Argument channel count.
 
get_num_channels(self)
Get maximum mixer channels.
 
set_reserved(self, count)
Reserve channel. Argument reserved channel count.
 
find_channel(self, force=False)
Get an inactive mixer channel. Optional force attribute return longest running channel if all active.
 
get_busy(self)
Check if mixer channels are actively processing.