com.frinika.audio
Class AudioContext

java.lang.Object
  extended by com.frinika.audio.AudioContext

public class AudioContext
extends java.lang.Object

An audio context is the glue between a Frinika Voice server and the audio interfaces of the operating system. By creating an instance of audio context, you'll automatically get a voice server connected to your operating systems sound resources.

Author:
Peter Johan Salomonsen

Constructor Summary
AudioContext()
          Create a audio context with a Jack voice server if it exists ot JavaSound if not
AudioContext(VoiceServer server)
          Create an audio context with the given VoiceServer
 
Method Summary
static AudioContext getDefaultAudioContext()
          Returns the default audio context
 VoiceServer getVoiceServer()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AudioContext

public AudioContext(VoiceServer server)
Create an audio context with the given VoiceServer

Parameters:
server -

AudioContext

public AudioContext()
             throws java.lang.Exception
Create a audio context with a Jack voice server if it exists ot JavaSound if not

Throws:
java.lang.Exception
Method Detail

getVoiceServer

public VoiceServer getVoiceServer()
Returns:
Returns the voiceServer.

getDefaultAudioContext

public static final AudioContext getDefaultAudioContext()
Returns the default audio context

Returns: