[Previous] [Contents] [Next]

snd_pcm_get_format_name()

Convert a format member

Synopsis:

#include <sys/asoundlib.h>

const char * snd_pcm_get_format_name( int format );

Library:

libasound.so

Description:

The snd_pcm_get_format_name() function converts a format member or manifest of the form SND_PCM_SFMT_* to a text string suitable for displaying to a human user.

Returns:

A char pointer to the text format name.

Errors:

None.

Examples:

See the example in Configuring the audio channel in the Playing audio data chapter.

Classification:

ALSA

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

[Previous] [Contents] [Next]