User Tools

Site Tools


solaris:audio_engine_format.9e

audio_engine_format


NAME

audio_engine_format - return the sample format for an audio engine

SYNOPSIS

#include <sys/audio/audio_driver.h>

int prefix_format(void *state);

PARAMETERS

state

pointer to driver supplied soft state

INTERFACE LEVEL

Solaris DDI specific (Solaris DDI)

DESCRIPTION

The audio_engine_format() function is called by the framework to determine the format of the engine.

The audio framework supports the following formats for audio engines:

AUDIO_FORMAT_S16_LE

16-bit signed little endian linear PCM

AUDIO_FORMAT_S16_BE

16-bit signed big endian linear PCM

AUDIO_FORMAT_S24_LE

24-bit signed little endian linear PCM

AUDIO_FORMAT_S24_BE

24-bit signed big endian linear PCM

AUDIO_FORMAT_S32_LE

32-bit signed little endian linear PCM

AUDIO_FORMAT_S32_BE

32-bit signed big endian linear PCM

The 24-bit bit types above store each 24-bit sample in a 32-bit word.

An audio engine may not change the format it uses while it is open.

RETURN VALUES

The audio_engine_format() function returns the audio format of the engine.

CONTEXT

This function may be called from user or interrupt context.

ATTRIBUTES

See attributes(7) for descriptions of the following attributes:

SEE ALSO

audio(4D), attributes(7), audio_engine_ops(9S)


solaris/audio_engine_format.9e.txt · Last modified: 2023/07/19 08:57 by A User Not Logged in