Browse Source

Better documentation in jack.h.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@1896 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/0.71
sletz 17 years ago
parent
commit
5a80bf180a
2 changed files with 40 additions and 7 deletions
  1. +1
    -0
      ChangeLog
  2. +39
    -7
      common/jack/jack.h

+ 1
- 0
ChangeLog View File

@@ -20,6 +20,7 @@ Tim Blechmann
2008-03-02 Stephane Letz <letz@grame.fr> 2008-03-02 Stephane Letz <letz@grame.fr>
* Correct JackSocketClientChannel::ClientClose to use ServerSyncCall instead of ServerAsyncCall. * Correct JackSocketClientChannel::ClientClose to use ServerSyncCall instead of ServerAsyncCall.
* Better documentation in jack.h.


2008-03-02 Stephane Letz <letz@grame.fr> 2008-03-02 Stephane Letz <letz@grame.fr>


+ 39
- 7
common/jack/jack.h View File

@@ -226,7 +226,11 @@ extern "C"
* arg as the second argument. The first argument to the * arg as the second argument. The first argument to the
* callback will be non-zero if JACK is entering freewheel * callback will be non-zero if JACK is entering freewheel
* mode, and zero otherwise. * mode, and zero otherwise.
*
*
* All "notification events" are received in a seperated non RT thread,
* the code in the supplied function does not need to be
* suitable for real-time execution.
*
* @return 0 on success, otherwise a non-zero error code. * @return 0 on success, otherwise a non-zero error code.
*/ */
int jack_set_freewheel_callback (jack_client_t *client, int jack_set_freewheel_callback (jack_client_t *client,
@@ -281,6 +285,10 @@ extern "C"
* buffer that will be passed to the @a process_callback is about to * buffer that will be passed to the @a process_callback is about to
* change. Clients that depend on knowing the buffer size must supply * change. Clients that depend on knowing the buffer size must supply
* a @a bufsize_callback before activating themselves. * a @a bufsize_callback before activating themselves.
*
* All "notification events" are received in a seperated non RT thread,
* the code in the supplied function does not need to be
* suitable for real-time execution.
* *
* @param client pointer to JACK client structure. * @param client pointer to JACK client structure.
* @param bufsize_callback function to call when the buffer size changes. * @param bufsize_callback function to call when the buffer size changes.
@@ -295,6 +303,10 @@ extern "C"
/** /**
* Tell the Jack server to call @a srate_callback whenever the system * Tell the Jack server to call @a srate_callback whenever the system
* sample rate changes. * sample rate changes.
*
* All "notification events" are received in a seperated non RT thread,
* the code in the supplied function does not need to be
* suitable for real-time execution.
* *
* @return 0 on success, otherwise a non-zero error code * @return 0 on success, otherwise a non-zero error code
*/ */
@@ -306,6 +318,10 @@ extern "C"
* Tell the JACK server to call @a registration_callback whenever a * Tell the JACK server to call @a registration_callback whenever a
* port is registered or unregistered, passing @a arg as a parameter. * port is registered or unregistered, passing @a arg as a parameter.
* *
* All "notification events" are received in a seperated non RT thread,
* the code in the supplied function does not need to be
* suitable for real-time execution.
*
* @return 0 on success, otherwise a non-zero error code * @return 0 on success, otherwise a non-zero error code
*/ */
int jack_set_client_registration_callback (jack_client_t *, int jack_set_client_registration_callback (jack_client_t *,
@@ -315,6 +331,10 @@ extern "C"
/** /**
* Tell the JACK server to call @a registration_callback whenever a * Tell the JACK server to call @a registration_callback whenever a
* port is registered or unregistered, passing @a arg as a parameter. * port is registered or unregistered, passing @a arg as a parameter.
*
* All "notification events" are received in a seperated non RT thread,
* the code in the supplied function does not need to be
* suitable for real-time execution.
* *
* @return 0 on success, otherwise a non-zero error code * @return 0 on success, otherwise a non-zero error code
*/ */
@@ -322,12 +342,16 @@ extern "C"
JackPortRegistrationCallback JackPortRegistrationCallback
registration_callback, void *arg); registration_callback, void *arg);
/**
* Tell the JACK server to call @a connect_callback whenever a
* port is connected or disconnected, passing @a arg as a parameter.
*
* @return 0 on success, otherwise a non-zero error code
*/
/**
* Tell the JACK server to call @a connect_callback whenever a
* port is connected or disconnected, passing @a arg as a parameter.
*
* All "notification events" are received in a seperated non RT thread,
* the code in the supplied function does not need to be
* suitable for real-time execution.
*
* @return 0 on success, otherwise a non-zero error code
*/
int jack_set_port_connect_callback (jack_client_t *, int jack_set_port_connect_callback (jack_client_t *,
JackPortConnectCallback JackPortConnectCallback
connect_callback, void *arg); connect_callback, void *arg);
@@ -335,6 +359,10 @@ extern "C"
/** /**
* Tell the JACK server to call @a graph_callback whenever the * Tell the JACK server to call @a graph_callback whenever the
* processing graph is reordered, passing @a arg as a parameter. * processing graph is reordered, passing @a arg as a parameter.
*
* All "notification events" are received in a seperated non RT thread,
* the code in the supplied function does not need to be
* suitable for real-time execution.
* *
* @return 0 on success, otherwise a non-zero error code * @return 0 on success, otherwise a non-zero error code
*/ */
@@ -345,6 +373,10 @@ extern "C"
/** /**
* Tell the JACK server to call @a xrun_callback whenever there is a * Tell the JACK server to call @a xrun_callback whenever there is a
* xrun, passing @a arg as a parameter. * xrun, passing @a arg as a parameter.
*
* All "notification events" are received in a seperated non RT thread,
* the code in the supplied function does not need to be
* suitable for real-time execution.
* *
* @return 0 on success, otherwise a non-zero error code * @return 0 on success, otherwise a non-zero error code
*/ */


Loading…
Cancel
Save