de.humatic.dsj.com
Class IBasicAudio

java.lang.Object
  extended by de.humatic.dsj.com.IBasicAudio
All Implemented Interfaces:
COMObject

public class IBasicAudio
extends java.lang.Object
implements COMObject

Wrapper around the native IBasicAudio interface exposed by most audio renderer filters. You can use this if you need to separately control multiple audio renderers in one filtergraph - where DSFiltergraph.setVolume(..) would act as a "master" control for all renderers. For most simple use cases the DSFiltergraph method should be preferred.
To get an instance of this class, call COMFactory.queryInterface(...) with the audio renderer filter and COMFactory.IID_IBasicAudio as arguments.


Method Summary
 float getBalance()
           
 float getVolume()
           
 void release()
           
 void setBalance(float pan)
          Set balance to a value between -1 (far left) and 1 (far right)
 void setVolume(float volume)
          Set volume to a value between 0 (-100db) and 1 (0db).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getVolume

public float getVolume()

setVolume

public void setVolume(float volume)
               throws DSJException
Set volume to a value between 0 (-100db) and 1 (0db). Note that the volume curve used by the native api is logarithmical and dsj does not change that.

Throws:
DSJException

getBalance

public float getBalance()

setBalance

public void setBalance(float pan)
                throws DSJException
Set balance to a value between -1 (far left) and 1 (far right)

Throws:
DSJException

release

public void release()
Specified by:
release in interface COMObject