DOUAudioVisualizer.h 824 B

123456789101112131415161718192021222324252627282930313233
  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. #if TARGET_OS_IPHONE
  17. #import "DOUEAGLView.h"
  18. typedef NS_ENUM(NSUInteger, DOUAudioVisualizerInterpolationType) {
  19. DOUAudioVisualizerLinearInterpolation,
  20. DOUAudioVisualizerSmoothInterpolation
  21. };
  22. @interface DOUAudioVisualizer : DOUEAGLView
  23. @property (nonatomic, assign) NSUInteger stepCount;
  24. @property (nonatomic, assign) DOUAudioVisualizerInterpolationType interpolationType;
  25. @end
  26. #endif /* TARGET_OS_IPHONE */