[iPhone SDK] Playing a timed sequence of sound files

I need to play a timed sequence of sound files, meaning one file after another (potentialy overlapping) with a predefined amount of time between each file (without blocking the UI). I know I can use a thread pool and timers to accomplish it but is that the best way?

Hi,
Im having a similar problem and i was wondering if you were able to get a solution??
Thanks for your help.

Similar Messages

  • Tiny sound file could not be played.

    Hi.
    Why could not play the tiny sound file? (such as mp3 or wav files of 500ms duration)
    It worked fine with iPhone SDK 2.1, but not with iPhone SDK 2.2
    Of course, normal sound file(i.e, about 3 seconds ) works normally.
    And all codes have not any errors, just voice is not heard.
    I am using Audio Queue Services to play sound file.
    Isn' it a buf of iPhone SDK 2.2?

    Thank you for you reply - much appreciated.
    I am a bit confused - if I do not have a player installed, how come that everything is OK when I use Google Chrome as a browser?
    Many thanks,
    Jimmy

  • IPhone SDK: access outside the sandbox?

    In reading the docs for the iPhone SDK the sandbox aspect makes it sound like it will be impossible to create utilities that manipulate the system, other apps files, etc. Has anyone gotten a better read on this?
    For example if you wanted to build something that would crawl the filesystem (e.g. a backup tool), how would you do it?

    I don't know about the file system... but you can access pictures from the photos and addresses from the address book (music?) so some sort of rudimentary backup could happen... but then, if you can only backup to the same hard drive you are using it's not much use.

  • Can't preview sound files

    I can't audition sound files in the little preview application. It's not grey, the button changes from play to stop, but the sound file won't play. It only plays if I drop it on the time line. Got any suggestions?

    So glad it helped you!  I know what you mean about Adobe.
    Take Care!
    Tannia Elsworth
    Senior Instructional Technologist,
    Training Services
    Products & Support
    Amadeus North America, Inc.
    T: 1 305 499-6522
    F: 1 305 499-6964
    [email protected]
    Amadeus e-University® Website
    Amadeus e-University® Blog
    568568568568 <[email protected]>
    To
    Tannia Elsworth <[email protected]>
    cc
    bcc
    Subject
    Captivate 4 can't publish or preview files/sound layers
    appear black
    568568568568 <[email protected]>
    Please respond to :
    [email protected]
    06/24/2009 04:01 PM
    tannia: Thanks for your post. I have been struggling with this issue for
    over a year. I have a serious love/hate relationship with Adobe. If it
    weren't for folks like you, I'd swear off any and everything they make.

  • How to run a sound file from a remote location?

    Hello i am Parikshit and am preparing a project on Network Player which will play the files playing on server i.e sound files may be a song or any educational stuff.I have constructed the player and now i want to take it to the LAN or network level all i need to know is the basic idea about what should be done to establish the connection between 1 SERVER and 60 or more clients. My player is a stand alone application.

    >
    ..what should be done to establish the connection between 1 SERVER and 60 or more clients. >It looks as though this app. needs RTP streaming. I have not experimented with streaming, but you might use the JMF to do it, and start reading about it here.
    [http://java.sun.com/products/java-media/jmf/2.1.1/guide/RTPRealTime.html]

  • I purchased a movie from iTunes and when i try to play it on my mac or iphone its just black and has no sound...

    I purchased a movie from iTunes and when i try to play it on my mac or iphone its just black and has no sound...
    help please!

    Are you going to Movies - Purchased or Computers - Movies ?
    If you go to iTunes Store  on your computer - Quicklinks - Purchased. Is it showing up there?
    Is this a purchase or a rental?

  • IPhone SDK (Beta 5) - AudioQueue Problem playing MP3

    Dear community,
    i have a problem using the iPhone SDK (Beta 5). I want to playback a simple MP3-file. So i checked a lot of examples, read documentation and found a least the "AudioQueueTest" example. This is an simple example which is able to play MP3, WAV, ... from the command line. I ported the example to a simple application on the iPhone. Now the problem:
    If i playback a WAV file in the iPhone simulator, everything works fine. If i want to playback an MP3 file, it doesn't work and i don't know why. I stepped through the debugger and found out that the application freezes at the command "AudioQueueNewOutput".
    Do you have the same problem? What i am doing wrong? Is it no possible to create a background thread playing back a local MP3 file?
    Thank you!

    Did you get PCM recording on actual iPhone hardware? With Beta5, my PCM recording works fine in the simulator, but on the hardware, all the buffers I receive contain only 4 bytes of audio data!
    Here's my source code - if anyone can spot anything wrong, I'd be enormously grateful!
    #import "AudioAppDelegate.h"
    #import "AudioViewController.h"
    #import "AudioToolbox/AudioQueue.h"
    #define BUFFER_CT 4
    #define BUFFER_BYTES 8192
    AudioQueueRef audioInQueue;
    static void AudioInCallback(void* aqData,AudioQueueRef aq,AudioQueueBufferRef buffer,const AudioTimeStamp* startTime,UInt32 numPackets,const AudioStreamPacketDescription* desc)
    OSStatus result;
    printf("received %d bytes\n",buffer->mAudioDataByteSize);
    result=AudioQueueEnqueueBuffer(audioInQueue,buffer,0,NULL);
    if(result)
    printf("AudioQueueEnqueueBuffer returned %d\n",result);
    static void StartAudio(void)
    OSStatus result;
    AudioStreamBasicDescription format;
    // 11KHz, 16-bit stereo
    memset(&format,0,sizeof(format));
    format.mSampleRate=11025;
    format.mFormatFlags=kLinearPCMFormatFlagIsSignedInteger | kAudioFormatFlagIsPacked;
    format.mFormatID=kAudioFormatLinearPCM;
    format.mBytesPerPacket=BUFFER_BYTES;
    format.mBytesPerFrame=4;
    format.mFramesPerPacket=format.mBytesPerPacket / format.mBytesPerFrame;
    format.mChannelsPerFrame=2;
    format.mBitsPerChannel=16;
    result=AudioQueueNewInput(&format,AudioInCallback,NULL,CFRunLoopGetCurrent(),kC FRunLoopCommonModes,0,&audioInQueue);
    printf("AudioQueueNewInput result was %d\n",result);
    for(int i=0;i<BUFFER_CT;i++)
    AudioQueueBufferRef buffer;
    result=AudioQueueAllocateBuffer(audioInQueue,format.mBytesPerPacket,&buffer);
    printf("AudioQueueAllocateBuffer result was %d\n",result);
    result=AudioQueueEnqueueBuffer(audioInQueue,buffer,0,NULL);
    printf("AudioQueueEnqueueBuffer to in result was %d\n",result);
    Float32 gain=1.0;
    AudioQueueSetParameter(audioInQueue,kAudioQueueParam_Volume,gain);
    result=AudioQueueStart(audioInQueue,NULL);
    printf("AudioQueueStart result was %d\n",result);
    }

  • My IPhone wont play sound

    My IPhone wont play sound. Works fine in a dock, but once I pull it out it stops playing. It wont play music or ring. It will only vibrate.
    I know the speakers work because it'll play for two seconds then stop playing once out of dock.

    No I did not this is with the switch on "on"

  • My iPhone wont play sound without headphones in

    My iPhone wont play any sound without headphones in the volume
    Buttons work but won't change sound my speaker won't play any sound at all

    i had the same problem and used a very small screwdriver, inserted carefully into the heaphone socket, to very gently push the microswitch at the bottom of the socket. i did this a couple of times and suddenly the sound works again.
    i think the button down there can get stuck and cause this problem, or maybe it was just a fluke... try it anyway- it worked for me!

  • IPhone (Cocoa Touch) Button that plays sound file on click?

    Hello.
    I am trying to create a button that, when clicked, it plays a given sound file in the app's filesystem.
    This is what I have set up thus far:
    Regular Rectangular button -> connected to NSObject Called "sounds" -> with the Event "playsound1" chosen as the event.
    I then wrote the class files, brought them into Xcode file project under classes, and now I'm staring at sound.h and sounds.m with no idea what to do next.
    I was able to create in a regular Mac OSX Cocoa, a button that plays the system beep using NSBeep. However, I don't know how to achieve this similar objective with using a given sound file in the iPhone Cocoa Touch.
    Thanks

    I have tried so many things. I'm so lost.

  • HT1926 Quicktime stuttering, MOV file plays fine on my iphone but play it in my PC the sound and video stutters. happened only after the last update. how to fix

    Quicktime stuttering, MOV file plays fine on my iphone but play it in my PC the sound and video stutters. happened only after the last update. how to fix?

    Hi Richmoller51,
    Welcome to Apple Support Communities.
    See this article for some troubleshooting steps that can help with video playback in iTunes or Quicktime:
    Troubleshooting iTunes for Windows Vista or Windows 7 video playback performance issues
    http://support.apple.com/kb/ts1718
    Best,
    Jeremy

  • What do i do about my Iphone not playing sound when it plays it only vibrates.... HHEELLPPP!!!!!

    what do i do about my Iphone not playing sound when it plays it only vibrates.... HHEELLPPP!!!!!

    You have a dead phone.  Call one of the numbers on
    this page for the country you live in:
    http://support.apple.com/kb/HE57
    or use the Express Lane for iPhone to find out
    what your options are.

  • My iphone 5 has no sound out the speakers, all it will do is play out alarm tone, all sound were Working this morning, I have re set my phone many times

    My iphone 5 has no sound out the speakers, all it will do is play out alarm tone, all sound were Working this morning, I have re set my phone many times, please help

    Hey Amiee_19,
    Thanks for the question. It sounds like your Ring/Silent switch may be toggled:
    Ring/Silent switch - iPhone
    http://help.apple.com/iphone/7/#/iph3bd01398
    Ring/Silent switch
    Flip the Ring/Silent switch to put iPhone in ring mode or silent mode .
    In ring mode, iPhone plays all sounds. In silent mode, iPhone doesn’t ring or play alerts and other sound effects.
    Important: Clock alarms, audio apps such as Music, and many games play sounds through the built-in speaker, even when iPhone is in silent mode. In some areas, the sound effects for Camera and Voice Memos are played, even if the Ring/Silent switch is set to silent.
    For information about changing sound and vibration settings, see Sounds and silence.
    Use Do Not Disturb. You can also silence calls, alerts, and notifications using Do Not Disturb. Swipe up from the bottom edge of the screen to open Control Center, then tap the Do Not Disturb button . See Do Not Disturb.
    If the above does not resolve your issue, see this article:
    iPhone: No sound or distorted sound from speaker
    http://support.apple.com/kb/TS5180
    Thanks,
    Matt M.

  • I have many songs on my iphone that play half way through and then the sound just stops, when I look at my phone the song is still playing, just no sound. Any help on how I can fix this?

    I have many songs on my iphone that play half way through and then the sound just stops, when I look at my phone the song is still playing, just no sound. Any help on how I can fix this?

    Could be a defective SIM.  Try a new one from your carrier.

  • Can smbody please tell me what to do to my iPhone 4s, when playing music or ringer, the sound will just stop without stop it.. I am really getting tired of this...

    Can smbody please tell me what to do to my iPhone 4s, when playing music or ringer, the sound will just stop without stop it.. I am really getting tired of this...

    After updating to iOS6, I lost all sound for apps like YouTube, Netflix, games, and even notifications. The only time sound worked was during a phone call or when the head set was plugged in.
    I did a full back up and restore- sound restored but only for a day before the problem returned.
    Called Apple Support and was advised to do another restore, but this time restore it as NEW first, then do the restore from back up.
    Seemed to do the trick.
    Here are the instructions of what I was given- hopefully this will help you too:
    Here is a link about backing up your iPhone with iTunes.
    http://support.apple.com/kb/HT1766?viewlocale=en_US
    Once you back up your device you will want to restore it.
    You will need to have iTunes open on your computer screen.
    Please turn your iPhone off.
    Press and hold the Home Button.
    Continue to hold the Home Button as you plug you iPhone in to the usb cable.
    You will want to continue to hold the Home button until you get a screen with the message "device found in recovery mode".
    Please follow the prompts and restore device as NEW.
    once the restore is done you will have to set up the device and test the sound.
    If it works you will then need to restore the device from the back up to restore your user settings.
    You can find the instructions how to restore from back up also from the the link I provided.

Maybe you are looking for

  • Office web apps server (2013) certificate issue

    If the name of the farm is different from the name of the individual office web apps server machine is there any way to deploy office web apps server with a single domain SSL certificate?  My office web apps server is working, but reporting itself un

  • Additional field in FB03 and FBV0

    I want one additional field in the layout i.e. document amount, which is not available at present.  How to do.

  • Apple TV does not display Watch ESPN activation code

    Hi. I am trying to activate Watch ESPN on my Apple TV and the app does not display an Activation Code.  There is a big, blank space where one would logically think an activation code could fit but, unless it is written in black text on a black backgr

  • Specifying a range of sheets in a formula

    I am new to mac and numbers.  I have a new iMac with Maverick.  Is there a way to sum the same cell in a range of sheets without having to have add all of them separately?  In other words, a way to specify a range of sheets?  Or, pehaps specify a nam

  • Can't open saved tiffs or jpegs in Elements ( was Ken)

    in elements I try to save to jpeg or tiff but the resultant file won't open in elements but will open in windows photo viewer