Skip to content

Commit

Permalink
Merge pull request #129 from Zeaa/master
Browse files Browse the repository at this point in the history
优化更新LFLiveKit中的部分注释错误、添加LFDebug类的description方法
  • Loading branch information
小歪~~~ authored Nov 9, 2016
2 parents b683dda + a8a1603 commit f255d10
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
20 changes: 10 additions & 10 deletions LFLiveKit/configuration/LFLiveAudioConfiguration.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#import <Foundation/Foundation.h>

/// 音频码率
/// 音频码率 (默认96Kbps)
typedef NS_ENUM (NSUInteger, LFLiveAudioBitRate) {
/// 32Kbps 音频码率
LFLiveAudioBitRate_32Kbps = 32000,
Expand All @@ -18,33 +18,33 @@ typedef NS_ENUM (NSUInteger, LFLiveAudioBitRate) {
LFLiveAudioBitRate_96Kbps = 96000,
/// 128Kbps 音频码率
LFLiveAudioBitRate_128Kbps = 128000,
/// 默认音频码率,默认为 64Kbps
/// 默认音频码率,默认为 96Kbps
LFLiveAudioBitRate_Default = LFLiveAudioBitRate_96Kbps
};

/// 采样率 (默认44.1Hz)
/// 音频采样率 (默认44.1KHz)
typedef NS_ENUM (NSUInteger, LFLiveAudioSampleRate){
/// 16KHz 采样率
LFLiveAudioSampleRate_16000Hz = 16000,
/// 44.1KHz 采样率
LFLiveAudioSampleRate_44100Hz = 44100,
/// 48KHz 采样率
LFLiveAudioSampleRate_48000Hz = 48000,
/// 默认音频码率,默认为 64Kbps
/// 默认音频采样率,默认为 44.1KHz
LFLiveAudioSampleRate_Default = LFLiveAudioSampleRate_44100Hz
};

/// Audio Live quality(音频质量)
typedef NS_ENUM (NSUInteger, LFLiveAudioQuality){
/// 高音频质量 audio sample rate: 16KHz audio bitrate: numberOfChannels 1 : 32Kbps 2 : 64Kbps
/// 低音频质量 audio sample rate: 16KHz audio bitrate: numberOfChannels 1 : 32Kbps 2 : 64Kbps
LFLiveAudioQuality_Low = 0,
/// 高音频质量 audio sample rate: 44KHz audio bitrate: 96Kbps
/// 中音频质量 audio sample rate: 44.1KHz audio bitrate: 96Kbps
LFLiveAudioQuality_Medium = 1,
/// 高音频质量 audio sample rate: 44MHz audio bitrate: 128Kbps
/// 高音频质量 audio sample rate: 44.1MHz audio bitrate: 128Kbps
LFLiveAudioQuality_High = 2,
/// 高音频质量 audio sample rate: 48MHz, audio bitrate: 128Kbps
/// 超高音频质量 audio sample rate: 48KHz, audio bitrate: 128Kbps
LFLiveAudioQuality_VeryHigh = 3,
/// 默认音频质量 audio sample rate: 44MHz, audio bitrate: 96Kbps
/// 默认音频质量 audio sample rate: 44.1KHz, audio bitrate: 96Kbps
LFLiveAudioQuality_Default = LFLiveAudioQuality_High
};

Expand All @@ -63,7 +63,7 @@ typedef NS_ENUM (NSUInteger, LFLiveAudioQuality){
@property (nonatomic, assign) NSUInteger numberOfChannels;
/// 采样率
@property (nonatomic, assign) LFLiveAudioSampleRate audioSampleRate;
// 码率
/// 码率
@property (nonatomic, assign) LFLiveAudioBitRate audioBitrate;
/// flv编码音频头 44100 为0x12 0x10
@property (nonatomic, assign, readonly) char *asc;
Expand Down
4 changes: 4 additions & 0 deletions LFLiveKit/objects/LFLiveDebug.m
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,9 @@

@implementation LFLiveDebug

- (NSString *)description {
return [NSString stringWithFormat:@"丢掉的帧数:%ld 总帧数:%ld 上次的音频捕获个数:%d 上次的视频捕获个数:%d 未发送个数:%ld 总流量:%0.f",_dropFrame,_totalFrame,_currentCapturedAudioCount,_currentCapturedVideoCount,_unSendCount,_dataFlow];
}


@end

0 comments on commit f255d10

Please sign in to comment.