Get the maximum possible fragment size (plugin-aware)
#include <sys/asoundlib.h> int snd_pcm_plugin_src_max_frag ( snd_pcm_t *handle, unsigned int fragsize );
libasound.so
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.
The maximum fragment size, or -EINVAL if any of the arguments were invalid.
QNX Neutrino
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |
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.
snd_pcm_plugin_update_src(), snd_pcm_plugin_set_src_mode()