audio-set-id.rst 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. .. -*- coding: utf-8; mode: rst -*-
  2. .. _AUDIO_SET_ID:
  3. ============
  4. AUDIO_SET_ID
  5. ============
  6. Name
  7. ----
  8. AUDIO_SET_ID
  9. .. attention:: This ioctl is deprecated
  10. Synopsis
  11. --------
  12. .. c:function:: int ioctl(int fd, AUDIO_SET_ID, int id)
  13. :name: AUDIO_SET_ID
  14. Arguments
  15. ---------
  16. .. flat-table::
  17. :header-rows: 0
  18. :stub-columns: 0
  19. -
  20. - int fd
  21. - File descriptor returned by a previous call to open().
  22. -
  23. - int id
  24. - audio sub-stream id
  25. Description
  26. -----------
  27. This ioctl selects which sub-stream is to be decoded if a program or
  28. system stream is sent to the video device. If no audio stream type is
  29. set the id has to be in [0xC0,0xDF] for MPEG sound, in [0x80,0x87] for
  30. AC3 and in [0xA0,0xA7] for LPCM. More specifications may follow for
  31. other stream types. If the stream type is set the id just specifies the
  32. substream id of the audio stream and only the first 5 bits are
  33. recognized.
  34. Return Value
  35. ------------
  36. On success 0 is returned, on error -1 and the ``errno`` variable is set
  37. appropriately. The generic error codes are described at the
  38. :ref:`Generic Error Codes <gen-errors>` chapter.