-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #78 from ShengQiangLiu/v5.2.6
v5.2.6
- Loading branch information
Showing
52 changed files
with
901 additions
and
582 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# QNRTCKit 5.2.5 to 5.2.6 API Differences | ||
|
||
## General Headers | ||
|
||
``` | ||
QNMicrophoneAudioTrack | ||
``` | ||
|
||
- *Deleted* method `- (QNAudioMusicMixer *)createAudioMusicMixer:(NSString *)musicPath musicMixerDelegate:(id<QNAudioMusicMixerDelegate>)musicMixerDelegate;` | ||
- *Deleted* method `- (void)destroyAudioMusicMixer;` | ||
- *Deleted* method `- (QNAudioEffectMixer *)createAudioEffectMixer:(id<QNAudioEffectMixerDelegate>)effectMixerDelegate;` | ||
- *Deleted* method `- (void)destroyAudioEffectMixer;` | ||
- *Deleted* method `- (QNAudioSourceMixer *)createAudioSourceMixer:(id<QNAudioSourceMixerDelegate>)sourceMixerDelegate;` | ||
- *Deleted* method `- (void)destroyAudioSourceMixer;` | ||
- *Deleted* method `- (void)setEarMonitorEnabled:(BOOL)enabled;` | ||
- *Deleted* method `- (BOOL)getEarMonitorEnabled;` | ||
- *Deleted* method `- (void)setPlayingVolume:(float)volume;` | ||
- *Deleted* method `- (float)getPlayingVolume;` | ||
|
||
|
||
``` | ||
QNLocalAudioTrack | ||
``` | ||
|
||
- *Added* method `- (void)setEarMonitorEnabled:(BOOL)enabled;` | ||
- *Added* method `- (BOOL)getEarMonitorEnabled;` | ||
- *Added* method `- (void)setPlayingVolume:(float)volume;` | ||
- *Added* method `- (float)getPlayingVolume;` | ||
- *Added* method `- (BOOL)addAudioFilter:(id<QNAudioFilterProtocol>)filter;` | ||
- *Added* method `- (BOOL)removeAudioFilter:(id<QNAudioFilterProtocol>)filter;` | ||
|
||
``` | ||
QNRTC | ||
``` | ||
|
||
- *Added* method `+ (QNAudioMusicMixer *)createAudioMusicMixer:(NSString *)musicPath musicMixerDelegate:(id<QNAudioMusicMixerDelegate>)musicMixerDelegate;` | ||
- *Added* method `+ (void)destroyAudioMusicMixer:(QNAudioMusicMixer*)mixer;` | ||
- *Added* method `+ (QNAudioEffectMixer *)createAudioEffectMixer:(id<QNAudioEffectMixerDelegate>)effectMixerDelegate;` | ||
- *Added* method `+ (void)destroyAudioEffectMixer:(QNAudioEffectMixer*)mixer;` | ||
- *Added* method `+ (QNAudioSourceMixer *)createAudioSourceMixer:(id<QNAudioSourceMixerDelegate>)sourceMixerDelegate;` | ||
- *Added* method `+ (void)destroyAudioSourceMixer:(QNAudioSourceMixer*)mixer;` | ||
|
||
``` | ||
QNRTCClient | ||
``` | ||
- *Added* method `- (void)RTCClient:(QNRTCClient *)client didUserVolumeIndication:(NSArray<QNAudioVolumeInfo *>*)userVolumeList;` | ||
- *Added* method `- (void)enableAudioVolumeIndication:(int)interval;` |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+190 KB
(100%)
Pod/iphoneos/QNRTCKit.framework.dSYM/Contents/Resources/DWARF/QNRTCKit
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
Pod/iphoneos/QNRTCKit.framework/Headers/QNAudioFilterProtocol.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
// | ||
// QNAudioFilterProtocol.h | ||
// QNRTCKit | ||
// | ||
// Created by ShengQiang'Liu on 2023/8/22. | ||
// Copyright © 2023 Pili Engineering, Qiniu Inc. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
#import "QNAudioFrame.h" | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@protocol QNAudioFilterProtocol <NSObject> | ||
|
||
/** | ||
* Audio frame 处理. | ||
* @param inAudioFrame 需要处理的 audio frame. | ||
* @param adaptedFrame 处理完的 audio frame. | ||
* @return | ||
* - `true`: Success. | ||
* - `false`: Failure. 丢弃 audio frame. | ||
*/ | ||
- (BOOL)adaptAudioFrame:(const QNAudioFrame *)inAudioFrame adaptedFrame:(QNAudioFrame *)adaptedFrame; | ||
|
||
/** | ||
* 获取 QNAudioFilter 类的标识名称 | ||
* | ||
* @return | ||
* - 标识名称 | ||
*/ | ||
- (const NSString *)getName; | ||
|
||
/** | ||
* 开启或者关闭当前 filter. | ||
* @param enable 是否开启 filter: | ||
* - `true`: 开启. | ||
* - `false`: 关闭. | ||
*/ | ||
- (void)setEnabled:(BOOL)enable; | ||
|
||
/** | ||
* 检查当前 Filter 是否开启. | ||
* @return | ||
* - `true`: 已开启. | ||
* - `false`: 已关闭. | ||
*/ | ||
- (BOOL)isEnabled; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// | ||
// QNAudioFrame.h | ||
// QNRTCKit | ||
// | ||
// Created by ShengQiang'Liu on 2023/9/7. | ||
// Copyright © 2023 Pili Engineering, Qiniu Inc. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
enum QNBytesPerSample { | ||
kTwoBytesPerSample = 2, | ||
}; | ||
|
||
// Stereo, 32 kHz, 120 ms (2 * 32 * 120) | ||
static const int kQNMaxDataSizeSamples = 7680; | ||
static const int kQNMaxDataSizeBytes = kQNMaxDataSizeSamples * sizeof(int16_t); | ||
|
||
@interface QNAudioFrame : NSObject | ||
|
||
@property (nonatomic, assign) uint32_t captureTimestamp; | ||
@property (nonatomic, assign) size_t samplesPerChannel; | ||
@property (nonatomic, assign) int sampleRateHz; | ||
@property (nonatomic, assign) size_t numChannels; | ||
@property (nonatomic, assign, readonly) enum QNBytesPerSample bytePerSample; | ||
// 最大 size 为 kQNMaxDataSizeBytes | ||
@property (nonatomic, strong) NSData *data; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
Pod/iphoneos/QNRTCKit.framework/Headers/QNAudioVolumeInfo.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// | ||
// QNAudioVolumeInfo.h | ||
// QNRTCKit | ||
// | ||
// Created by 冯文秀 on 2023/5/18. | ||
// Copyright © 2023 Pili Engineering, Qiniu Inc. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@interface QNAudioVolumeInfo : NSObject | ||
/*! | ||
* @abstract 用户 ID | ||
* | ||
* @since v5.2.3 | ||
*/ | ||
@property (nonatomic, readonly) NSString *userID; | ||
|
||
/*! | ||
* @abstract 用户实时音量 | ||
* | ||
* @since v5.2.3 | ||
*/ | ||
@property (nonatomic, readonly) float volume; | ||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.