nyc是什么牌子| 头汗特别多是什么原因| 女朱读什么| 心绪是什么意思| 见色起意是什么意思| 什么叫肝功能不全| 眼睑炎用什么药效果好| 为什么头会一阵一阵的痛| 放线是什么意思| 珠地棉是什么面料| 什么的杜鹃花| 肚兜是什么| 什么叫丁克| 男人都喜欢什么样的女人| 胰腺炎吃什么中成药| 梦到自己牙齿掉了是什么意思| 多吃西瓜有什么好处| 什么是孝顺| 大哥是什么意思| 吃什么可以去湿气| 义结金兰是什么意思| 桂花是什么颜色| 牙痛是什么原因| 孩子上火了吃什么降火最快| 我俩太不公平这是什么歌| mect是什么意思| 大作是什么意思| 六月十一号是什么星座| 自缢死亡是什么意思| 炎症吃什么消炎药| 荨麻疹吃什么药| 马鞍皮是什么皮| 运动后想吐是什么原因| 咽喉炎吃什么药好得快| 辛巳五行属什么| 魏大勋什么星座| 手麻挂什么科最好| 颈椎压迫神经挂什么科| gl小说是什么意思| 扼腕是什么意思| 云南有什么山| 新手摆地摊卖什么好| 吃什么能快速排便| 低压48有什么危险| 隔阂是什么意思| 肺动脉增宽是什么意思| 云雾茶是什么茶| 鹦鹉鱼吃什么| 心疼是什么意思| 白质脱髓鞘是什么病| 中午十二点是什么时辰| 当归长什么样的图片| 坐东北朝西南是什么宅| 永垂不朽什么意思| 腋下大量出汗是什么原因| 1984年属什么生肖| 马弁是什么意思| 什么叫化学性肝损伤| 吃什么补免疫力最快| 人流是什么| 微笑是什么意思| 三十六计第一计是什么| 舌苔发青是什么原因| 5月27是什么星座| 验尿能检查出什么| 手心脚心热吃什么药| 补肾益精是什么意思| 38岁属什么| 骨折忌口什么食物| 天下乌鸦一般黑是什么生肖| 结肠是什么病| 攫住是什么意思| 耐受是什么意思| 山梨酸钾是什么添加剂| 饽饽是什么意思| kw是什么单位| 长长的什么| 怀疑是什么意思| 料酒是什么酒| 甲抗是什么原因引起的| 脚趾痒是什么原因| 耳朵嗡嗡响是什么原因| 什么是肝脏纤维化| 妇科检查清洁度二度是什么意思| 内能与什么有关| 喝啤酒头疼是什么原因| 周期性是什么意思| 彩超检查什么| 大米放什么不生虫子| 遗物是什么意思| 白癜风是什么病| 枣红色配什么颜色好看| 办理身份证需要什么| 六扇门是什么意思| 红薯什么季节成熟| 串词是什么| 偏头痛是什么原因| quest是什么车| 中医说的湿气重是什么意思| 痛经吃什么止痛药| 小孩拉肚子应该吃什么食物好| 吃什么补蛋白质| 子宫内膜薄是什么原因造成的| 取模是什么意思| 三什么什么什么成语| 尿结石有什么症状| mcm是什么意思| 为什么身上会出现淤青| 碱性磷酸酶偏高是什么原因| 四季常青财运旺是什么生肖| 内痔疮吃什么药好得快| 花中皇后指的是什么花| 龟头炎用什么药治疗| 生死有命富贵在天什么意思| 干咳吃什么药好| 子宫肌壁回声不均匀是什么意思| 坐骨神经痛吃什么药好得快| 宅男是什么意思| 黄体酮有什么副作用| 眼前的苟且是什么意思| 曲马多是什么| 口臭去医院挂什么科室看病| 梦见买袜子是什么意思| 卒中是什么意思| 味增是什么| gi什么意思| 蝴蝶什么意思| 先天性心脏病有什么症状| 什么是假性银屑病| 肠炎什么症状| 固液法白酒是什么意思| 漱口杯什么材质好| 吃什么食物下奶快而且奶多| 尿道炎吃什么药好| 办健康证要带什么| 夏天受凉感冒吃什么药| 198什么意思| 鱼疗是什么鱼| 小孩尖叫是什么原因| 泌尿系统感染吃什么消炎药| 沙漠玫瑰什么时候开花| 什么是超标电动车| 翻墙是什么| 无花果吃了有什么好处| 买李世民是什么生肖| 与其让你在我怀中枯萎是什么歌| 什么食物含锌最多| 理疗是什么意思| 五月十三日是什么星座| 拱是什么意思| 故事是什么意思| 新生儿干呕是什么原因| 肌酐高是什么病| 头皮屑多是什么原因引起的| 什么食物含钾多| 痔疮的症状是什么| 喝酒头疼是什么原因| 和珅属什么生肖| 爱是什么| 什么人容易得帕金森病| 厌氧菌感染用什么药| 为难的难是什么意思| 秋葵对痛风有什么好处| 讨厌是什么意思| 肾属于什么科| 孑孓什么意思| 合拍是什么意思| 舌苔厚有齿痕吃什么药| 怀孕会有什么反应| 碘伏用什么可以洗掉| 接龙是什么意思| 澳大利亚说什么语| 类风湿因子高说明什么| 小舅子是什么意思| 宫缩什么感觉| 肛裂是什么症状| 兜售是什么意思| 肾不好吃什么好| 梦见自己生二胎是什么意思| 周杰伦什么星座| 孕妇什么情况容易早产| 电饭煲内胆什么材质好| rad是什么单位| 核桃什么时候吃最好| 珍珠是什么做的| zara是什么牌子| 肝穿刺检查是什么意思| 精氨酸是什么| 食管息肉的症状是什么| 嗨体是什么| 锁骨是什么位置| 灌肠是什么感觉| 什么是象形字| 为什么不敢挖雍正陵墓| 89年是什么年| 青霉素过敏可以吃什么消炎药| 什么时候闰正月| 远房亲戚是什么意思| 外阴白斑擦什么药| 囟门是什么| 减肥期间吃什么最好| 精制盐是什么盐| 吃避孕药为什么要吃维生素c| 帕金森吃什么药最好| 部长助理是什么级别| 身体发凉是什么原因| 血热是什么症状| 月经每个月都推迟是什么原因| 揣测是什么意思| 85年是什么年| 急性咽喉炎吃什么药| 辛酉日五行属什么| 板蓝根长什么样| 孙武和孙膑是什么关系| 艾斯比什么意思| 年轻人血压高是什么原因引起的| 身上痒是什么情况| 舌头发涩是什么原因造成的| 傻缺什么意思| 汗毛多是什么原因| 香蕉和什么不能一起吃| 肾蕨是什么植物| 迷你巴拉巴拉和巴拉巴拉什么关系| 大名是什么意思| 人养玉三年玉养人一生是什么意思| 任督二脉是什么意思| 蜜蜂的天敌是什么| 齐白石擅长画什么| 眼泪为什么是咸的| 坚韧不拔是什么生肖| 怀孕16周要做什么检查| hip是什么意思| 土猪肉和普通猪肉有什么分别| 生肖鼠和什么生肖相冲| rh血型阳性是什么意思| 神母是什么病| 吃什么受孕率又快又高| 小月子能吃什么水果| 7月31日是什么星座| 天麻能治什么病| 云指什么生肖| 额头凉凉的是什么原因| 孕晚期脚肿是什么原因| 什么血压计最准确| 荨麻疹吃什么药最管用| 白细胞高是什么原因| 向日葵什么时候成熟| 什么验孕棒准确率高| 度化是什么意思| 什么是荨麻疹| 正司级是什么级别| 贼是什么生肖| 吃什么才能减肥最快| eagle是什么意思| 夏季摆摊卖什么好| 肠胃炎吃什么抗生素| 头脑简单是什么生肖| 不见棺材不落泪是什么生肖| 复方血栓通片功效作用治疗什么病| 我低头向山沟是什么歌| 属狗是什么星座| 梦见新房子是什么意思| 怀孕早期需要注意什么| 松花粉有什么功效| 百度
Skip to content

