int ioctl(fd, int request = AUDIO_SET_ATTRIBUTES, audio_attributes_t attr) Arguments

int fd File descriptor returned by a previous call to open().
int request Equals AUDIO_SET_ATTRIBUTES for this command.
audio_attributes_t attr audio attributes according to section ?? Description

This ioctl is intended for DVD playback and allows you to set certain information about the audio stream. Return Value

On success 0 is returned, on error -1 and the errno variable is set appropriately. The generic error codes are described at the Generic Error Codes chapter.

EINVAL attr is not a valid or supported attribute setting.