audio-play.rst 756 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. .. -*- coding: utf-8; mode: rst -*-
  2. .. _AUDIO_PLAY:
  3. ==========
  4. AUDIO_PLAY
  5. ==========
  6. Name
  7. ----
  8. AUDIO_PLAY
  9. .. attention:: This ioctl is deprecated
  10. Synopsis
  11. --------
  12. .. c:function:: int ioctl(int fd, AUDIO_PLAY)
  13. :name: AUDIO_PLAY
  14. Arguments
  15. ---------
  16. .. flat-table::
  17. :header-rows: 0
  18. :stub-columns: 0
  19. - .. row 1
  20. - int fd
  21. - File descriptor returned by a previous call to open().
  22. Description
  23. -----------
  24. This ioctl call asks the Audio Device to start playing an audio stream
  25. from the selected source.
  26. Return Value
  27. ------------
  28. On success 0 is returned, on error -1 and the ``errno`` variable is set
  29. appropriately. The generic error codes are described at the
  30. :ref:`Generic Error Codes <gen-errors>` chapter.