snd_pcm_plugin_src_max_frag() (DELETED)

Get the maximum possible fragment size (plugin-aware)

Synopsis:

#include <sys/asoundlib.h>

int snd_pcm_plugin_src_max_frag ( snd_pcm_t   *handle,
                                  unsigned int fragsize );

Arguments:

handle
The handle for the PCM device, which you must have opened by calling snd_pcm_open_name(), snd_pcm_open(), or snd_pcm_open_preferred().
fragsize
The fragment size.

Library:

libasound.so

Use the -l asound option with qcc to link against this library.

Description:

The snd_pcm_plugin_src_max_frag() function returns the maximum possible fragment size when the system is using the SND_SRC_MODE_ACTUAL or SND_SRC_MODE_ASYNC mode. The fragment size is adjusted during playback, so this lets you preallocate the maximum buffer size.

Returns:

The maximum fragment size, or -EINVAL if any of the arguments were invalid.

Classification:

QNX Neutrino

Safety:  
Cancellation point No
Interrupt handler No
Signal handler Yes
Thread Read the Caveats

Caveats:

This function is not thread safe if handle (snd_pcm_t) is used across multiple threads.

Make sure that you don't mix and match plugin- and nonplugin-aware functions in your application, or you may get undefined behavior and misleading results.