-
Notifications
You must be signed in to change notification settings - Fork 6
SNPCMPlayer
Ju Liaoyuan edited this page Dec 20, 2022
·
1 revision
Conforms to NSObject
Declared in SNPCMPlayer.h
provider property required method
– startPlay required method
– stopPlay required method
– getPCMFormat required method
– setVolume: required method
– volume required method
– destroy required method
PCM 提供方
@property (nonatomic, weak) id<SNPCMPlayerProvider> provider
PCM 提供方
SNPCMPlayer.h
销毁播放器,再次使用时需要重新初始化
- (void)destroy
销毁播放器,再次使用时需要重新初始化
SNPCMPlayer.h
通过该接口,可以获取当前房间内的PCM数据格式
- (SNPCMFormat *)getPCMFormat
通过该接口,可以获取当前房间内的PCM数据格式
SNPCMPlayer.h
设置播放音量,默认 30
- (void)setVolume:(int)*volume*
设置播放音量,默认 30
SNPCMPlayer.h
开始播放
- (void)startPlay
开始播放
SNPCMPlayer.h
停止播放
- (void)stopPlay
停止播放
SNPCMPlayer.h
获取播放音量
- (int)volume
获取播放音量
SNPCMPlayer.h
Sona Wiki