1 .. -*- coding: utf-8; mode: rst -*-
3 .. _AUDIO_SET_STREAMTYPE:
18 .. cpp:function:: int ioctl(fd, int request = AUDIO_SET_STREAMTYPE, int type)
33 - File descriptor returned by a previous call to open().
39 - Equals AUDIO_SET_STREAMTYPE for this command.
51 This ioctl tells the driver which kind of audio stream to expect. This
52 is useful if the stream offers several audio sub-streams like LPCM and
59 On success 0 is returned, on error -1 and the ``errno`` variable is set
60 appropriately. The generic error codes are described at the
61 :ref:`Generic Error Codes <gen-errors>` chapter.
74 - type is not a valid or supported stream type.