audio-fwrite.rst 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. .. -*- coding: utf-8; mode: rst -*-
  2. .. _audio_fwrite:
  3. =========================
  4. Digital TV audio write()
  5. =========================
  6. Name
  7. ----
  8. Digital TV audio write()
  9. .. attention:: This ioctl is deprecated
  10. Synopsis
  11. --------
  12. .. c:function:: size_t write(int fd, const void *buf, size_t count)
  13. :name: dvb-audio-write
  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. - .. row 2
  23. - void \*buf
  24. - Pointer to the buffer containing the PES data.
  25. - .. row 3
  26. - size_t count
  27. - Size of buf.
  28. Description
  29. -----------
  30. This system call can only be used if AUDIO_SOURCE_MEMORY is selected
  31. in the ioctl call AUDIO_SELECT_SOURCE. The data provided shall be in
  32. PES format. If O_NONBLOCK is not specified the function will block
  33. until buffer space is available. The amount of data to be transferred is
  34. implied by count.
  35. Return Value
  36. ------------
  37. .. flat-table::
  38. :header-rows: 0
  39. :stub-columns: 0
  40. - .. row 1
  41. - ``EPERM``
  42. - Mode AUDIO_SOURCE_MEMORY not selected.
  43. - .. row 2
  44. - ``ENOMEM``
  45. - Attempted to write more data than the internal buffer can hold.
  46. - .. row 3
  47. - ``EBADF``
  48. - fd is not a valid open file descriptor.