SIP Communicator: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.media.protocol.portaudio
Class PortAudioUtils

java.lang.Object
  extended by net.java.sip.communicator.impl.media.protocol.portaudio.PortAudioUtils

public class PortAudioUtils
extends Object

Common used util methods concerning PortAudio.

Author:
Damian Minkov

Field Summary
static String LOCATOR_PREFIX
          The locator prefix used when creating or parsing MediaLocators.
 
Constructor Summary
PortAudioUtils()
           
 
Method Summary
static int getDeviceIndexFromLocator(javax.media.MediaLocator locator)
          Extracts the device index from the locator.
static long getPortAudioSampleFormat(int sampleSizeInBits)
          Returns the PortAudio sample format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOCATOR_PREFIX

public static final String LOCATOR_PREFIX
The locator prefix used when creating or parsing MediaLocators.

See Also:
Constant Field Values
Constructor Detail

PortAudioUtils

public PortAudioUtils()
Method Detail

getDeviceIndexFromLocator

public static int getDeviceIndexFromLocator(javax.media.MediaLocator locator)
Extracts the device index from the locator.

Parameters:
locator - the locator containing the device index.
Returns:
the extracted device index.

getPortAudioSampleFormat

public static long getPortAudioSampleFormat(int sampleSizeInBits)
Returns the PortAudio sample format.

Parameters:
sampleSizeInBits - the size in bits.
Returns:
the portaudio sampleformat.

SIP Communicator: the OpenSource Java VoIP and Instant Messaging client.

SIP Communicator, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.