|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.neomedia.device.PortAudioAuto
public class PortAudioAuto
Creates PortAudio capture devices by enumerating all host devices that have input channels.
| Field Summary | |
|---|---|
static javax.media.CaptureDeviceInfo |
defaultCaptureDevice
The default capture device. |
static javax.media.CaptureDeviceInfo |
defaultPlaybackDevice
The default playback device. |
static String |
LOCATOR_PROTOCOL
The protocol of the MediaLocators identifying PortAudio CaptureDevices |
static javax.media.CaptureDeviceInfo[] |
playbackDevices
An array of the devices that can be used for playback. |
| Constructor Summary | |
|---|---|
PortAudioAuto()
Initializes a new PortAudioAuto instance which creates PortAudio capture devices by enumerating all host devices with input channels. |
|
| Method Summary | |
|---|---|
void |
deviceChanged()
PortAudio device changed callback. |
static double |
getSupportedSampleRate(boolean input,
int deviceIndex,
int channelCount,
long sampleFormat)
Gets a sample rate supported by a PortAudio device with a specific device index with which it is to be registered with JMF. |
static boolean |
isSupported()
Determines whether PortAudio is supported. |
void |
reinit()
Reinitializes PortAudio system. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String LOCATOR_PROTOCOL
public static javax.media.CaptureDeviceInfo[] playbackDevices
public static javax.media.CaptureDeviceInfo defaultPlaybackDevice
public static javax.media.CaptureDeviceInfo defaultCaptureDevice
| Constructor Detail |
|---|
PortAudioAuto()
throws Exception
Exception - if anything wrong happens while creating the PortAudio
capture devices| Method Detail |
|---|
public void deviceChanged()
public void reinit()
throws Exception
Exception - if anything wrong happens while creating the PortAudio
capture devices
public static double getSupportedSampleRate(boolean input,
int deviceIndex,
int channelCount,
long sampleFormat)
input - true if the supported sample rate is to be retrieved for
the PortAudio device with the specified device index as an input device
or false for an output devicedeviceIndex - the device index of the PortAudio device for which a
supported sample rate is to be retrievedchannelCount - number of channelsampleFormat - sample format
public static boolean isSupported()
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||