文件名称:iPhoneMixerEQGraphTest.
- 所属分类:
- 其它
- 资源属性:
- [Matlab] [源码]
- 上传时间:
- 2010-09-15
- 文件大小:
- 1.96mb
- 下载次数:
- 0次
- 提 供 者:
- sever515@gmail.com
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
iPhoneMixerEQGraphTest demonstrates how to build an Audio Unit Graph connecting a MultiChannel Mixer to the iPodEQ unit then to the RemoteIO unit.
Two input busses are created each with input volume controls. An overall mixer output volume control is also provided and each bus may be enabled or disabled. The iPodEQ may be enabled or disabled and a preset EQ curve may be chosen via a picker in the iPod Equalizer view. iPhoneMixerEQGraphTest uses 44.1kHz source and sets the hardware sample rate to 44.1kHz to avoid any extraneous sample rate conversions.
Touching the "Play Audio" button simply calls AUGraphStart while "Stop Audio" calls AUGraphStop. Changing AU volume is performed via AudioUnitSetParameter. The iPodEQ unit presets are returned by using AudioUnitGetProperty asking for the kAudioUnitProperty_FactoryPresets CFArrayRef. A current preset is then selected calling AudioUnitSetProperty using the kAudioUnitProperty_PresentPreset property and passing in the appropriate AUPreset. Note that the AU Host owns the returned CFArray and should release it when done.
Audio data is provided from two stereo audio files. The audio data is AAC compressed and ExtAudioFile is used to convert this data to the Core Audio Canonical uncompressed LPCM client format for input to the multichannel mixer.
All the relevant audio code is in the file AUGraphController.mm
Two input busses are created each with input volume controls. An overall mixer output volume control is also provided and each bus may be enabled or disabled. The iPodEQ may be enabled or disabled and a preset EQ curve may be chosen via a picker in the iPod Equalizer view. iPhoneMixerEQGraphTest uses 44.1kHz source and sets the hardware sample rate to 44.1kHz to avoid any extraneous sample rate conversions.
Touching the "Play Audio" button simply calls AUGraphStart while "Stop Audio" calls AUGraphStop. Changing AU volume is performed via AudioUnitSetParameter. The iPodEQ unit presets are returned by using AudioUnitGetProperty asking for the kAudioUnitProperty_FactoryPresets CFArrayRef. A current preset is then selected calling AudioUnitSetProperty using the kAudioUnitProperty_PresentPreset property and passing in the appropriate AUPreset. Note that the AU Host owns the returned CFArray and should release it when done.
Audio data is provided from two stereo audio files. The audio data is AAC compressed and ExtAudioFile is used to convert this data to the Core Audio Canonical uncompressed LPCM client format for input to the multichannel mixer.
All the relevant audio code is in the file AUGraphController.mm
(系统自动生成,下载前可以参看下载内容)
下载文件列表
压缩包 : iPhoneMixerEQGraphTest.zip 列表 iPhoneMixerEQGraphTest/ iPhoneMixerEQGraphTest/Classes/ iPhoneMixerEQGraphTest/Classes/AUGraphController.h iPhoneMixerEQGraphTest/Classes/AUGraphController.mm iPhoneMixerEQGraphTest/Classes/MixerEQGraphTestDelegate.h iPhoneMixerEQGraphTest/Classes/MixerEQGraphTestDelegate.m iPhoneMixerEQGraphTest/Classes/MyViewController.h iPhoneMixerEQGraphTest/Classes/MyViewController.m iPhoneMixerEQGraphTest/en.lproj/ iPhoneMixerEQGraphTest/en.lproj/MainWindow.xib iPhoneMixerEQGraphTest/images/ iPhoneMixerEQGraphTest/images/Icon-72.png iPhoneMixerEQGraphTest/images/Icon-Small-50.png iPhoneMixerEQGraphTest/images/Icon-Small.png iPhoneMixerEQGraphTest/images/Icon-Small@2x.png iPhoneMixerEQGraphTest/images/Icon.png iPhoneMixerEQGraphTest/images/Icon@2x.png iPhoneMixerEQGraphTest/images/iTunesArtwork iPhoneMixerEQGraphTest/Info.plist iPhoneMixerEQGraphTest/iPhoneMixerEQGraphTest.xcodeproj/ iPhoneMixerEQGraphTest/iPhoneMixerEQGraphTest.xcodeproj/project.pbxproj iPhoneMixerEQGraphTest/iPhoneMixerEQGraphTest_Prefix.pch iPhoneMixerEQGraphTest/iPublicUtility/ iPhoneMixerEQGraphTest/iPublicUtility/CAComponentDescription.cpp iPhoneMixerEQGraphTest/iPublicUtility/CAComponentDescription.h iPhoneMixerEQGraphTest/iPublicUtility/CADebugMacros.h iPhoneMixerEQGraphTest/iPublicUtility/CAMath.h iPhoneMixerEQGraphTest/iPublicUtility/CAStreamBasicDescription.cpp iPhoneMixerEQGraphTest/iPublicUtility/CAStreamBasicDescription.h iPhoneMixerEQGraphTest/iPublicUtility/CAXException.cpp iPhoneMixerEQGraphTest/iPublicUtility/CAXException.h iPhoneMixerEQGraphTest/main.m iPhoneMixerEQGraphTest/ReadMe.txt iPhoneMixerEQGraphTest/Resources/ iPhoneMixerEQGraphTest/Resources/green_button.png iPhoneMixerEQGraphTest/Resources/info.html iPhoneMixerEQGraphTest/Resources/moof.png iPhoneMixerEQGraphTest/Resources/red_button.png iPhoneMixerEQGraphTest/Resources/Track1.mp4 iPhoneMixerEQGraphTest/Resources/Track2.mp4