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 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:

(QNX Software Development Platform 6.6 io-audio patch [patch ID 4510] or later) 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