DOUAudioStreamer+Options.h 1.0 KB

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 "DOUAudioStreamer.h"
  17. DOUAS_EXTERN NSString *const kDOUAudioStreamerVolumeKey;
  18. DOUAS_EXTERN const NSUInteger kDOUAudioStreamerBufferTime;
  19. typedef NS_OPTIONS(NSUInteger, DOUAudioStreamerOptions) {
  20. DOUAudioStreamerKeepPersistentVolume = 1 << 0,
  21. DOUAudioStreamerRemoveCacheOnDeallocation = 1 << 1,
  22. DOUAudioStreamerRequireSHA256 = 1 << 2,
  23. DOUAudioStreamerDefaultOptions = DOUAudioStreamerKeepPersistentVolume |
  24. DOUAudioStreamerRemoveCacheOnDeallocation
  25. };
  26. @interface DOUAudioStreamer (Options)
  27. + (DOUAudioStreamerOptions)options;
  28. + (void)setOptions:(DOUAudioStreamerOptions)options;
  29. @end