A structure that stores the audio splitter settings
Synopsis:
#include <sys/asoundlib.h>
typedef struct {
const char *dev_name;
snd_pcm_channel_params_t *params;
int32_t retry_interval;
int32_t silence_stream_post_split;
} splitter_settings_t;
Library:
libasound.so
Use the -l asound option to
qcc
and link against this library.
Description:
The
splitter_share_settings_t structure describes the splitter device settings.
The members include:
-
devname
- Name of the device where the master audio stream is split.
-
params
- Parameters used to override the master parameters used on the splitter
device. The following members are applied from the
snd_pcm_channel_params_t structure:
-
start_mode
-
stop_mode
-
buf.block_frags_max
-
buf.block.frags_buffered_max
-
buf.block.frags_min
-
retry_interval
- When the splitter device isn't active, the specified time (in milliseconds) to wait before
attempting to reconnect. If you don't want to attempt to reconnect to
the splitter device when it isn't active, specify a value of
-1. For example, use a value of
1000 to specify to wait one second.
Note: A value of zero should not be
used because it specifies to continuously attempt to reconnect to
the splitter device without waiting.
-
silence_stream_post_split
- Settings can be 0 or 1. When set to
1, instead of splitting the audio stream, the
stream is heard only on the splitting device. The default device that is
open is clocks the audio stream.
Classification:
QNX Neutrino
| Safety: |
|
| Cancellation point |
No |
| Interrupt handler |
No |
| Signal handler |
Yes |
| Thread |
Yes |