com.crickettechnology.audio
Class Config

java.lang.Object
  extended by com.crickettechnology.audio.Config

public final class Config
extends java.lang.Object

Configuration options for the Engine.


Field Summary
 float AudioUpdateMs
          Audio processing frame duration, in ms.
 boolean EnableOggVorbis
          If true, software support for Ogg Vorbis stream sounds is enabled.
static int LOG_ALL
           
static int LOG_ERROR
           
static int LOG_INFO
           
static int LOG_NONE
           
static int LOG_WARNING
           
 java.lang.String LogFile
          Log file in which messages are saved.
 int LogMask
          Bitmask for which types of messages are logged.
 boolean NativeDebug
          If true, the debug version of the native library (libckjava_d.so) is loaded, instead of the release version (libckjava.so).
 float StreamBufferMs
          Size of buffer for stream sounds.
 float StreamFileUpdateMs
          Interval between file reads for stream sounds, in ms.
 boolean UseJavaAudio
          If true, always use Java audio output instead of OpenSL ES.
 
Constructor Summary
Config()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG_INFO

public static final int LOG_INFO
See Also:
Constant Field Values

LOG_WARNING

public static final int LOG_WARNING
See Also:
Constant Field Values

LOG_ERROR

public static final int LOG_ERROR
See Also:
Constant Field Values

LOG_NONE

public static final int LOG_NONE
See Also:
Constant Field Values

LOG_ALL

public static final int LOG_ALL
See Also:
Constant Field Values

NativeDebug

public boolean NativeDebug
If true, the debug version of the native library (libckjava_d.so) is loaded, instead of the release version (libckjava.so).


UseJavaAudio

public boolean UseJavaAudio
If true, always use Java audio output instead of OpenSL ES. Default is false (use Java audio output only when OpenSL ES is not available, i.e. Android versions prior to 2.3).


EnableOggVorbis

public boolean EnableOggVorbis
If true, software support for Ogg Vorbis stream sounds is enabled. Default is false (no additional Ogg Vorbis support in software).


LogMask

public int LogMask
Bitmask for which types of messages are logged. Default is LOG_ALL (all messages logged).


LogFile

public java.lang.String LogFile
Log file in which messages are saved. Default is NULL (log messages not saved to a file).


AudioUpdateMs

public float AudioUpdateMs
Audio processing frame duration, in ms. Default is 5 ms.


StreamBufferMs

public float StreamBufferMs
Size of buffer for stream sounds. Default is 500 ms.


StreamFileUpdateMs

public float StreamFileUpdateMs
Interval between file reads for stream sounds, in ms. Shorter times will allow for smaller stream buffer sizes, but require more CPU. Default is 100 ms.

Constructor Detail

Config

public Config()