net.java.sip.communicator.impl.media.protocol.portaudio
Class PortAudioUtils
java.lang.Object
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOCATOR_PREFIX
public static final String LOCATOR_PREFIX
- The locator prefix used when creating or parsing MediaLocators.
- See Also:
- Constant Field Values
PortAudioUtils
public PortAudioUtils()
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.
Distributable under LGPL license.