How to play sounds on iphone?

I'm embeding some sounds in my flash file.  Is there any way to improve the loading speed because when buttons are pressed it takes extra time for the iphone to load the sounds?

have the sound as an external file

Similar Messages

  • How to play sound/text iphone app on a Mac computer at the iPhone simulator ?

    I'm wondering if there's a way to play an app that I downloaded in iTunes written for iOS 3.2 and higher which only involves text/images and sound (no fancy accelerometer etc) at the iPhone simulator which I run on my Mac computer.

    http://www.gadgettrak.com/products/iphone/
    Basic troubleshooting steps  
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 
    Got problems with your Apple iDevice-like iPhone, iPad or iPod touch? Try Troubleshooting 101

  • How to play sound in servlet program

    How to play sound when a page is gernerated? Thank you for any suggestion.

    Why would you want to do that? Remember that the servlet runs on the web server, which is probably in a room full of computers. Nobody will be there to hear it, and if somebody does hear it they will just think it is a problem.
    Perhaps you wanted to play a sound when the page is loaded in the browser? That's an HTML/Javascript/browser question that might get an answer in a forum about those topics.

  • Playing sound on iPhone

    Hi guys,
    I'm trying to play sounds on iPhone but when I installed my IPA, no sounds are playing. Does the Packager for iPhone already support playing sounds?
    Cheers,
    Anthony

    Hi Anthony,
    Sounds are supported. The only issue I had whit sounds was when the app was interrupted
    by a call. See following thread: http://forums.adobe.com/thread/743983?tstart=0
    Apart from this issue (which I wasn't able to solve yet) sounds worked fine for me.
    Cheers,
    Fabian

  • How to play sound after clicking on an object?

    Can anyone explain me how to play a sound in java when I click on a particular object? I have read lots of threads but couldn't find anything. All I want is a short sound(3,4 seconds) to be played each time I click on an object. I know I need to use Sound API but I cannot find anything helpful
    Thanks in advance

    flounder wrote:
    ProGenius wrote:
    I have read lots of threads but couldn't find anything.
    [I found lots of info|http://lmgtfy.com/?q=java+audioclip]
    that is knowing you can use audioclip. Even searching for "java sound tutorial" gives many good resources, including the sun trail:
    http://java.sun.com/docs/books/tutorial/sound/index.html

  • How to play sound in midlet midp1.0

    how to play a sound (wav format) in midp1.0?
    help needed regarding nokia api.

    well i think ur specified location might be wrong.
    also check out some other ways:
    i hope this might help u.
    1.
    import javax.microedition.lcdui.*;
    import javax.microedition.media.*;
    import javax.microedition.media.control.*;
    import java.io.*;
    import java.util.*;
    public class mainsound {
    public Player player;
    public mainsound(String s){
    try{
    InputStream is = getClass().getResourceAsStream(s);
    player = Manager.createPlayer(is,"audio/AMR");
    player.addPlayerListener(new Listener());
    player.prefetch();
    catch(Exception e){System.out.println("Media Error" + e);}
    class Listener implements PlayerListener {
         public void playerUpdate(Player p, String event, Object eventData) {
              if (event == END_OF_MEDIA) {
              try {
              p.start();
              } catch (MediaException me) { }
    2.
    public void soundview()
    byte abyte0[]=a("024A3A45D0040029286185985504D04D06186987107107106185985504D0450710690610610000");
    Sound sound = new Sound(abyte0, 1);
    sound.init(abyte0, 1);
    sound.play(1);
    public static byte[] a(String s1)
    s1.toUpperCase();
    byte abyte0[] = new byte[s1.length() / 2];
    int i1 = 0;
    int j1 = 0;
    for(int l1 = s1.length() / 2; l1 > 0; l1--)
    int k1;
    if(s1.charAt(j1) >= '0' && s1.charAt(j1) <= '9')
    k1 = s1.charAt(j1) - 48;
    else
    k1 = (s1.charAt(j1) - 65) + 10;
    k1 *= 16;
    if(s1.charAt(j1 + 1) >= '0' && s1.charAt(j1 + 1) <= '9')
    k1 += s1.charAt(j1 + 1) - 48;
    else
    k1 += (s1.charAt(j1 + 1) - 65) + 10;
    abyte0[i1] = (byte)k1;
    j1 += 2;
    i1++;
    return abyte0;

  • How to play sounds on Frames

    I'm been working with sounds on applets and is pretty easy play sounds and build funny stuff.
    But now i need to play sounds on a Frame (Application) and i realize that sounds can be load only on applets(so far thats what i know)
    If anyone knows how play sounds without an applet please let me know this is a huge issue for me.
    thanks in advance.
    Andrey

    See the following thread for a sample program:
    http://forum.java.sun.com/thread.jsp?forum=54&thread=97984

  • 1.How to play SWF on iPhone?

    I really want to play it on my iPhone, I do like the flash!
    I like it, and feel it a must to see it again and again!
    But I can't enjoy the excellent flashes on my iPhone, as the iPhone doesn't support *swf format. I know a converter which can help me to clear all these irritation and fulfill my aspiration, I want to know the brand of the converter. Anyone who can show me how to use it step by step will be appreciated.

    There are 3 Methods to Play Flash SWF on iPhone 4:
    1  Method to Play Flash on iPhone 4: Jailbreak. You need to jailbreak  your iPhone 4 iOS.
    Here is the procedure  flow chart: install OpenSSH -> download, install and set up Cyberduck for  Mac or WinSCP for Windows -> download Frash-0.02.deb file -> navigate to  /var/root/Media directory and create a folder named “Cydia” -> create  another folder named AutoInstall inside Cydia -> copy the Frash-0.02.deb  file to folder AutoInstall -> restart and enjoy Flash on your iPhone 4.
    2 Method to Play Flash on iPhone 4: Apple App. You need to have an  Apple-approved app Skyfire.
    Skyfire is a  Apple-approved application functions as a mobile browser tool that converts  Flash content to HTML5, will allow your iOS device to stream Flash videos from  the Web. You can easily find it in iTunes App Store.
    3  Method to Play Flash on iPhone 4: Convert to Video. You need to have a Flash SWF to Video Converter.Play Flash SWF files on  iPhone 4 indirectly by converting it to regular video/audio/image formats,  which are acceptable for iPhone 4. Do not worry about the Flash animation  effect because it will be retained 100% in the output MP4 or JPG format and you  can even make it better! The optional conversion mode and the advanced output  profile settings are the key. Let us have a look at how it works!
    Step  1:  Choose the iPhone 4 format MP4 with different resolution plans from Style drop-down menu.
    Step  2:  Choose the conversion mode, customize capture and profile settings to guarantee  a best-quality iPhone 4 format output.
    Step  3:  You can also convert the Flash file to other popular video, audio or image  formats and click Convert to start.  The SWF to iPhone 4 conversion will start officially in a couple of seconds  after the performance testing.
    Step  4:  Import the converted MP4 video to your iPhone 4 via iTunes and enjoy!

  • How to play sound when a form is opened

    Hi ,
    I do have a problem in playing sound, by getting values from a properties file.
    The property file has values
    tone1PitchkHz=1.2
    tone1DurationSec=0.1
    tone1SeparationSec=0.1
    tone1VolumePct=80Using these values I want to play a sound when I open a form.I tried few methods but not successful. Can anyone help

    Google is your friend.
    [http://www.cs.princeton.edu/introcs/15inout/StdAudio.java.html]
    [http://www.cs.princeton.edu/introcs/21function/Tone.java.html]
    db
    edit And what does this have to do with Swing anyway?
    Edited by: Darryl.Burke

  • How to play sound from a proprietary format

    I would like to convert a small java applet to flex as3
    The current applet connects  to a remote server to receive audio in a proprietry compressed and encrypted format using a tcp connection (the data is encoded as text)
    It then decrypts, decompresses the audio and uses java sound to play it.
    Looking at the as3 classes all I could find is a sound object that seems to only play mp3 audio and a urlrequest object that is used to download (what about streaming) mp3 audio from a server.
    I am looking for a simple sample that will incorporate retreving data from a server (perhaps using the http service) into e.g. a byte array, and playing pcm audio from a byte array.
    Ideally it would be a small set of files (1?) that I can compile using mxmlc; I am not good with IDEs, linux command line is my thing
    Thanks

    Maciek, many thanks!
    Here's sample code showing how to stream audio in arbitrary format and play it
    // File: Player.as
    // When running from local storage (during developement)
    // compile mxmlc -use-network=false Player.as
    // otherwise loading the local raw audio file fails with error 2148
    // The input audio format is 16 bit little endian 44.1Khz mono.
    package
        import flash.display.Sprite;
        import flash.text.TextField;
        import flash.media.Sound;
        import flash.media.SoundChannel;
        import flash.events.Event;
        import flash.events.SampleDataEvent;
        import flash.net.URLRequest;
        import flash.net.URLStream;
        public class Player extends Sprite
            private var sourceUri:String = "audio.44.raw";
            private var sound:Sound = new Sound();
            private var soundChannel:SoundChannel = new SoundChannel();
            private var playing:Boolean;
            private var stream:URLStream;
            private var request:URLRequest;
            private var statusLine:TextField = new TextField();
            public function Player()
                statusLine.width = 400;
                statusLine.text = "Starting...";
                addChild(statusLine);
                getAudio();
                start();
            public function getAudio():void
                stream = new URLStream();
                request = new URLRequest(sourceUri);
                try {
                    stream.load(request);
                } catch (error:Error) {
                    statusLine.text = "Failed to load " + request.url + " : " + err!
            private function playCallback(event:SampleDataEvent):void
                var value:Number;
                var i:int, cnt:int;
                // Input is 16bit PCM, each sample occupies 2 bytes
                cnt = stream.bytesAvailable / 2;
                if (cnt >= 8192 || playing) {
                    playing = true;
                    statusLine.text = request.url + " : playing...";
                    if (cnt > 8192)
                        cnt = 8192;
                    for (i = 0; i < cnt; i++) {
                        // Convert 16bit little edndian pcm samples to numbers
                        value = stream.readUnsignedByte() + 256 * stream.readUnsign!
                        if (value > 32767)
                            value -= 65536;
                        value /= 10000; //Adjust the volume
                        // Input is mono, write to both channels
                        event.data.writeFloat(value);
                        event.data.writeFloat(value);
                    if (cnt < 2048)
                        statusLine.text = request.url + " : done...";              !
                else {
                    // Wait until enough data is bufferred
                    statusLine.text = request.url + " : buffering...";
                    for (i = 0; i < 8192; i++) {
                        event.data.writeFloat(0);
                        event.data.writeFloat(0);
            private function start():void
                soundChannel.stop();
                sound.removeEventListener(SampleDataEvent.SAMPLE_DATA,playCallback);
                playing = false;
                sound.addEventListener(SampleDataEvent.SAMPLE_DATA,playCallback);
                soundChannel = sound.play();

  • How to play sound file on HTML

    I have successfully able to record voice and save it into the database and replay it. Also able to store an external wave file and replay it using forms.
    I need to play the same soundfile from database on HTML using PL/SQL.
    Would appreciate if someone can support my problem. I need to know the package to read and play the database column storing sound.
    Thanks and Regards,
    Vipul

    Hi Vipul,
    Great to know that you could record a sound file and save it in Oracle and play it through Forms. We are having a similar requirment. Could you please list down the steps of exactly how did you achieve this ?
    It would be of great help to us if you can clear us the same. Thanks in Advance.
    Thanks,
    Karthik.

  • How to play MP3s on IPhone without using QuickTime

    I listen to a lot of audio lectures that come in an email with a direct link. My phone will automatically open these and play them using QuickTime, but QT doesn't have an option to bookmark. I don't typically finish the full lecture in one sitting so I need to be able to bookmark my place. iTunes will not work for me for this as I am not always able to take the several extra steps necessary to download to my computer and then wait for them to show up on my phone through icloud which sometimes takes days. Always hours. Is there another app that will do this?  Audible is a good example of how I would like it to work.

    Yes I have, thank you.  And google. 

  • How to play sound input thru speakers

    Is there any way to play the audio stream coming in on the Line In port to the computer's speakers? It seems intuitively obvious that it should be possible and easy, but I can't find anything which enables it. I have the output volume at a reasonable level, and the "mute" controls in the Sounds control panel are not set. Still nothing!
    Thanks.

    I agree that it should be simple, but it is not. In Mac OS X, there is no setting to play-through the audio input to the audio output. You have to run some program, such as an audio recording application, and set that program to play-through the sound.
    Fortunately, if all you want is to play-through the sound, there is a simple little program that does just that one function. It's called LineIn.
    http://www.versiontracker.com/dyn/moreinfo/macosx/18987

  • How to Play Sound on the Hour - not Voice

    I miss the ability I had in Classic to play a sound on the hour and half hour. In OSX, it seems that only having a voice announce the time is an option - unless I'm missing something.
    Does anyone know of a workaround? I hate the voice thing and would rather listen to a pleasant sound.
    Thanks in advance for any help offered.

    Install the recently released OS X version of Sounds4Fun (www.macupdate.com or www.versiontracker.com.) Once the premier OS 9 utility for assigning sounds to system actions including assigning sounds to the time (1/4, 1/2, 3/4, top.)
    Also can assign sounds to dozens of other actions.
    Why reward points?(Quoted from Discussions Terms of Use.)
    The reward system helps to increase community participation. When a community member gives you (or another member) a reward for providing helpful advice or a solution to their question, your accumulated points will increase your status level within the community.
    Members may reward you with 5 points if they deem that your reply is helpful and 10 points if you post a solution to their issue. Likewise, when you mark a reply as Helpful or Solved in your own created topic, you will be awarding the respondent with the same point values.

  • How to play sound in Palm?

    Hello, everyone. I'm a beginner of Palm Application by using J2ME.
    I cant play a sound or a simple tone (Java Sound) in a Palm Emulator...
    Does my emulator not up-to-date? Or do I need to do something before importing that *.prc file?
    Is there any good website I can get more info that?
    Pls.

    Palm does not do its own VM and Sun has not released a Palm VM in a long time.
    http://www.palmos.com/dev/tech/java/
    http://java.sun.com/products/midp4palm/
    In other words, you will probably have a buy a commercial VM that supports this.
    Note: Kada Systems was just aquired by Esmertec AG. Both of these vendors had emphasized remote access (typically for business), as opposed to multimedia.

Maybe you are looking for