audiotoolbox

Is AUGraph being deprecated on iOS? If so, when?

风流意气都作罢 提交于 2019-12-04 19:17:15
I've heard rumblings that AUGraph is being deprecated on iOS, for example in this Twitter post : @marcoarment Your comment on @atpfm about needing to rewrite your audio engine: b/c of the looming AUGraph deprecation, or something else? Is AUGraph in fact being deprecated, and if so, when? Can somebody point me toward an official Apple document or announcement that clarifies this? Indeed it will be deprecated as stated in the WWDC talk (Note: The picture is from the core audio mailing list) 来源: https://stackoverflow.com/questions/44952582/is-augraph-being-deprecated-on-ios-if-so-when

MonoTouch: Playing sound

杀马特。学长 韩版系。学妹 提交于 2019-12-04 10:41:47
I am trying to play a short sound when user taps on the specific button. But the problem is that I always receive Object reference not set to an instance object . means Null! I first tried MonoTouch.AudioToolBox.SystemSound. MonoTouch.AudioToolbox.AudioSession.Initialize(); MonoTouch.AudioToolbox.AudioSession.Category = MonoTouch.AudioToolbox.AudioSessionCategory.MediaPlayback; MonoTouch.AudioToolbox.AudioSession.SetActive(true); var t = MonoTouch.AudioToolbox.SystemSound.FromFile("click.mp3"); t.PlaySystemSound(); Let me notice that "click.mp3" is in my root solution folder and it is flagged

Audio Output Routes for AirPlay

别等时光非礼了梦想. 提交于 2019-12-04 08:41:02
I have looked but can't find a way to access the Audio Output Routes so i can detect if the audio is coming out via AirPlay. This is what i found in the Documentation for iOS 5.0 kAudioSessionOutputRoute_AirPlay Discussion These strings are used as values for the kAudioSession_AudioRouteKey_Type key for the dictionary associated with the kAudioSession_AudioRouteKey_Outputs array. I can't find a way to get access to the kAudioSession_AudioRouteKey_Outputs array. Thanks avf Even if Bassem seems to have found a solution, for completion's sake, here's how to detect whether the current output route

How to generate audio wave form programmatically while recording Voice in iOS?

拟墨画扇 提交于 2019-12-04 07:46:52
问题 How to generate audio wave form programmatically while recording Voice in iOS? m working on voice modulation audio frequency in iOS... everything is working fine ...just need some best simple way to generate audio wave form on detection noise... Please dont refer me the code tutorials of...speakhere and auriotouch... i need some best suggestions from native app developers. I have recorded the audio and i made it play after recording . I have created waveform and attached screenshot . But it

Audio Session Services: kAudioSessionProperty_OverrideAudioRoute with different routes for input & output

﹥>﹥吖頭↗ 提交于 2019-12-04 04:06:38
I'm messing around with Audio Session Services. I'm trying to control the audio routes setting AudioSessionSetProperty: kAudioSessionProperty_OverrideAudioRoute as kAudioSessionOverrideAudioRoute_Speaker . The problem is that it changes the route both for input and output. What I want is to have input set from headset's mic, and output by speakers. Any ideas? Ty! You can do this in iOS 5 with the properties: kAudioSessionProperty_InputSource kAudioSessionProperty_OutputDestination For the possible values (what sources \ destinations are available on the device) use AudioSessionGetProperty with

What are the system sound ids for the new keyboard clicks in iOS 10?

笑着哭i 提交于 2019-12-03 17:41:24
问题 General I'm developing a third party keyboard and am currently trying to mimic the new keyboard clicks that Apple introduced in iOS 10b4. Current Situation The regular click sound can be played using AudioServicesPlaySystemSound(1104) but I can't seem to find the System Sound IDs for the two new other sounds. I've found the location of their .caf equivalents but those are way too loud to use, even after adjusting their volume using AVAudioPlayer . Question Is it possible to obtain the system

What are the system sound ids for the new keyboard clicks in iOS 10?

筅森魡賤 提交于 2019-12-03 06:59:09
General I'm developing a third party keyboard and am currently trying to mimic the new keyboard clicks that Apple introduced in iOS 10b4. Current Situation The regular click sound can be played using AudioServicesPlaySystemSound(1104) but I can't seem to find the System Sound IDs for the two new other sounds. I've found the location of their .caf equivalents but those are way too loud to use, even after adjusting their volume using AVAudioPlayer . Question Is it possible to obtain the system sound ids of the new click sounds? Extra If anyone wants the .caf file paths for personal use, here

Receiving kAUGraphErr_CannotDoInCurrentContext when calling AUGraphStart for playback

∥☆過路亽.° 提交于 2019-12-03 04:07:58
I'm working with AUGraph and Audio Units API to playback and record audio in my iOS app. Now I have a rare issue when an AUGraph is unable to start with the following error: result = kAUGraphErr_CannotDoInCurrentContext (-10863) The error occurred unpredictably when we try to call AUGraphStart which is set up for audio playback: (BOOL)startRendering { if (playing) { return YES; } playing = YES; if (NO == [self setupAudioForGraph:&au_play_graph playout:YES]) { print_error("Failed to create play AUGraph",0); playing = NO; return NO; } //result = kAUGraphErr_CannotDoInCurrentContext (-10863)

memory leak in AudioToolbox library AVAudioPlayer

孤人 提交于 2019-12-01 12:15:57
Is there a memory lead issue with the AVAudioPlayer object? I'm getting a memory leak when using AVAudioPlayer in the simulator. It doesn't matter how I created the AVAudioPlayer. I've used initWithContentsOfURL and InitWithData . Below is a snippet of the code. Full project @ Github https://github.com/docchang/MemoryLeakAVAudioPlayer NSError *error; NSURL *playerURL = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"Bell" ofType:@"m4a"]]; self.playerWithURL = [[AVAudioPlayer alloc] initWithContentsOfURL:playerURL error:&error]; if (!playerWithURL) { NSLog(@"no %@.%@: %@",@

memory leak in AudioToolbox library AVAudioPlayer

浪尽此生 提交于 2019-12-01 11:30:34
问题 Is there a memory lead issue with the AVAudioPlayer object? I'm getting a memory leak when using AVAudioPlayer in the simulator. It doesn't matter how I created the AVAudioPlayer. I've used initWithContentsOfURL and InitWithData . Below is a snippet of the code. Full project @ Github https://github.com/docchang/MemoryLeakAVAudioPlayer NSError *error; NSURL *playerURL = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"Bell" ofType:@"m4a"]]; self.playerWithURL = [[AVAudioPlayer