Questions tagged [audiotoolbox]

The Audio Toolbox framework provides interfaces for recording, playback, and stream parsing. In iOS, the framework provides additional interfaces for managing audio sessions.

Audio Toolbox Framework Reference

366 questions
2
votes
1 answer

Xcode 6 - Press button to play sound

Looking for some help trying to get my button to play sound. I've looked up over 50 tutorials but all of them are outdated and do not work with the new Xcode. Does anyone have a good resource to learn? Fairly new to Objective-C. I've looked through…
Bryner
  • 397
  • 3
  • 18
2
votes
1 answer

iOS Simulator not playing sound effects

I know this question has been asked 999 times. All the answers say to go to System Preferences > Sound > Sound Effects and to make sure "Play user interface sound effects" is checked, or to uncheck and recheck it. This does not work for me. I have…
aanrv
  • 2,159
  • 5
  • 25
  • 37
2
votes
1 answer

iOS: Is there a performance difference between using playInputClick vs the (1104) sound file with audio toolbox?

Apple recommends using playInputClick in custom keyboards to simulate a click sound. It's easier to implement AudioServicesPlaySystemSound(1104); so my question then becomes, does playInputClick provide better performance or is it the same thing?
2
votes
0 answers

AudioServicesPlaySystemSound fails first time for key press sound?

I am using straight calls to the system sounds, such as: AudioServicesPlaySystemSound(0x450) to get the a button press to sound like a standard iOS keyboard click. It works mostly, except it seems that the first time a view appears, somehow the…
Electro-Bunny
  • 1,380
  • 2
  • 12
  • 33
2
votes
1 answer

AudioToolbox AUAudioFilePlayer properties description

I'm confused as to the following properties of AUAudioFilePlayer. The documentation from Apple is confusing at best: kAudioUnitProperty_ScheduleStartTimeStamp kAudioUnitProperty_ScheduledFilePrime kAudioUnitProperty_ScheduledFileRegion Can…
JackyJohnson
  • 3,106
  • 3
  • 28
  • 35
2
votes
1 answer

AudioToolbox AUGraph failure when connecting nodes error kAudioUnitErr_PropertyNotWriteable

I am trying to create an audio graph with a mixer and an io unit. The io unit will receive audio from the microphone and send it to the mixer, which will mix it with an external sound, and play it back out the speaker. I have created my audio graph…
shane
  • 1,742
  • 2
  • 19
  • 36
2
votes
0 answers

iOS - Crash in AudioToolbox when recording

We have a crash occurring in our iOS7-based iPhone app, but it seems to be very difficult to reproduce. A handful of our customers are experiencing it, and we are capturing as much info as possible from Crashlytics. I've attached a screenshot of…
svguerin3
  • 2,433
  • 3
  • 29
  • 53
2
votes
1 answer

AudioSessionGetProperty deprecated, how to know device is silenced

I'm trying to detect user's device is silenced or not ( button on the side of the phone ). I found this method to detect this, but AudioSessionGetProperty is deprecated in iOS7. - (BOOL)deviceIsSilenced { CFStringRef state; UInt32…
Magyar Miklós
  • 4,182
  • 2
  • 24
  • 42
2
votes
0 answers

AudioToolbox to play nsdata in download

I'm trying to play audio with audiotoolbox in xcode. I search for this but the documentation is too little. I want play nsdata while i download it from internet. I look this link:…
mrdaino
  • 331
  • 1
  • 4
  • 10
2
votes
1 answer

Change the duration of AudioServicesPlaySystemSound(kSystemSoundID_Vibrate)

I'm using AudioServicesPlayAlertSound(kSystemSoundID_Vibrate); How can I choose the duration of the vibration? I want only one short vibration, like the "click" from tapping a keyboard button.
jeff
  • 23
  • 1
  • 4
2
votes
1 answer

Writing a 32-bit Float Wav File Using Audio File Services

I'm trying to save off some raw PCM values by writing them to a WAV file using Xcode and AudioFileServices, however I am having difficulty writing just a simple sine wave to the file. Here's my code: // Set up output…
Sean Brown
  • 123
  • 8
2
votes
1 answer

EZAudio Custom AudioStreamBasicDescription is not working as I expect

WithEZAudio I want create mono light audioBufferList, as far as it can be. In past I achive 46 bytes per audioBuffer but with relative small bufferDuration. First thing first, if I use below AudioStreamBasicDescription for input and output…
Błażej
  • 3,617
  • 7
  • 35
  • 62
2
votes
1 answer

ios pjsip - play a sound during sip call

When I am on sip call, sometimes I want to send dtmf digits. To do this I created a custom dial pad which when a key is pressed should play a sound of that key, but it is not playing that sound during a sip call (when there is no call, sound is…
Sihad Begovic
  • 1,907
  • 1
  • 31
  • 33
2
votes
0 answers

is it possible to have level metering in AVQueuePlayer on iOS?

Using AVAudioPlayer I can get the volume in RMS or peak by calling peakPowerForChannel; unluckly I have an implementation using AVQueuePlayer, because the app need to continue playing in background. is it possible to have level metering in…
Stone Alessandro
  • 359
  • 3
  • 14
2
votes
1 answer

AudioBuffer to NSData

I manage to get samples from microphone with that tutorial. I minimalize metod processBuffer: to copy samples to audioBuffer. My question in, how can I convert AudioBuffer to NSData?
Błażej
  • 3,617
  • 7
  • 35
  • 62