audiounit

How to Host Apple's Pitch Shift Audio Unit plugin and the like

≡放荡痞女 提交于 2020-01-03 17:22:53
问题 How do you host the PitchShift Audio Unit plugin correctly in its own window? I am developing a Mac app that hosts Apple's system supplied Audio Unit plugins. With the new OSX 10.7 Lion, some of the plugins have updated views. PitchShift is one of these. PitchShift and a few others have new knobs to change there parameters. When a knob is being turned with the mouse, a horizontal bar showing the knob's parameter value is displayed below the knob. This bar stays on screen after the knob is

Setting up audio unit iOS with mono input and stereo output

北战南征 提交于 2020-01-03 13:22:29
问题 I'm trying to set up an audio unit capable of mono input and stereo output. Intend on playing a sine wave tone through the left channel output and a different sign wave periodically through the right channel out. I am receiving the error, 'NSInternalInconsistencyException', reason: ' Error initialing unit: -50; when I attempt to initialize my audio unit here, // Initialize audio unit OSErr err = AudioUnitInitialize(self.ioUnit); NSAssert1(err == noErr, @"Error initializing unit: %hd", err); I

Which built in AudioUnit can resample audio?

守給你的承諾、 提交于 2020-01-03 04:45:08
问题 I have an application that will need to rapidly change the sample rate of audio. The pitch shift caused by doing simple linear interpolation of the samples is totally fine. Is there an audio unit that resamples in software in real time (ie: does not need to change the hardware sample rate). 回答1: Yes, Apple's AU kAudioUnitType_FormatConverter , kAudioUnitSubType_AUConverter can do this. Internally the AU contains a FormatConverter that performs the work. 来源: https://stackoverflow.com/questions

How can you compile VST 3 or Audio Units with the command line?

天涯浪子 提交于 2020-01-03 04:34:08
问题 I would like to make an audio plugin, as either an Audio Unit or a VST 3. However, compiling plugins under both frameworks seems to be a very heavyweight process for which only XCode or Visual Studio project files are provided as examples. Is there an example of a barebones build that compiles using a Makefile or CMake script? 回答1: You can always look at the flags that Xcode uses and provide them to gcc with CMake. However, the actual build process generally takes much more time than the

iOS AudioUnits pass through

拈花ヽ惹草 提交于 2019-12-31 17:57:41
问题 I am trying to write an iOS application that will pass the sound received from microphone to speaker without any changes. I've read apple docs and guides. I choosed the first pattern from this guide. But nothing happening - silence. As you can see I've tried to use the AUAudioGraph (commented) - same result (do I need it in this simple example at all?). I saw few examples in the internet where callbacks are used, but I do not want use any. Is it possible? Any suggestions? Thanks for attention

iOS AudioUnits pass through

我是研究僧i 提交于 2019-12-31 17:57:11
问题 I am trying to write an iOS application that will pass the sound received from microphone to speaker without any changes. I've read apple docs and guides. I choosed the first pattern from this guide. But nothing happening - silence. As you can see I've tried to use the AUAudioGraph (commented) - same result (do I need it in this simple example at all?). I saw few examples in the internet where callbacks are used, but I do not want use any. Is it possible? Any suggestions? Thanks for attention

Adjust the length of an AudioUnit Buffer

萝らか妹 提交于 2019-12-30 02:31:08
问题 my Problem concerns AudioUnits. In order to design a voicechanging App for iPhone (with Objective-C xCode) i use RemoteIO audioUnit sample from this website: http://atastypixel.com/blog/using-remoteio-audio-unit/ The audioUnit buffers are set to a length of 256 samples. For my project i need alot more (about 22050). The quoted page says that the length of the audioUnit buffers can be adjusted like this: float aBufferLength = 0.005; // In seconds AudioSessionSetProperty(kAudioSessionProperty

How to make a simple EQ AudioUnit (bass, mid, treble) with iOS?

荒凉一梦 提交于 2019-12-29 03:12:47
问题 does anyone know how to make a simple EQ audio unit (3 bands - low, mid, hi) with iOS ? I know how to add an iPod EQ Audio Unit to my AU Graph. But it only give you access to presets and I need proper control of the EQ. I've looked around for some tutorials or explanations but no luck. Thanks. André 回答1: The iPhone doesn't exactly support custom AudioUnits. Or, more precisely, it doesn't allow you to register an AudioUnit's identifier so you could load it in an AUGraph. You can, however,

How to make a simple EQ AudioUnit (bass, mid, treble) with iOS?

时光总嘲笑我的痴心妄想 提交于 2019-12-29 03:12:41
问题 does anyone know how to make a simple EQ audio unit (3 bands - low, mid, hi) with iOS ? I know how to add an iPod EQ Audio Unit to my AU Graph. But it only give you access to presets and I need proper control of the EQ. I've looked around for some tutorials or explanations but no luck. Thanks. André 回答1: The iPhone doesn't exactly support custom AudioUnits. Or, more precisely, it doesn't allow you to register an AudioUnit's identifier so you could load it in an AUGraph. You can, however,

How to record sound produced by mixer unit output (iOS Core Audio & Audio Graph)

☆樱花仙子☆ 提交于 2019-12-28 08:12:47
问题 I'm trying to record sound produced by a mixer unit output. For the moment, my code is based on the apple MixerHost iOS app demo : A mixer node is connected to a remote IO node on the audio graphe. And i try to set an input callback on the remote IO node input on the mixer output. I do something wrong but I can not find the error. Here is the code below. This is done just after the Multichannel Mixer unit Setup : UInt32 flag = 1; // Enable IO for playback result = AudioUnitSetProperty(iOUnit,