I have a performance-intensive iPhone game I would like to add sounds to. There seem to be about three main choices: (1) AVAudioPlayer, (2) Audio Queues and (3) OpenAL. I’d hate ... |
I get a lot of noise during playback. The noise is not there when I play it on my mac, so it has to be an error with the AVAudioPlayer. Has ... |
I am using the AVAudioPlayer framework, and I have several sounds that play one at a time. When a sound is finished playing, I want the application to do something. ... |
I'm having an issue using AVAudioPlayer where I want to reset a player if it's currently playing and have it play again.
I try the following with no luck:
The sound plays once ... |
I want to use AVAudioPlayer to play short sounds... because I have more control than System Sound.
I have several buttons which are hooked up to play several different short sounds.
Each sound ... |
I want to use AVAudioPlayer to play M4p files from iTunes generator. I could use uiWebView to play it and it worked, but I want to put an image of my ... |
I am creating a alarm application.
I am using Audio Session in my main delegate class.
OSStatus result = AudioSessionInitialize(NULL, NULL, interruptionListenerCallback, self);
UInt32 category = kAudioSessionCategory_MediaPlayback;
result = AudioSessionSetProperty(kAudioSessionProperty_AudioCategory, sizeof(category), &category);
AudioSessionSetActive(YES);
I am ... |
|
I have a simple iPhone app with several sounds already playing. However, one in particularly won't. The code block I've hacked up is:
NSString *soundPath2 = [[NSBundle mainBundle] pathForResource:@"gameover" ofType:@"wav"];
NSURL ...
|
I would like to know from some iphone-Audio expert if there is a way to let a sound play through the line in of the microphone, or at least to play ... |
I'm calling playSoundFromBundle from the code below to play sounds (aif files). I have a sound that does a single click and then a fading sound. Both sounds are ... |
I am making an app for preschoolers with several mini-games. One of them involves finding "what is wrong" in the picture. For example if they press the kid playing in the ... |
I have written the following code:
-(void)runTimer
{
myTicker=[NSTimer scheduledTimerWithTimeInterval:0.5 target:self selector:@selector(showActivity) userInfo:nil repeats:YES];
myTicker = [NSTimer scheduledTimerWithTimeInterval:60.00 target:self selector:@selector(vibrate) userInfo:nil repeats:YES];
}
-(void)showActivity
{
NSDateFormatter ...
|
I'm using an AVAudioPlayer to play a mono AIFF file from my app's Documents directory.
On the simulator, [player play] returns YES and I hear the file playing. On the device the ... |
I'm just trying to get a simple mp3 player working. I'm getting an error that I don't really understand.
I have an instance of AVAudioPlayer declared in my h file and ... |
I use AVAudioPlayer to play an mp3 file to a user within my iPhone app. This all works fine and dandy. I even update a PLAY/PAUSED button depending on the state ... |
-(IBAction)playSound{ AVAudioPlayer *myExampleSound;
NSString *myExamplePath = [[NSBundle mainBundle] pathForResource:@"myaudiofile" ofType:@"caf"];
myExampleSound =[[AVAudioPlayer alloc] initWithContentsOfURL:[NSURL fileURLWithPath:myExamplePath] error:NULL];
myExampleSound.delegate = self;
[myExampleSound play];
}
I want to play a beep sound when a button is clicked. I had used ... |
I am planning on releasing 10 of my song recordings for free but bundled in an iphone app. They are not available on web or itunes or anywhere as of now.
I ... |
I want to play multiple songs with single object of AVAudioplayer, I put songs in table row , when user tap on row player view is open but when user ... |
Everybody knows the standard procedure to keep your app alive, after the user pressed the lock button (silent sound).
If I start a sound with AVAudioPlayer (before the iphone is locked), the ... |
I have a library of 16 short sound clips I need to be able to play in quick succession. I realized that creating and preparing AVAudioPlayer objects in real time ... |
Hey all,
I am implementing AVAudioPlayer to play audio and it works perfectly well while playing files locally stored in the PC.
But when i give the url of some audio file over ... |
In my application, I am displaying multiple images in rows and columns when i click on a image i will play corresponding sound using
someName = [someName stringByAppendingFormat:@".mp3"];
[audioPlayer stop];
NSURL *url = ...
|
I'm using AVAudioPlayer from iOS SDK for playing short sounds on each click in tableView rows.
I have manually made @selector on button in each row that fires up method playSound:(id)receiver {}. ... |
I am using a simple bit of code to play an audio file:
NSString *pathToMusicFile1 = [[NSBundle mainBundle] pathForResource:@"song" ofType:@"mp3"];
mySong1 = [[AVAudioPlayer alloc]initWithContentsOfURL:[NSURL fileURLWithPath:pathToMusicFile1] error:NULL];
NSLog(@"Song1 Loaded");
mySong1.numberOfLoops = -1;
mySong1.volume = 1.0;
[mySong1 play];
I ... |
I am having a tableView which lists the contents of a directory which includes jpg, pdf, zip, mp3, mp4, sql,.. files and even folders. For the next step, I am having ... |
I'm trying to use Apple's MixerHostAudio class to mix and play audio files specified by the user.
The class files can be found here: http://developer.apple.com/library/ios/#samplecode/MixerHost/Listings/Classes_MixerHostAudio_h.html
To make the MixerHostAudio class play ... |
I have a mp3 track at a URL http://mysite.com/MP3/track1.mp3.
Downloading it to a local path with NSURLConnection and NSDocumentDirectory.
I would like to start playing this track as soon as possible ... |
I have a bunch of sounds I want to play. Right now I'm using AVAudioPlayer. A new sound should start when the user clicks a button. The url ... |
I have a few single hit sounds(small sound effects) which I want to play when a button is pressed. Should I declare the player and then initialize the sound to the ... |
i am playing sound when user tap on the respected button.
i have 10 buttons with 10 audio files.
i am playing the selected sound by using the AVAudioPlayer
AVAudioPlayer *myaudio=[[AVAudioPlayer alloc]initWithContentsOfURL:[NSURL fileURLWithPath:[[NSBundle mainBundle]pathForResource:[sounds ...
|
how to know which song is playing in avaudioplayer
|
How can I play a custom, looping sound (from my app, while my app is open) while the iPhone is sleeping?
I'm using this code to play a audio file:
NSString *soundFilePath = ...
|
I have a button on a UIImagePicker overly , and I want it to make some sound when clicked.
To do so, I have in my project resources a sound in m4a ... |
I have 2 views in my app, that are identical, they just load in a different array of sound files to use with their respective AVAudioPlayer.
However, ON THE DEVICE ONLY, on ... |
I have 6 sounds on one view.
However I want it so that I can play more than one at once, So you tap sound 1 (sound 1 is playing) then sound ... |
My goal is to create a "Chirper" class. A chirper should be able to emit a procedurally generated chirp sound. The specific idea is that the chirp must be procedurally generated, ... |
I have 10 sounds in one view. And they all play, however only one sound can play at a time. I want it so you can tap the sounds you want ... |
Is it possible to switch sound output from built-in speaker/headphones to the earpiece? Standard Voice Memos app can do that for playing recoded audio notes.
|
I'd like to play multiple sound sequentially.
The sound data will be available via NSData.
(to be more precise, I'm going to play different sound whenever scrollViewDidEndScrolling is called, and stop previous sound ... |
Is there a preferred audio format to play voice recording?
play time is about 1-5secs.
AAC is considered bad for this?
I'm trying to play aac with AVAudioPlayer but having -1 error.
AVAudioplayer isn't suitable ... |
I am trying to play 6 seperate .mp3 sound files using instances of AVAudioPlayer.
The sounds are playing at the same time but they seem to be playing out of sync or ... |
Could someone help me with a function that fires multiple AVAudioPlayers at the same time? Right now I am trying to get a total of twelve AVAudioPlayers to fire at once ... |
I want to play a specified duration within a sound file on IOS. I found a method in AVAudioPlayer that seeks to the begining of the playing (playAtTime:) but i cannot ... |
i have a good experince with playing audio in general on iphone but i would like to have a way to play .RM files on iphone app .. i've tried the ... |
I've got a quite strange problem here.
I'm developing an IM software and need to play audio files recorded by another client on Android.
The same audio file I've got can be played ... |
Here is my code on button click
- (void)playButton:(id)sender
{
NSLog(@"Play Button Clicked!!!...");
audioPlayer = [self setUpAudioPlayer:[songs objectAtIndex:i]];
}
-(AVAudioPlayer *)setUpAudioPlayer:(NSString *)filename
{
NSLog(@"File name : ...
|
I have a "*.caf" file, I can play it, but I need progress of playing, and jump to any position of music track. How to implement it?
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. |