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
0
votes
1 answer

Objective-C background music

I want to know how to add background music to my app. My code so far: - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. NSURL* musicFile = [NSURL…
MatisDS
  • 91
  • 1
  • 11
0
votes
2 answers

Xcode - AudioToolbox/AudioToolbox.h file not found

I'm getting started with Xcode and a i'm studying the way to play sound. I have implemented a small project that play a sound using AudioToolbox framework. Everything was fine: i could Build and run normally, the application also functioned normal…
0
votes
3 answers

Use of undeclared identifier

I'm trying to use this project which is a synthesizer for Objective-C for an iPhone application I'm building. However, I'm having trouble with the MHAudioBufferPlayer class. In the MHAudioBufferPlayer.m class, I'm getting a bunch of Use of…
varatis
  • 14,494
  • 23
  • 71
  • 114
0
votes
1 answer

Play 2 sounds one after the other using AudioToolbox

I have this sound playing after pressing one button using AudioToolbox. -(void) onButtonPressSound { NSString *soundPath = [[NSBundle mainBundle] pathForResource:@"sound" ofType:@"m4a"]; SystemSoundID…
Mihai
  • 131
  • 1
  • 1
  • 10
0
votes
1 answer

AVFoundation not playing sound

I have always used audio toolbox to play my sounds, but users have saying there is no sound, this is because when you are on silent it doesnt play. I have tried many times to swap instead to av foundation but it never works for me. this is the code…
rexr
  • 89
  • 11
0
votes
1 answer

Errors while trying to play sounds with AudioToolbox in Xcode 4.6

This is an issue I have been trying to fix for a while. I get an error in my header file with an app I am trying to make for iOS using the AudioToolbox framework. Here is the code: #import #import #import…
0
votes
2 answers

AudioServicesPlaySystemSound sound not audible when called from IBAction method

I'm having a problem with AudioServicesPlaySystemSound in my iOS app. I have a method defined to play a system sound. When I call the method from viewDidLoad, I can hear the sound play, but when I call it from a button handler, I do not hear the…
Avalanchis
  • 4,500
  • 3
  • 39
  • 48
0
votes
1 answer

Create SystemSoundID failed iOS - OSStatus = 0

I got a very similar problem like here: link In ViewController.h file I added this: #import #include @interface ViewController : UIViewController @property SystemSoundID outSystemSoundID1; @end and in…
mrlowalowa
  • 23
  • 6
0
votes
1 answer

how do I get artwork of mp3 using AudioToolbox framework?

I'm trying to get artwork of the mp3 file using these lines of code. CFDataRef AlbumPic= nil; UInt32 picDataSize = sizeof(picDataSize); err =AudioFileGetGlobalInfo(kAudioFilePropertyAlbumArtwork, 0, NULL, &picDataSize, &AlbumPic); …
andrey
  • 671
  • 1
  • 9
  • 20
0
votes
0 answers

Outputting Input from Line-In Input on iOS

I have a project where I need to output through the device's speakers the input that comes in through either a line-in input, or an accessory connected to the 30-pin connector. Whilst working on the line-in input, I'm finding it hard to detect…
ac3xx
  • 63
  • 1
  • 5
0
votes
1 answer

how to read header-chunks from a CAF-file using core-audio/audiotoolbox

i'm trying to read a CAF-file on OSX, using AudioToolbox's Extended Audio File API. opening the file works fine, however, i need to access the UUID chunk, and i cannot find any reference on how to do that (or how to access any header-chunk of the…
umläute
  • 28,885
  • 9
  • 68
  • 122
0
votes
2 answers

How to stop AudioQueue?

i am using text to speech, starting audio works fine, but i cant stop it. here is how i do start audio: dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, (unsigned long)NULL), ^(void) { [[self view]…
brush51
  • 5,691
  • 6
  • 39
  • 73
0
votes
0 answers

Uploading audio datas to a server

I'm trying to send audio datas from iphone to a server, via a POST request. I don't want to use a file, but directly send datas to the server. I use AudioToolbox to get datas from microphone into a buffer, then i send this buffer to a server. Datas…
bytheway
  • 11
  • 2
0
votes
1 answer

iOS: Unable to play my sounds when silent mode on

So I've already gone through most of the relevant question on SO that I could find, yet I still can't get my audio playing while silent. I believe that it's probably a small error I'm making. I'm trying to play a small alert sound. This is the…
Rob Caraway
  • 3,856
  • 3
  • 30
  • 37
0
votes
1 answer

how to convert (aiff) files to any format that runs on windows OS(.asf, .asx, .avi, .wav, .wax, .wma, .wm, .wmv )?

i'm working on an iPhone project and wants to save mp3 files instead of car, i wrote this code to save record files in .caf extensions: NSMutableDictionary* recordSetting = [[NSMutableDictionary alloc] init]; [recordSetting setValue :[NSNumber…
chostDevil
  • 1,041
  • 5
  • 17
  • 24
1 2 3
24
25