agilie/DisPlayers-Audio-Visualizers

Repository files navigation

DisPlayers-Audio-Visualizers

Made by Agilie CI Status Version License Platform

DisPlayers-Audio-Visualizers

DisPlayer is a customizable audio visualization component that works with recording and playing back audio files

Histogram Demo Rolling Demo Wave Dem WaveStroke Dem

The audio visualizer can be easily embedded into an app that features:

  • audio comments to text or multimedia posts
  • recording and sending audio files in a chat
  • playing back audio files posted in a chat using a dedicated UI component

DisPlayer features 5 default visualization presets that can be customized by the background color (single tone or gradient), the wave color, the number of the wave’s bins/bars, and the wave amplitude.

Installation

The control can be easily embedded into an app:

CocoaPods (recommended)

# For latest release in cocoapods
pod 'DisPlayers-Audio-Visualizers', '~> 0.1.1'

Getting started

Getting started guide for DisPlayers-Audio-Visualizers

  1. You should added next classes into your project:
#import "EZAudio.h" 
#import "DPMainEqualizerView.h"
#import "DPEqualizerSettings.h"
  1. This library contains four types of equalizer visualisation: (Histogram, Rolling, Wave and Circle Wave). And you should chose want kind of equalizer visualization you want and import that class into your project.

Histogram initialization example:

    DPEqualizerSettings *settings = [DPEqualizerSettings createByType: DPHistogram];
    self.equalizerView = [[DPHistogramEqualizerView alloc] initWithFrame: self.view.bounds 
                                                             andSettings: settings];
    [self.view addSubview: self.equalizerView];
     NSString *audioPath = [[NSBundle mainBundle] pathForResource: @"YOUR_AUDIO_FILE_PATH" 
                                                           ofType: @"AUDIO_FILE_TYPE"];
     EZAudioFile *audioFile = [[EZAudioFile alloc] initWithURL: [[NSURL alloc] initWithString: audioPath]];
     self.player = [[EZAudioPlayer alloc] initWithAudioFile: audioFile];
     self.player.delegate = self;
     [self.player play];

