android_video.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. // #pragma once
  2. // #include <iron_gpu.h>
  3. // typedef struct {
  4. // void *assetReader;
  5. // void *videoTrackOutput;
  6. // void *audioTrackOutput;
  7. // double start;
  8. // double next;
  9. // unsigned long long audioTime;
  10. // bool playing;
  11. // void *sound;
  12. // void *androidVideo;
  13. // int id;
  14. // gpu_texture_t image;
  15. // double lastTime;
  16. // int myWidth;
  17. // int myHeight;
  18. // } iron_video_impl_t;
  19. // typedef struct iron_internal_video_sound_stream {
  20. // void *audioTrackOutput;
  21. // float *buffer;
  22. // int bufferSize;
  23. // int bufferWritePosition;
  24. // int bufferReadPosition;
  25. // uint64_t read;
  26. // uint64_t written;
  27. // } iron_internal_video_sound_stream_t;
  28. // void iron_internal_video_sound_stream_init(iron_internal_video_sound_stream_t *stream, int channel_count, int frequency);
  29. // void iron_internal_video_sound_stream_destroy(iron_internal_video_sound_stream_t *stream);
  30. // void iron_internal_video_sound_stream_insert_data(iron_internal_video_sound_stream_t *stream, float *data, int sample_count);
  31. // float *iron_internal_video_sound_stream_next_frame(iron_internal_video_sound_stream_t *stream);
  32. // bool iron_internal_video_sound_stream_ended(iron_internal_video_sound_stream_t *stream);