simulator « sound « iPhone iPad Media Q&A

Home
iPhone iPad Media Q&A
1.animation
2.audio
3.AVAudioPlayer
4.box2d
5.cocos2d
6.CoreGraphics
7.CorePlot
8.Flash
9.graphics
10.icon
11.image
12.photo
13.plot
14.sound
15.video
iPhone iPad Media Q&A » sound » simulator 

1. Trying to play sound through iPhone Simulator    stackoverflow.com

I'm trying to play a sound file from an iPhone program. Here's the code:

NSString *path = [[NSBundle mainBundle] pathForResource:@"play" ofType:@"caf"];
NSFileHandle *bodyf = [NSFileHandle fileHandleForReadingAtPath:path];
NSData *body = [bodyf availableData];
NSLog( @"length of play.caf %d",[body ...

2. Sound not working in iPhone Simulator?    stackoverflow.com

Somehow my iPhone Simulator is unable to play sounds. First an app I'm working on using AudioServicesPlaySystemSound() stopped working.. I spent a while debugging this but sound is still working ...

3. Using system Sound to play sounds    stackoverflow.com

Here is the code:

-(void)stop
{
    NSLog(@"Disposing Sounds");
    AudioServicesDisposeSystemSoundID (soundID);
    //AudioServicesRemoveSystemSoundCompletion (soundID);
}

static void completionCallback (SystemSoundID  mySSID, void* myself) {
    NSLog(@"completion ...

4. Sound on simulator but not device    stackoverflow.com

I'm using the following to play an m4a file:

NSString *path = [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent: fileName];
SystemSoundID soundID;
NSURL *filePath = [NSURL fileURLWithPath:path isDirectory:NO];
AudioServicesCreateSystemSoundID((CFURLRef)filePath, &soundID);
AudioServicesPlaySystemSound(soundID);
It works fine on the simulator but I hear ...

5. Sound plays in iphone simulator with breakpoint, but fails to play without breakpoint    stackoverflow.com

I am trying to get a sound to play in the iPhone Simulator (using 3.1 SDK). When I add a breakpoint, and step through the code in GDB, the sound ...

6. How to record/obtain sound samples 40ms iLIBC beep/silence    stackoverflow.com

I want to record/Obtain a 40 ms sound sample which produces a BEEP (iLIBC). Does anyone know of any tool which allows me to do this?

7. Turn off sound in iPhone Simulator    stackoverflow.com

Is there an option to turn off sound, in iPhone Simulator? Or to adjust volume?

8. Can't hear System Sound in simulator or on device    stackoverflow.com

I can't seem to get the AudioServices sounds to play, either on the device or in the simulator. Here is my code:

NSString *sndPath = [[NSBundle mainBundle] pathForResource:@"click" ofType:@"aiff"];
SystemSoundID soundID;
AudioServicesCreateSystemSoundID((CFURLRef)[NSURL fileURLWithPath:sndPath], &soundID);
AudioServicesPlaySystemSound(soundID);
AudioServicesDisposeSystemSoundID(soundID);
I ...

9. How to turn off the sound of App?    stackoverflow.com

I want to turn off the sound of a App , because I have a setting of sound , when I switch the sound to off , I want the App ...

10. iOS Simulator Sound    stackoverflow.com

Is there a way to tell the iOS simulator which audio device connected to your computer you want it to use? The simulator seems to pick whatever audio device is ...

11. playing a sound doesn't work on iPhone    stackoverflow.com

I've added a sound to my app. In my .h i've added:

CFURLRef soundFileURL;
SystemSoundID soundFile;
in my viewDidLoad in my .m:
soundFileURL = CFBundleCopyResourceURL(
        CFBundleGetMainBundle(),
   ...

12. ios: system sound played in the simulator but not on the iphone    stackoverflow.com

I've got the following code:

 soundFilenames = [[NSArray alloc] initWithObjects:@"Alarm Clock Bell.caf", @"Bark.caf", @"Cartoon Boing.caf", @"Chimpanzee Calls.caf", @"School Bell Ringing.caf", @"Sheep Bah.caf", @"Squeeze Toy.caf", @"Tape Rewinding.caf", nil];

...

-(void)playSound {
    ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.