EZAudioPlayerDelegate

- (void)  audioPlayer:(EZAudioPlayer *)audioPlayer
          playedAudio:(float **)buffer
       withBufferSize:(UInt32)bufferSize
 withNumberOfChannels:(UInt32)numberOfChannels
          inAudioFile:(EZAudioFile *)audioFile {
          
    dispatch_async(dispatch_get_main_queue(), ^{
        if (self.player.isPlaying) {
            [self.equalizerView updateBuffer: buffer[0] withBufferSize:bufferSize];
        }
    
    });
}
  1. You can also customize equalizer visualisation. You can change default settings for all equalizer visualisation types:
/// The highest bound of the frequency. Default: 7000Hz
@property (nonatomic) float maxFrequency;

/// The lowest bound of the frequency. Default: 400Hz
@property (nonatomic) float minFrequency;

/// The number of bins in the audio plot. Default: 40
@property (nonatomic) NSUInteger numOfBins;

/// The padding of each bin in percent width. Default: 0.2
@property (nonatomic) CGFloat padding;

/// The gain applied to the height of each bin. Default: 10
@property (nonatomic) CGFloat gain;

/// A float that specifies the vertical gravitational acceleration applied to each bin.
/// Default: 10 pixel/sec^2
@property (nonatomic) float gravity;

/// The number of max bin height. Default: Screen height.
@property (assign, nonatomic) CGFloat maxBinHeight;

/// The type of plot that can be displayed in the view using the data. Default: DPPlotTypeBuffer.
@property (assign, nonatomic) DPPlotType plotType;

/// The type of equalizer that can be displayed in the view using the data. Default: DPHistogram.
@property (assign, nonatomic) DPEqualizerType equalizerType;

/// The colors of equalizer background that can be displayed in the view.
@property (nonatomic, strong) NSMutableArray *equalizerBackgroundColors;

/// The colors of low frequency that can be displayed in the view.
@property (nonatomic, strong) NSMutableArray *lowFrequencyColors;

/// The colors of hight frequency that can be displayed in the view.
@property (nonatomic, strong) NSMutableArray *hightFrequencyColors;

/// The colors of bins that can be displayed in the view.
@property (nonatomic, strong) NSMutableArray *equalizerBinColors;

@property (nonatomic, assign) BOOL fillGraph;

Some presets display audio frequencies as a separate waves, which provides more possibilities for cool sound visualization for your project.

Usage

CocoaPods is the recommended way to add DisPlayer to your project:

  1. Add a pod entry for DisPlayer to your Podfile pod 'DisPlayer'
  2. Install the pod(s) by running pod installation.
  3. Include DisPlayer wherever you need it with #import ?Equalizers.h?.

Requirements

DisPlayer works on iOS 8.0+ and is compatible with ARC projects. It depends on the following Apple frameworks, which should already be included with most Xcode templates: CoreGraphics.framework QuartzCore.framework CoreAudio.framework You will need LLVM 3.0 or later in order to build “DisPlayer”

Author

This library is open-sourced by Agilie Team info@agilie.com

Contributors

Michael Liptuga - michael.liptuga@agilie.com

Contact us

ios@agilie.com

License

The MIT License (MIT) Copyright ? 2017 Agilie Team

About

DisPlayer is a customizable audio visualization component that works with recording and playing back audio files

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  
草果是什么 送呈是什么意思 肯定是什么意思 木耳菜是什么菜 大运是什么
皮肤干燥缺什么维生素 装修公司名字取什么好 瘴气是什么意思 心包填塞三联征是什么 尿酸高会引起什么病
宰相肚里能撑船是什么意思 什么病误诊为帕金森 1996五行属什么 前列腺钙化灶是什么 吃什么可以生精最快
支数是什么意思 儒艮为什么叫美人鱼 什么叫总胆固醇 看十全十美是什么生肖 游泳对身体有什么好处
盗汗是什么症状hcv8jop0ns4r.cn 皮内瘤变到底是什么意思hcv9jop3ns6r.cn 送医生什么礼物好hcv9jop4ns2r.cn 怀孕乳头会有什么变化kuyehao.com 夏威夷果吃了有什么好处hcv9jop6ns7r.cn
什么叫幽门螺旋杆菌hcv9jop4ns6r.cn 气虚吃什么hcv7jop6ns4r.cn 其实不然是什么意思hcv8jop3ns2r.cn 湿疹是长什么样的aiwuzhiyu.com 拉肚子吃什么hcv9jop8ns0r.cn
sf什么意思hcv7jop7ns4r.cn 朗字五行属什么hcv9jop1ns6r.cn 翼字五行属什么hcv8jop0ns0r.cn 心跳过快有什么危害hcv8jop6ns4r.cn 支气管发炎是什么原因引起的weuuu.com
叶字五行属什么hcv8jop7ns5r.cn 韩红什么军衔hcv7jop7ns3r.cn 珍珠婚是什么意思hcv7jop9ns4r.cn elle中文叫什么hcv8jop6ns6r.cn 吃什么可以降火hcv9jop2ns5r.cn
百度