public final class PA
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
PA.context_success_cb_t |
static interface |
PA.sink_info_cb_t |
static interface |
PA.source_info_cb_t |
static interface |
PA.stream_request_cb_t |
static interface |
PA.stream_success_cb_t |
Modifier and Type | Field and Description |
---|---|
static int |
CONTEXT_AUTHORIZING |
static int |
CONTEXT_CONNECTING |
static int |
CONTEXT_FAILED |
static int |
CONTEXT_NOFAIL |
static int |
CONTEXT_NOFLAGS |
static int |
CONTEXT_READY |
static int |
CONTEXT_SETTING_NAME |
static int |
CONTEXT_TERMINATED |
static int |
CONTEXT_UNCONNECTED |
static int |
ENCODING_ANY |
static int |
ENCODING_INVALID |
static int |
ENCODING_PCM |
static int |
INVALID_INDEX |
static int |
OPERATION_CANCELLED |
static int |
OPERATION_DONE |
static int |
OPERATION_RUNNING |
static java.lang.String |
PROP_APPLICATION_NAME |
static java.lang.String |
PROP_APPLICATION_VERSION |
static java.lang.String |
PROP_FORMAT_CHANNELS |
static java.lang.String |
PROP_FORMAT_RATE |
static java.lang.String |
PROP_MEDIA_NAME |
static java.lang.String |
PROP_MEDIA_ROLE |
static int |
SAMPLE_INVALID
The pa_sample_format_t value which specifies an invalid value.
|
static int |
SAMPLE_S16LE
The pa_sample_format_t value which specifies signed 16-bit PCM,
little endian.
|
static int |
SEEK_RELATIVE |
static int |
STREAM_ADJUST_LATENCY |
static int |
STREAM_FAILED |
static int |
STREAM_NOFLAGS |
static int |
STREAM_READY |
static int |
STREAM_START_CORKED |
static int |
STREAM_TERMINATED |
Modifier and Type | Method and Description |
---|---|
static void |
buffer_attr_free(long attr) |
static long |
buffer_attr_new(int maxlength,
int tlength,
int prebuf,
int minreq,
int fragsize) |
static int |
context_connect(long c,
java.lang.String server,
int flags,
long api) |
static void |
context_disconnect(long c) |
static long |
context_get_sink_info_list(long c,
PA.sink_info_cb_t cb) |
static long |
context_get_source_info_list(long c,
PA.source_info_cb_t cb) |
static int |
context_get_state(long c) |
static long |
context_new_with_proplist(long mainloop,
java.lang.String name,
long proplist) |
static long |
context_set_sink_input_volume(long c,
int idx,
long volume,
PA.context_success_cb_t cb) |
static long |
context_set_source_output_volume(long c,
int idx,
long volume,
PA.context_success_cb_t cb) |
static void |
context_set_state_callback(long c,
java.lang.Runnable cb) |
static void |
context_unref(long c) |
static void |
cvolume_free(long cv) |
static long |
cvolume_new() |
static long |
cvolume_set(long cv,
int channels,
int v) |
static int |
format_info_get_encoding(long f) |
static long |
format_info_get_plist(long f) |
static int |
format_info_get_prop_int(long f,
java.lang.String key) |
static java.lang.String |
get_library_version() |
static int |
operation_get_state(long o) |
static void |
operation_unref(long o) |
static void |
proplist_free(long p) |
static long |
proplist_new() |
static int |
proplist_sets(long p,
java.lang.String key,
java.lang.String value) |
static void |
sample_spec_free(long ss) |
static long |
sample_spec_new(int format,
int rate,
int channels) |
static java.lang.String |
sink_info_get_description(long i) |
static int |
sink_info_get_flags(long i) |
static long[] |
sink_info_get_formats(long i) |
static int |
sink_info_get_index(long i) |
static java.lang.String |
sink_info_get_monitor_source_name(long i) |
static int |
sink_info_get_monitor_source(long i) |
static java.lang.String |
sink_info_get_name(long i) |
static int |
sink_info_get_sample_spec_channels(long i) |
static int |
sink_info_get_sample_spec_format(long i) |
static int |
sink_info_get_sample_spec_rate(long i) |
static java.lang.String |
source_info_get_description(long i) |
static int |
source_info_get_flags(long i) |
static long[] |
source_info_get_formats(long i) |
static int |
source_info_get_index(long i) |
static int |
source_info_get_monitor_of_sink(long i) |
static java.lang.String |
source_info_get_name(long i) |
static int |
source_info_get_sample_spec_channels(long i) |
static int |
source_info_get_sample_spec_format(long i) |
static int |
source_info_get_sample_spec_rate(long i) |
static int |
stream_connect_playback(long s,
java.lang.String dev,
long attr,
int flags,
long volume,
long syncStream) |
static int |
stream_connect_record(long s,
java.lang.String dev,
long attr,
int flags) |
static long |
stream_cork(long s,
boolean b,
PA.stream_success_cb_t cb) |
static int |
stream_disconnect(long s) |
static int |
stream_drop(long s) |
static java.lang.String |
stream_get_device_name(long s)
Gets the name of the sink or source a specified pa_stream is
connected to in the server.
|
static int |
stream_get_index(long s) |
static int |
stream_get_state(long s) |
static long |
stream_new_with_proplist(long c,
java.lang.String name,
long ss,
long map,
long p) |
static int |
stream_peek(long s,
byte[] data,
int dataOffset) |
static int |
stream_readable_size(long s) |
static void |
stream_set_read_callback(long s,
PA.stream_request_cb_t cb) |
static void |
stream_set_state_callback(long s,
java.lang.Runnable cb) |
static void |
stream_set_write_callback(long s,
PA.stream_request_cb_t cb) |
static void |
stream_unref(long s) |
static int |
stream_writable_size(long s) |
static int |
stream_write(long s,
byte[] data,
int dataOffset,
int dataLength,
java.lang.Runnable freeCb,
long offset,
int seek) |
static int |
sw_volume_from_linear(double v) |
static void |
threaded_mainloop_free(long m) |
static long |
threaded_mainloop_get_api(long m) |
static void |
threaded_mainloop_lock(long m) |
static long |
threaded_mainloop_new() |
static void |
threaded_mainloop_signal(long m,
boolean waitForAccept) |
static int |
threaded_mainloop_start(long m) |
static void |
threaded_mainloop_stop(long m) |
static void |
threaded_mainloop_unlock(long m) |
static void |
threaded_mainloop_wait(long m) |
public static final int CONTEXT_AUTHORIZING
public static final int CONTEXT_CONNECTING
public static final int CONTEXT_FAILED
public static final int CONTEXT_NOFAIL
public static final int CONTEXT_NOFLAGS
public static final int CONTEXT_READY
public static final int CONTEXT_SETTING_NAME
public static final int CONTEXT_TERMINATED
public static final int CONTEXT_UNCONNECTED
public static final int ENCODING_ANY
public static final int ENCODING_INVALID
public static final int ENCODING_PCM
public static final int INVALID_INDEX
public static final int OPERATION_CANCELLED
public static final int OPERATION_DONE
public static final int OPERATION_RUNNING
public static final java.lang.String PROP_APPLICATION_NAME
public static final java.lang.String PROP_APPLICATION_VERSION
public static final java.lang.String PROP_FORMAT_CHANNELS
public static final java.lang.String PROP_FORMAT_RATE
public static final java.lang.String PROP_MEDIA_NAME
public static final java.lang.String PROP_MEDIA_ROLE
public static final int SAMPLE_INVALID
public static final int SAMPLE_S16LE
public static final int SEEK_RELATIVE
public static final int STREAM_ADJUST_LATENCY
public static final int STREAM_FAILED
public static final int STREAM_NOFLAGS
public static final int STREAM_READY
public static final int STREAM_START_CORKED
public static final int STREAM_TERMINATED
public static void buffer_attr_free(long attr)
public static long buffer_attr_new(int maxlength, int tlength, int prebuf, int minreq, int fragsize)
public static int context_connect(long c, java.lang.String server, int flags, long api)
public static void context_disconnect(long c)
public static long context_get_sink_info_list(long c, PA.sink_info_cb_t cb)
public static long context_get_source_info_list(long c, PA.source_info_cb_t cb)
public static int context_get_state(long c)
public static long context_new_with_proplist(long mainloop, java.lang.String name, long proplist)
public static long context_set_sink_input_volume(long c, int idx, long volume, PA.context_success_cb_t cb)
public static long context_set_source_output_volume(long c, int idx, long volume, PA.context_success_cb_t cb)
public static void context_set_state_callback(long c, java.lang.Runnable cb)
public static void context_unref(long c)
public static void cvolume_free(long cv)
public static long cvolume_new()
public static long cvolume_set(long cv, int channels, int v)
public static int format_info_get_encoding(long f)
public static long format_info_get_plist(long f)
public static int format_info_get_prop_int(long f, java.lang.String key)
public static java.lang.String get_library_version()
public static int operation_get_state(long o)
public static void operation_unref(long o)
public static void proplist_free(long p)
public static long proplist_new()
public static int proplist_sets(long p, java.lang.String key, java.lang.String value)
public static void sample_spec_free(long ss)
public static long sample_spec_new(int format, int rate, int channels)
public static java.lang.String sink_info_get_description(long i)
public static int sink_info_get_flags(long i)
public static long[] sink_info_get_formats(long i)
public static int sink_info_get_index(long i)
public static int sink_info_get_monitor_source(long i)
public static java.lang.String sink_info_get_monitor_source_name(long i)
public static java.lang.String sink_info_get_name(long i)
public static int sink_info_get_sample_spec_channels(long i)
public static int sink_info_get_sample_spec_format(long i)
public static int sink_info_get_sample_spec_rate(long i)
public static java.lang.String source_info_get_description(long i)
public static int source_info_get_flags(long i)
public static long[] source_info_get_formats(long i)
public static int source_info_get_index(long i)
public static int source_info_get_monitor_of_sink(long i)
public static java.lang.String source_info_get_name(long i)
public static int source_info_get_sample_spec_channels(long i)
public static int source_info_get_sample_spec_format(long i)
public static int source_info_get_sample_spec_rate(long i)
public static int stream_connect_playback(long s, java.lang.String dev, long attr, int flags, long volume, long syncStream)
public static int stream_connect_record(long s, java.lang.String dev, long attr, int flags)
public static long stream_cork(long s, boolean b, PA.stream_success_cb_t cb)
public static int stream_disconnect(long s)
public static int stream_drop(long s)
public static java.lang.String stream_get_device_name(long s)
s
- the pa_stream of which to get the name of the sink or
source it is connected to in the serverpublic static int stream_get_index(long s)
public static int stream_get_state(long s)
public static long stream_new_with_proplist(long c, java.lang.String name, long ss, long map, long p)
public static int stream_peek(long s, byte[] data, int dataOffset)
public static int stream_readable_size(long s)
public static void stream_set_read_callback(long s, PA.stream_request_cb_t cb)
public static void stream_set_state_callback(long s, java.lang.Runnable cb)
public static void stream_set_write_callback(long s, PA.stream_request_cb_t cb)
public static void stream_unref(long s)
public static int stream_writable_size(long s)
public static int stream_write(long s, byte[] data, int dataOffset, int dataLength, java.lang.Runnable freeCb, long offset, int seek)
public static int sw_volume_from_linear(double v)
public static void threaded_mainloop_free(long m)
public static long threaded_mainloop_get_api(long m)
public static void threaded_mainloop_lock(long m)
public static long threaded_mainloop_new()
public static void threaded_mainloop_signal(long m, boolean waitForAccept)
public static int threaded_mainloop_start(long m)
public static void threaded_mainloop_stop(long m)
public static void threaded_mainloop_unlock(long m)
public static void threaded_mainloop_wait(long m)
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.