1
0

StreamSelector.h 758 B

1234567891011121314151617181920212223242526272829303132
  1. #pragma once
  2. #include "../Winamp/wa_ipc.h"
  3. #include <bfc/platform/types.h>
  4. class Streams : public ITrackSelector
  5. {
  6. public:
  7. void Reset();
  8. void AddAudioStream(int stream_num);
  9. void AddVideoStream(int stream_num);
  10. void SetAudioStream(int stream_num);
  11. void SetVideoStream(int stream_num);
  12. uint16_t audio_streams[256];
  13. int num_audio_streams;
  14. int current_audio_stream;
  15. uint16_t video_streams[256];
  16. int num_video_streams;
  17. int current_video_stream;
  18. /* ITrackSelector interface */
  19. int getNumAudioTracks();
  20. void enumAudioTrackName(int n, char *buf, int size);
  21. int getCurAudioTrack();
  22. int getNumVideoTracks();
  23. void enumVideoTrackName(int n, char *buf, int size);
  24. int getCurVideoTrack();
  25. void setAudioTrack(int n);
  26. void setVideoTrack(int n);
  27. };