DOUAudioEventLoop.h
810 字节
/* vim: set ft=objc fenc=utf-8 sw=2 ts=2 et: */
/*
* DOUAudioStreamer - A Core Audio based streaming audio player for iOS/Mac:
*
* https://github.com/douban/DOUAudioStreamer
*
* Copyright 2013-2016 Douban Inc. All rights reserved.
*
* Use and distribution licensed under the BSD license. See
* the LICENSE file for full text.
*
* Authors:
* Chongyu Zhu <i@lembacon.com>
*
*/
#import <Foundation/Foundation.h>
@class DOUAudioStreamer;
@interface DOUAudioEventLoop : NSObject
+ (instancetype)sharedEventLoop;
@property (nonatomic, strong) DOUAudioStreamer *currentStreamer;
@property (nonatomic, assign) NSTimeInterval currentTime;
@property (nonatomic, assign) double volume;
@property (nonatomic, copy) NSArray *analyzers;
- (void)play;
- (void)pause;
- (void)stop;
@end