Audio plugin host https://kx.studio/carla
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
672B

  1. #pragma once
  2. #include "private/std.h"
  3. #include "private/macros.h"
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. typedef struct clap_istream {
  8. void *ctx; // reserved pointer for the stream
  9. // returns the number of bytes read; 0 indicates end of file and -1 a read error
  10. int64_t (CLAP_ABI *read)(const struct clap_istream *stream, void *buffer, uint64_t size);
  11. } clap_istream_t;
  12. typedef struct clap_ostream {
  13. void *ctx; // reserved pointer for the stream
  14. // returns the number of bytes written; -1 on write error
  15. int64_t (CLAP_ABI *write)(const struct clap_ostream *stream, const void *buffer, uint64_t size);
  16. } clap_ostream_t;
  17. #ifdef __cplusplus
  18. }
  19. #endif