snd_afm_set_path()

Set the file path for the defined type

Synopsis:

#include <sys/asoundlib.h>

int snd_afm_set_path( snd_afm_t *handle,
                      int type,
                      const char *path );

Arguments:

handle
The handle for the AFM device, which you must have opened by calling snd_afm_open_name() or snd_afm_open().
type
The path type. The only type currently defined is SND_AFM_WAV_FILE.
path
The path of the .wav file to use when playing or recording. It's referenced only at the time when “start” is issued.

Library:

libasound

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

Description:

Tip: This function is available for use if you have QNX Acoustic Management Platform 2.0 and Audio component BuildID 594—January 17, 2018 (7.0.594.S201801171044) or a later update installed.

The snd_afm_set_path() function sets the file path for the defined type. Supported types vary, depending on the AFM that's being targeted. This function isn't applicable to any currently shipped AFMs.

Returns:

EOK on success, or a negative errno value upon failure.

Errors:

-EINVAL
The value of handle or path is NULL, the path is invalid, or the path type isn't supported.
-ENOTSUP
The AFM doesn't support setting the file path.

Classification:

QNX Neutrino

Safety:  
Cancellation point No
Interrupt handler No
Signal handler No
Thread Yes