Class PA
- java.lang.Object
-
- org.jitsi.impl.neomedia.pulseaudio.PA
-
public final class PA extends Object
Declares the functions, structures and constants of the native PulseAudio API for use within Java in general and neomedia in particular.- Author:
- Lyubomir Marinov
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePA.context_success_cb_tstatic interfacePA.sink_info_cb_tstatic interfacePA.source_info_cb_tstatic interfacePA.stream_request_cb_tstatic interfacePA.stream_success_cb_t
-
Field Summary
Fields Modifier and Type Field Description static intCONTEXT_AUTHORIZINGstatic intCONTEXT_CONNECTINGstatic intCONTEXT_FAILEDstatic intCONTEXT_NOFAILstatic intCONTEXT_NOFLAGSstatic intCONTEXT_READYstatic intCONTEXT_SETTING_NAMEstatic intCONTEXT_TERMINATEDstatic intCONTEXT_UNCONNECTEDstatic intENCODING_ANYstatic intENCODING_INVALIDstatic intENCODING_PCMstatic intINVALID_INDEXstatic intOPERATION_CANCELLEDstatic intOPERATION_DONEstatic intOPERATION_RUNNINGstatic StringPROP_APPLICATION_NAMEstatic StringPROP_APPLICATION_VERSIONstatic StringPROP_FORMAT_CHANNELSstatic StringPROP_FORMAT_RATEstatic StringPROP_MEDIA_NAMEstatic StringPROP_MEDIA_ROLEstatic intSAMPLE_INVALIDThe pa_sample_format_t value which specifies an invalid value.static intSAMPLE_S16LEThe pa_sample_format_t value which specifies signed 16-bit PCM, little endian.static intSEEK_RELATIVEstatic intSTREAM_ADJUST_LATENCYstatic intSTREAM_FAILEDstatic intSTREAM_NOFLAGSstatic intSTREAM_READYstatic intSTREAM_START_CORKEDstatic intSTREAM_TERMINATED
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidbuffer_attr_free(long attr)static longbuffer_attr_new(int maxlength, int tlength, int prebuf, int minreq, int fragsize)static intcontext_connect(long c, String server, int flags, long api)static voidcontext_disconnect(long c)static longcontext_get_sink_info_list(long c, PA.sink_info_cb_t cb)static longcontext_get_source_info_list(long c, PA.source_info_cb_t cb)static intcontext_get_state(long c)static longcontext_new_with_proplist(long mainloop, String name, long proplist)static longcontext_set_sink_input_volume(long c, int idx, long volume, PA.context_success_cb_t cb)static longcontext_set_source_output_volume(long c, int idx, long volume, PA.context_success_cb_t cb)static voidcontext_set_state_callback(long c, Runnable cb)static voidcontext_unref(long c)static voidcvolume_free(long cv)static longcvolume_new()static longcvolume_set(long cv, int channels, int v)static intformat_info_get_encoding(long f)static longformat_info_get_plist(long f)static intformat_info_get_prop_int(long f, String key)static Stringget_library_version()static intoperation_get_state(long o)static voidoperation_unref(long o)static voidproplist_free(long p)static longproplist_new()static intproplist_sets(long p, String key, String value)static voidsample_spec_free(long ss)static longsample_spec_new(int format, int rate, int channels)static Stringsink_info_get_description(long i)static intsink_info_get_flags(long i)static long[]sink_info_get_formats(long i)static intsink_info_get_index(long i)static intsink_info_get_monitor_source(long i)static Stringsink_info_get_monitor_source_name(long i)static Stringsink_info_get_name(long i)static intsink_info_get_sample_spec_channels(long i)static intsink_info_get_sample_spec_format(long i)static intsink_info_get_sample_spec_rate(long i)static Stringsource_info_get_description(long i)static intsource_info_get_flags(long i)static long[]source_info_get_formats(long i)static intsource_info_get_index(long i)static intsource_info_get_monitor_of_sink(long i)static Stringsource_info_get_name(long i)static intsource_info_get_sample_spec_channels(long i)static intsource_info_get_sample_spec_format(long i)static intsource_info_get_sample_spec_rate(long i)static intstream_connect_playback(long s, String dev, long attr, int flags, long volume, long syncStream)static intstream_connect_record(long s, String dev, long attr, int flags)static longstream_cork(long s, boolean b, PA.stream_success_cb_t cb)static intstream_disconnect(long s)static intstream_drop(long s)static Stringstream_get_device_name(long s)Gets the name of the sink or source a specified pa_stream is connected to in the server.static intstream_get_index(long s)static intstream_get_state(long s)static longstream_new_with_proplist(long c, String name, long ss, long map, long p)static intstream_peek(long s, byte[] data, int dataOffset)static intstream_readable_size(long s)static voidstream_set_read_callback(long s, PA.stream_request_cb_t cb)static voidstream_set_state_callback(long s, Runnable cb)static voidstream_set_write_callback(long s, PA.stream_request_cb_t cb)static voidstream_unref(long s)static intstream_writable_size(long s)static intstream_write(long s, byte[] data, int dataOffset, int dataLength, Runnable freeCb, long offset, int seek)static intsw_volume_from_linear(double v)static voidthreaded_mainloop_free(long m)static longthreaded_mainloop_get_api(long m)static voidthreaded_mainloop_lock(long m)static longthreaded_mainloop_new()static voidthreaded_mainloop_signal(long m, boolean waitForAccept)static intthreaded_mainloop_start(long m)static voidthreaded_mainloop_stop(long m)static voidthreaded_mainloop_unlock(long m)static voidthreaded_mainloop_wait(long m)
-
-
-
Field Detail
-
CONTEXT_AUTHORIZING
public static final int CONTEXT_AUTHORIZING
- See Also:
- Constant Field Values
-
CONTEXT_CONNECTING
public static final int CONTEXT_CONNECTING
- See Also:
- Constant Field Values
-
CONTEXT_FAILED
public static final int CONTEXT_FAILED
- See Also:
- Constant Field Values
-
CONTEXT_NOFAIL
public static final int CONTEXT_NOFAIL
- See Also:
- Constant Field Values
-
CONTEXT_NOFLAGS
public static final int CONTEXT_NOFLAGS
- See Also:
- Constant Field Values
-
CONTEXT_READY
public static final int CONTEXT_READY
- See Also:
- Constant Field Values
-
CONTEXT_SETTING_NAME
public static final int CONTEXT_SETTING_NAME
- See Also:
- Constant Field Values
-
CONTEXT_TERMINATED
public static final int CONTEXT_TERMINATED
- See Also:
- Constant Field Values
-
CONTEXT_UNCONNECTED
public static final int CONTEXT_UNCONNECTED
- See Also:
- Constant Field Values
-
ENCODING_ANY
public static final int ENCODING_ANY
- See Also:
- Constant Field Values
-
ENCODING_INVALID
public static final int ENCODING_INVALID
- See Also:
- Constant Field Values
-
ENCODING_PCM
public static final int ENCODING_PCM
- See Also:
- Constant Field Values
-
INVALID_INDEX
public static final int INVALID_INDEX
- See Also:
- Constant Field Values
-
OPERATION_CANCELLED
public static final int OPERATION_CANCELLED
- See Also:
- Constant Field Values
-
OPERATION_DONE
public static final int OPERATION_DONE
- See Also:
- Constant Field Values
-
OPERATION_RUNNING
public static final int OPERATION_RUNNING
- See Also:
- Constant Field Values
-
PROP_APPLICATION_NAME
public static final String PROP_APPLICATION_NAME
- See Also:
- Constant Field Values
-
PROP_APPLICATION_VERSION
public static final String PROP_APPLICATION_VERSION
- See Also:
- Constant Field Values
-
PROP_FORMAT_CHANNELS
public static final String PROP_FORMAT_CHANNELS
- See Also:
- Constant Field Values
-
PROP_FORMAT_RATE
public static final String PROP_FORMAT_RATE
- See Also:
- Constant Field Values
-
PROP_MEDIA_NAME
public static final String PROP_MEDIA_NAME
- See Also:
- Constant Field Values
-
PROP_MEDIA_ROLE
public static final String PROP_MEDIA_ROLE
- See Also:
- Constant Field Values
-
SAMPLE_INVALID
public static final int SAMPLE_INVALID
The pa_sample_format_t value which specifies an invalid value.- See Also:
- Constant Field Values
-
SAMPLE_S16LE
public static final int SAMPLE_S16LE
The pa_sample_format_t value which specifies signed 16-bit PCM, little endian.- See Also:
- Constant Field Values
-
SEEK_RELATIVE
public static final int SEEK_RELATIVE
- See Also:
- Constant Field Values
-
STREAM_ADJUST_LATENCY
public static final int STREAM_ADJUST_LATENCY
- See Also:
- Constant Field Values
-
STREAM_FAILED
public static final int STREAM_FAILED
- See Also:
- Constant Field Values
-
STREAM_NOFLAGS
public static final int STREAM_NOFLAGS
- See Also:
- Constant Field Values
-
STREAM_READY
public static final int STREAM_READY
- See Also:
- Constant Field Values
-
STREAM_START_CORKED
public static final int STREAM_START_CORKED
- See Also:
- Constant Field Values
-
STREAM_TERMINATED
public static final int STREAM_TERMINATED
- See Also:
- Constant Field Values
-
-
Method Detail
-
buffer_attr_free
public static void buffer_attr_free(long attr)
-
buffer_attr_new
public static long buffer_attr_new(int maxlength, int tlength, int prebuf, int minreq, int fragsize)
-
context_connect
public static int context_connect(long c, String server, int flags, long api)
-
context_disconnect
public static void context_disconnect(long c)
-
context_get_sink_info_list
public static long context_get_sink_info_list(long c, PA.sink_info_cb_t cb)
-
context_get_source_info_list
public static long context_get_source_info_list(long c, PA.source_info_cb_t cb)
-
context_get_state
public static int context_get_state(long c)
-
context_new_with_proplist
public static long context_new_with_proplist(long mainloop, String name, long proplist)
-
context_set_sink_input_volume
public static long context_set_sink_input_volume(long c, int idx, long volume, PA.context_success_cb_t cb)
-
context_set_source_output_volume
public static long context_set_source_output_volume(long c, int idx, long volume, PA.context_success_cb_t cb)
-
context_set_state_callback
public static void context_set_state_callback(long c, Runnable cb)
-
context_unref
public static void context_unref(long c)
-
cvolume_free
public static void cvolume_free(long cv)
-
cvolume_new
public static long cvolume_new()
-
cvolume_set
public static long cvolume_set(long cv, int channels, int v)
-
format_info_get_encoding
public static int format_info_get_encoding(long f)
-
format_info_get_plist
public static long format_info_get_plist(long f)
-
format_info_get_prop_int
public static int format_info_get_prop_int(long f, String key)
-
get_library_version
public static String get_library_version()
-
operation_get_state
public static int operation_get_state(long o)
-
operation_unref
public static void operation_unref(long o)
-
proplist_free
public static void proplist_free(long p)
-
proplist_new
public static long proplist_new()
-
sample_spec_free
public static void sample_spec_free(long ss)
-
sample_spec_new
public static long sample_spec_new(int format, int rate, int channels)
-
sink_info_get_description
public static String sink_info_get_description(long i)
-
sink_info_get_flags
public static int sink_info_get_flags(long i)
-
sink_info_get_formats
public static long[] sink_info_get_formats(long i)
-
sink_info_get_index
public static int sink_info_get_index(long i)
-
sink_info_get_monitor_source
public static int sink_info_get_monitor_source(long i)
-
sink_info_get_monitor_source_name
public static String sink_info_get_monitor_source_name(long i)
-
sink_info_get_name
public static String sink_info_get_name(long i)
-
sink_info_get_sample_spec_channels
public static int sink_info_get_sample_spec_channels(long i)
-
sink_info_get_sample_spec_format
public static int sink_info_get_sample_spec_format(long i)
-
sink_info_get_sample_spec_rate
public static int sink_info_get_sample_spec_rate(long i)
-
source_info_get_description
public static String source_info_get_description(long i)
-
source_info_get_flags
public static int source_info_get_flags(long i)
-
source_info_get_formats
public static long[] source_info_get_formats(long i)
-
source_info_get_index
public static int source_info_get_index(long i)
-
source_info_get_monitor_of_sink
public static int source_info_get_monitor_of_sink(long i)
-
source_info_get_name
public static String source_info_get_name(long i)
-
source_info_get_sample_spec_channels
public static int source_info_get_sample_spec_channels(long i)
-
source_info_get_sample_spec_format
public static int source_info_get_sample_spec_format(long i)
-
source_info_get_sample_spec_rate
public static int source_info_get_sample_spec_rate(long i)
-
stream_connect_playback
public static int stream_connect_playback(long s, String dev, long attr, int flags, long volume, long syncStream)
-
stream_connect_record
public static int stream_connect_record(long s, String dev, long attr, int flags)
-
stream_cork
public static long stream_cork(long s, boolean b, PA.stream_success_cb_t cb)
-
stream_disconnect
public static int stream_disconnect(long s)
-
stream_drop
public static int stream_drop(long s)
-
stream_get_device_name
public static 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.- Parameters:
s- the pa_stream of which to get the name of the sink or source it is connected to in the server- Returns:
- the name of the sink or source the specified pa_stream is connected to in the server
-
stream_get_index
public static int stream_get_index(long s)
-
stream_get_state
public static int stream_get_state(long s)
-
stream_new_with_proplist
public static long stream_new_with_proplist(long c, String name, long ss, long map, long p)
-
stream_peek
public static int stream_peek(long s, byte[] data, int dataOffset)
-
stream_readable_size
public static int stream_readable_size(long s)
-
stream_set_read_callback
public static void stream_set_read_callback(long s, PA.stream_request_cb_t cb)
-
stream_set_state_callback
public static void stream_set_state_callback(long s, Runnable cb)
-
stream_set_write_callback
public static void stream_set_write_callback(long s, PA.stream_request_cb_t cb)
-
stream_unref
public static void stream_unref(long s)
-
stream_writable_size
public static int stream_writable_size(long s)
-
stream_write
public static int stream_write(long s, byte[] data, int dataOffset, int dataLength, Runnable freeCb, long offset, int seek)
-
sw_volume_from_linear
public static int sw_volume_from_linear(double v)
-
threaded_mainloop_free
public static void threaded_mainloop_free(long m)
-
threaded_mainloop_get_api
public static long threaded_mainloop_get_api(long m)
-
threaded_mainloop_lock
public static void threaded_mainloop_lock(long m)
-
threaded_mainloop_new
public static long threaded_mainloop_new()
-
threaded_mainloop_signal
public static void threaded_mainloop_signal(long m, boolean waitForAccept)
-
threaded_mainloop_start
public static int threaded_mainloop_start(long m)
-
threaded_mainloop_stop
public static void threaded_mainloop_stop(long m)
-
threaded_mainloop_unlock
public static void threaded_mainloop_unlock(long m)
-
threaded_mainloop_wait
public static void threaded_mainloop_wait(long m)
-
-