snd_afm_close()

Close an AFM handle and free its resources

Synopsis:

#include <sys/asoundlib.h>

int snd_afm_close( snd_afm_t *handle );

Arguments:

handle
The handle for the AFM device, which you must have opened by calling snd_afm_open_name() or snd_afm_open().

Library:

libasound.so

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_close() function frees all resources allocated with the AMP Functional Module (AFM) handle and closes the connection to the AFM interface.

Returns:

EOK on success, or a negative errno upon failure.

Errors:

-EINTR
The close() call was interrupted by a signal.
-EINVAL
The state of handle is invalid or an invalid state change occurred.
-EIO
An I/O error occurred while updating the directory information.
-ENOSPC
A previous buffered write call has failed.

Classification:

QNX Neutrino

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