core-audio

AudioQueue gaps in playback

I'm struggling with an AudioQueue audio player I implemented. I initially thought it was truncating the 1st 1/2 of audio that it played but upon loading larger files I notice gaps every other 1/2-1 second. I've run it in debug and I've confirmed that I'm loading the queue correctly with audio. (There are no big zero regions loaded in the...

iPhone SDK: Audio Queue not loud enough for me

I would like all the tricks into making the playback as loud as possible on my iPhone app. I'm recording using Audio Queue and am not sure if there is a way to make the input louder. On playback I'm setting the kAudioQueueParam_Volume parameter to 1.0. It's still not loud enough. There our apps that do kind of what I'm doing that are m...

Combine and convert MP3 files using QTKit

Hi - I'm trying to combine two .mp3s into a single .wav file using QTKit. It seems to be working, but the last few seconds of the second file are getting truncated. Any ideas? - (IBAction)combineSelectedFilesAndOutputAsWAV { QTMovie *movie = [QTMovie movieWithFile:fileOne error:NULL]; [movie setAttribute:[NSNumber numberWithBoo...

Record simultaneously while streamer is playing

Hi I need to record the stream of an mp3 source simultaneously while it is playing. I'm am using matt gallagher's classes http://cocoawithlove.com/2008/09/streaming-and-playing-live-mp3-stream.html I can't find out how to do this and I need some help please. Thank you. ...

Is it possible to put audio into 'phone' mode?

By this I mean, use the speaker and phone microphone but don't use the speaker in the handsfree style. So the use case is: 1. User is listening to the app via the phones speaker 2. They wish to put the phone to their ear so they choose an option which changes the audio to be as if they were talking on the phone (i.e. non-hands free mode...

How to change a recorded voice to a man's voice in Core Audio (Audio Unit/ Remote IO) for iPhone

Hi All, I am new to Core Audio and really lost, I am trying to record an audio and then apply voice modulation to that recording and play it back. I have looked at the example Speak Here which uses Audio Queue for audio recording. I am stuck at the part of how to change the audio samples. I understand that it can be done using Audio Unit...

Does any one know how to modify the Speak Here Sample Code to record streaming audio?

Does anyone know how to modify the code Speak Here from Apple. I need to modify it to record streaming audio using Matt Gemmell AudioStreamer classes but somehow I can't find how to select the recording source... Could you help? ...

[C#] Send audio output to all speaker devices

I need to be able to direct sound output from my application to all of a system's audio outputs - specifically, both the built-in speakers and headphones of a laptop. I'm using C# on Windows Vista/7 and the latest version of the .NET Framework, and don't need to support older (i.e. Windows XP) OSes. I was able to successfully use the C...

iphone os audio export question

Im kind of newb to audio processing but have ExtAudioFile converting pcm to kAudioFormatMPEG4AAC and if i save the file as .caf it plays fine. but not as .m4a (on desktop) looking at the audio file it seems the header doesnt match another .m4a header and seems very short and has 'caaf' in it. my guess is it might be mpeg4aac data but th...

Is It Possible To Record All Outgoing Audio On An iPhone?

Ok, so I have an MPMoviePlayer playing a live-streamed audio file. I'm pretty sure I can't record the audio from that, so I was thinking it would be easier to attach a callback to the outgoing audio queue. Can anyone offer help on that, or set me straight if it's possible to GET data from the MPMoviePlayer as it's being streamed? ...

SpeakHere recording input source

Hi Could anyone tell me where to change the recording input source in the SpeakHere sample code of Apple? I can't figure it out... Thanks SpeakHere sample code : here ...

NSSound-like framework that works, but doesn't require dealing with a steep learning curve

Hi, I've pretty much finished work on a white noise feature for one of my applications using NSSound to play a loop of 10 second AAC-encoded pre-recorded white noise. [sound setLoops: YES] should be all that's required, right? It works like a charm but I've noticed that there is an audible pause between the sound file finishing and ...

Simulate No Audio Input Route in iPhone Simulator

I'm making a couple audio apps, and one snag I've run into several times is code I write for the iPhone doesn't work on the iPod Touch. When using low-level audio, having no audio input route can crash the app when initializing an audio session. Is anyone aware of how to simulate no available audio input in the iPhone simulator? EDIT...

Audio Queue Services: changing output device

Hi, I've spent the last week on an unplanned excursion into the depths of the Macintosh sound system after NSSound proved to be unequal to the task.. I finally got my file playing with Audio Queue Services and now there's only one little thing left to do: switch output devices. Unfortunately, it seems that I'm either doing something wr...

iPhone does not vibrate while recording

I am modifying the AurioTouch example. I want to vibrate the phone in response to particular sound inputs. I can detect the inputs and printf them, but AudioServicesPlaySystemSound(kSystemSoundID_Vibrate) doesn't do anything while the session is kAudioSessionCategory_PlayAndRecord. ...

AVassetExportSession kills my audio.

Hi all. when I start –exportAsynchronouslyWithCompletionHandler: method of AVassetExportSession my audio is stops playing. I am using AudioQueue and OpenAL they both needs to be restarted after beginning export session. Is There any trick to make them work without restarting audios? ...

AVassetExportSession kills my audio.

Hi all. when I start –exportAsynchronouslyWithCompletionHandler: method of AVassetExportSession my audio is stops playing. I am using AudioQueue and OpenAL they both needs to be restarted after beginning export session. Is there any trick to make them work without restarting audios? Well. Nobody has answered to me, so I will answer myse...

AVAudioRecorder File won't play except with VLC

Ok. I think I'm missing something here and I'm new to Core Audio but I have scoured the Apple documents and the rest of the web to no avail. I've also posted this same question to the apple dev forums and got no replies. I'm hoping the StackOverflow community can help me out. I'm recording audio and playing it back just fine using AVAud...

CoreAudio: getting device count breaks when linking to Foundation on 10.6

I have a mixed C++/Objective-C project that uses AudioObjectGetPropertyDataSize to get the number of audio devices (such as USB headsets) plugged in. This API doesn't seem to work under certain conditions. For example, on 10.5 it will work but on 10.6 it won't detect when a new USB headset is plugged in. I've pared down the problem to...

AudioServicesAddSystemSoundCompletion: how to use the void* parameter?

Hello, guys. I want to play two sounds, but the last one only after the first ends. I'm using AudioServicesAddSystemSoundCompletion like that: NSArray *data = [NSArray arrayWithObjects:target, callback, nil]; NSString *soundPath = [bundle pathForResource:sound ofType:type]; SystemSoundID soundID; AudioServicesCreateSys...