audio-get-status.rst 908 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. .. -*- coding: utf-8; mode: rst -*-
  2. .. _AUDIO_GET_STATUS:
  3. ================
  4. AUDIO_GET_STATUS
  5. ================
  6. Name
  7. ----
  8. AUDIO_GET_STATUS
  9. .. attention:: This ioctl is deprecated
  10. Synopsis
  11. --------
  12. .. c:function:: int ioctl(int fd, AUDIO_GET_STATUS, struct audio_status *status)
  13. :name: AUDIO_GET_STATUS
  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. - struct audio_status \*status
  24. - Returns the current state of Audio Device.
  25. Description
  26. -----------
  27. This ioctl call asks the Audio Device to return the current state of the
  28. Audio Device.
  29. Return Value
  30. ------------
  31. On success 0 is returned, on error -1 and the ``errno`` variable is set
  32. appropriately. The generic error codes are described at the
  33. :ref:`Generic Error Codes <gen-errors>` chapter.