DOUAudioEventLoop.h 810 B

123456789101112131415161718192021222324252627282930313233343536
  1. /* vim: set ft=objc fenc=utf-8 sw=2 ts=2 et: */
  2. /*
  3. * DOUAudioStreamer - A Core Audio based streaming audio player for iOS/Mac:
  4. *
  5. * https://github.com/douban/DOUAudioStreamer
  6. *
  7. * Copyright 2013-2016 Douban Inc. All rights reserved.
  8. *
  9. * Use and distribution licensed under the BSD license. See
  10. * the LICENSE file for full text.
  11. *
  12. * Authors:
  13. * Chongyu Zhu <i@lembacon.com>
  14. *
  15. */
  16. #import <Foundation/Foundation.h>
  17. @class DOUAudioStreamer;
  18. @interface DOUAudioEventLoop : NSObject
  19. + (instancetype)sharedEventLoop;
  20. @property (nonatomic, strong) DOUAudioStreamer *currentStreamer;
  21. @property (nonatomic, assign) NSTimeInterval currentTime;
  22. @property (nonatomic, assign) double volume;
  23. @property (nonatomic, copy) NSArray *analyzers;
  24. - (void)play;
  25. - (void)pause;
  26. - (void)stop;
  27. @end