How to put buffer in dynamic sound(mp3 file)?

Hi,
like row sound we put buffer, like this
buffer = new SoundLoaderContext(65000);
_loop_snd = new Sound(new URLRequest(_mp3), buffer);
how can i put buffer in dynamic sound..as per your code where i can put buffer in below code..
any suggestion,
_dynamicSound = new Sound();
_dynamicSound.addEventListener(SampleDataEvent.SAMPLE_DATA, onSampleData);
the dynamicSound genrated from the row sound, means i modify the row sound.
Sorry for the english.
Thanks
Bechar

Didn't get exactly what you re trying to ask. But if you want to buffer an mp3 before playing you need to do something like this:
mp3File = new Sound();           
var context:SoundLoaderContext = new SoundLoaderContext(5000, false);     //Buffer audio for 5 seconds before playback
var songRequest:URLRequest = new URLRequest(songURL);     // Our song that we want to laod
mp3File.load(songRequest, context);
Is this what you re looking for?

Similar Messages

  • I am trying to save a mp3 file but firefox does not allow me to save it...it allows me to play the file but not download and asave it to my computer. How do I enable it to save mp3 files on my computer?

    I am trying to save a mp3 file but firefox does not allow me to save it...it allows me to play the file but not download and asave it to my computer. How do I enable Firefox to save mp3 files on my computer?

    Go to Options>Applications tab > search MPEG Layer 3 audio(audio/mpeg) > use "Save File" option on drop down menu.

  • How do I save markers to an MP3 file? Need help asap.

    I add the markers to my wav file and save the wav file as my master. Then I save the wav file with the markers as an MP3 file. However, when I open up the MP3 file, there are no markers. I need the tracks to be on the MP3 file for digital downloads. how do I add markers on  an MP3 file so I can either
    use that file to have as a digital download and/or burn a CD. Either way I use the file, I need to have the markers on the MP3 file. I really need help with this. I am working on a project that is time sensitive. Anyone that can help me would be greatly appreciated. Thank you.

    No.
    I've reread portions of the manual and it's kind of coufusing, but I think I figured it out
    The manual states in order to save markers, you have to save non-audio data with the file. It also states it saves this as XMP info in an mp3.
    I don't think the markers are a datatype that get exported with XMP info, at least from what I can tell becuase I have been unable to save an mp3 with the markers.
    But, let's sidestep that. Right now, this isn't your issue. Your issue is you want to preserve track markings so when people download this mp3, they can listen to it as "tracks" rather than a continious MP3. The problem is not all mp3 software supports it, in fact, everything that does has it bolted on. So only a small percentage of people downloading the mp3 will be able to actually use that function. foobar2000 and winamp users, yeah, they could deal with an mp3 using an embedded cue....if you embedded the cuesheet as it required. Windows Media/iTunes people...they have absolutely no support for playing a long mp3 as tracks.
    so, to begin with...what you want to do, is "technically impossible". CUE is not supported by id3v2 and is therefore not offically supported. Don't get angry at me, I did not write the mp3 specifications. You'll likely find that even if you do find a solution googling "embed cuesheet mp3", the results won't work the way you want or be a method thats universal. Regardless of how you do this....audition is not going to embed markers when you save as mp3. You'd have to export the markers to a cue-sheet somehow (which I haven't figured out how to do in audition because it appears it doesn't) and use an external program to embed them...or distribute the cue file with the mp3. milage will vary, majority of users probably wouldn't be able to make use of it.
    The OTHER alternative...which is probably less supported than embedding a cue sheet to an mp3, is you CAN maintain makers and have a layer-3 bitstream...but you have to save the file as a .wav using an ACM WAV and use a layer 3 codec. Technically, you're creating a wav, but since wav can work technically as a container format, the audio content is mpeg layer 3...but, again....since things like Media Player or iTunes or even Winamp don't pay attention to them as they're extra information in the WAV header, this still doesn't give you the track-split function you're looking for.
    there have only been loose standards defined by developers and users for what you want to do. while there are "open" ways of doing it, it's never gained much support.
    the only way you can guarntee you can distrubte track'd mp3's is to split thing in to seperate files to begin with.
    sorry.

  • I loaded my ipad photos from camera and all the pictures sorted by date.  Next, I did a sync with my computer and the photos were all reorganized into IMPRT folders an out of date sequence.  Any idea how to put the photos back into date files?

    I loaded my ipad photos from camera and all the pictures sorted by date.  I later sync my ipad with my computer and the photos were all reorganized into IMPRT folders an out of date sequence.  Any idea how to put the photos back into date files other than reloading all of them from camera?

    What version of iPhoto?
    Select one and rotate it. Then rotate it back. Does that make it appear? 
    A much better work flow is the keep the photos after importing.  Check the success the import, wait for at least one successful backup cycle then use you camera's format command to reformat the card
    LN

  • Need help for how to putting arabic content in java properties file

    Hi all,
    we have to support arabic in Java application.
    For that we are using java propeties file where key and value pair is used.
    In the Microsoft excel sheet arabic content is coming properly from right to left direction.
    When same thing is copied and paste in java properties file contents direction is reversed that is it is coming from left to right as in english.
    Please help how to put the arabic contents in propeties file
    Regards
    Vidya

    So in terms discussion.
    First I would suggest that you get a hex editor and validate exactly what is in the properties file. It appears to me that you are using one or more editors that are adjusting the display for you and thus that makes it hard to determine where the problem is. A hex editor should not adjust the display. Although even then you might want to right a simple java app and have it read bytes and print them just to validate that the hex editor isn't doing something.
    Only after you are exactly sure how the bytes appear in the file then proceed with other steps.
    For the java GUI only test the following.
    1. Properties file has it left to right then the java GUI displays it correctly right to left or not?
    2. Properties file has it right to left then the java GUI displays it correctly right to left or not?
    Myself I would expect that 2 should be the correct way to implement this. However that is dependent upon you correctly invoking the api as well. So if 2 is not working then you might want to look at the api. It might also have something to do with GUI display properties (of which I know even less.)

  • HT1391 I have a thousands of duplicated songs from my itunes because my little cousin wanted to convert all the songs in my itunes to mp3 for his mp3 player.  How do I move all of the mp3 files into the trash while leaving the originals from my Itunes?

    My little cousin coverted all my music in Itunes to MP3.  Now I have duplicates of everything.  How do I erase ONLY the duplictaed MP3.  Leaving my original original songs in Itunes available? 
    Thanks!

    If they are in the iPad's Music app then the only way to get them out of it is by connecting the iPad to a computer. As they aren't iTunes purchases you won't be able to copy them back to a computer's iTunes via File > Devices > Transfer Purchases, instead you will need a third-party program on the computer to copy them off - there are some listed half-way down this page which should work: https://discussions.apple.com/docs/DOC-3991

  • How to put chinese character in the Manifest file

    Hi,
    I want to know that how can we put chinese characters in the manifest file. Please suggest a solution.
    Regards

    [slightly confused stuff removed]Sorry, AmitChalwade123456, I know trolling can be very funny, but you're confusing the sh*t out of newbies with this almost-seems-usefull kind of talk.
    Stop that.
    And in case you really meant that seriously: Please refrain from giving advice with regard to encoding. What you posted is wrong (to put it mildly).

  • How to put the short movie clip(avi file) saved in CD  to Ipod machine

    I have some Japnese animation clips(10 of them).I like to transfer those clips saved with avi file in CD disk to my I pod...But it doesn't even bring files automaticlly to I tunes when I put CD in my lap tops...Is there somenone who can pls let me know how to put burnt movie clip to I pod?
    Thank you in advance

    GUIDES TO: Converting Video for iPod - Mac & Window
    http://forums.ilounge.com/showthread.php?s=&threadid=123067
    The Complete Guide to Converting Video to iPod Format (Mac)
    http://www.ilounge.com/index.php/articles/comments/the-complete-guide-to-convert ing-video-to-ipod-format-mac/
    See other tutorial articles over at iLounge...
    http://www.ilounge.com/index.php/articles/tutorials/
    Patrick

  • How to put selected videos into one place (File)

    How to put selected videos into a File so I can only show on TV the videos in that file

    YYou have to describe your issue in more detail. Are you using iTunes? Trying to see it in Apple TV, etc, etc.

  • How to change destination table dynamically in configuration file in ssis?

    hello,
            i have a package i am having one data flow task.in data flow task i have one source and one destination.source and destination are different.i have created xml configuration file by configuring source and destination connection
    strings.
    now i want to change destination in the same server to different database with out opening the package.i want to directly change in the config file.we can change it by modifying configured value proerty and intial catalogue value.but if the table is not
    existed in the changed database.how we can create it dynamically.

    HI jiri Neoral,
                       thanks for reply,as you said above process by this we can do change only databasename.if in my destination database,the table which i used in package is not existed,can we create it dynamically
    using config file.later changing table name is possible?
    For that you need to have a step in SSIS package prior to data flow task to check if table exists and if not create it
    You can use  execute sql task with query like below
    IF OBJECT_ID('TableName') IS NULL
    CREATE TABLE TableName
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • How do I create custom ringtones from mp3 files in itunes 11?

    I've upgraded to the iPhone 5 from Blackberry, and I have several custom mp3 ringtones I would like to assign... and can't.  How do I do this in iTunes 11?

    You would have sorted it out by now.
    Anyway,
    1. Go to EDIT =>REFFERENCE
    2. Under General, tick TONES, then you will be able to see TONES folder...
    To create ring tone from mp3.
    1. Make sure your mp3 file playback duration is about 30 sec or less.
    2. Add it to your library as you do with music.
    3. Under MUSIC folder, select SONGS
    4. Find the mp3 file you want for ringtone, right click it and find CREATE AAC VERSION
    5. OPEN window explorer, browse to MY DOCUMENTS/MY MUSICS (XP) or Library/my music (Win 7), there should be iTunes folder in there, find the mp3 file... and change the file extension from [.m4a] into [.m4r]
    6. Back to iTunes, add [filename.m4r]
    Now you should have rinetone under TONES folder in  your iTunes.
    Cheer

  • How to put multiple classes in a single file?

    Hello,
    I'd like to put mutliple classes in a single file. (This
    would be useful for grouping children that are minor extensions of
    parent classes or helper classes that are used by one class only).
    When I tried to put two classes in one file, I got this error
    message:
    5006: An ActionScript file can not have more than one
    externally visible definition: Notation.editField,
    Notation.labelField1
    This is the structure I used. Thanks in advance for your
    help.

    You can declare multiple classes in a single file, but only
    one can be
    within the package declaration. All class declarations
    outside the package
    are invisible to code outside the file.
    package sample
    public class SampleClass
    class SampleClassHelper
    class SampleClassHelper2

  • HELP!! How can I find and delete duplicate mp3 files.

    I have a zillion copies of songs and I want to find and delete duplicate mp3 files. I have used MediaRage to find the duplicate files (16 thousand or so) but it can't delete them. It will take a million yrs to delete them manually. Does anyone know a way to do this quickly or a program that will do this for me. I have a 15 in Powerbook with OS 10.5.3
    Thanks so much if you can help.

    This site: http://dougscripts.com/itunes/ has hundreds of scripts (small programs that do stuff) for iTunes.
    Bound to be something there for you.

  • How to put SSML string into a seperate file

    string Ssml =
    @"<speak version='1.0' " +
    "xmlns='http://www.w3.org/2001/10/synthesis' xml:lang='en-US'>" +
    "Hello <prosody contour='(0%,+80Hz) (10%,+80%) (40%,+80Hz)'>World</prosody> " +
    "<break time='500ms' />" +
    "Goodbye <prosody rate='slow' contour='(0%,+20Hz) (10%,+30%) (40%,+10Hz)'>World</prosody>" +
    "</speak>";
    how to reference it in c# if is in different file, i can do it in xaml but the syntax for  "<" is  different.
    the above code is just inside  c#. a simple string literal assigned to string variable, is there any other way to do this.
    I'm trying to learn speech synthesis for windows runtime but the is little to nothing documentation on the web. I alreaady tried that mva course. 

    Put it in a text file and load it up into a string.
    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.
    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined
    objects and unknown namespaces.

  • How to Write BUFFER & Read TEXT with Encrypt file ?

    I'm using Windows Phone 8.1 RT.
    I have a issue :
    - I write a BUFFER encrypted to file. After, I read file with TEXT. It's throw exception : No mapping for the Unicode character exists in the target multi-byte code page. (//ERROR 2)
    - I write a TEXT encrypted to file. After, I read file with BUFFER. It's throw exception : The supplied user buffer is not valid for the requested operation. (//ERROR 1)
    Code Write Buffer & Read Text.
    //Write Textstring msg = EncryptText.Text;
    //ERROR 1 - Use 1 or 2
    await WriteTextAsync(this.file, msg);
    //ERROR 1
    //Read Buffer
    string msg;
    //ERROR 1 - Use 1 or 2
    IBuffer buffer = await ReadBufferAsync(this.file);
    StreamReader stream = new StreamReader(buffer.AsStream());
    msg = stream.ReadToEnd();
    //ERROR 1
    Code Encrypt-Decypt.
    public static string EncryptString(string msg)
                var bufferMsg = CryptographicBuffer.ConvertStringToBinary(msg, BinaryStringEncoding.Utf8);
                var bufferMsgEncrypted = Encrypt(bufferMsg);
                var msgEncrypted = CryptographicBuffer.EncodeToBase64String(bufferMsgEncrypted);
                return msgEncrypted;
            }public static IAsyncAction WriteTextAsync(IStorageFile file, string msg)
                return FileIO.WriteTextAsync(file, EncryptString(msg));
    public static IBuffer Decrypt(IBuffer bufferMsg)
                var key = CreateKey(KEY);
                var aes = SymmetricKeyAlgorithmProvider.OpenAlgorithm(SymmetricAlgorithmNames.AesCbcPkcs7);
                var symetricKey = aes.CreateSymmetricKey(key);
                var bufferMsgDecrypted = CryptographicEngine.Decrypt(symetricKey, bufferMsg, null);
                return bufferMsgDecrypted;
            }public static IAsyncOperation<IBuffer> ReadBufferAsync(IStorageFile file)
                var buffer = FileIO.ReadBufferAsync(file);
                Task<IBuffer> result = Task.Run<IBuffer>(async () =>
                    var Buffer = await buffer;
                    return Decrypt(Buffer);
                return result.AsAsyncOperation();
    Link demo code :
    https://drive.google.com/file/d/0B_cS3IYO936_akE0cmI4bExJMjh0RU9qR3RvWDBWWElZWC1z/view?usp=sharing

    Please provide a working app so this can be tested. You can upload to OneDrive and share a link here.
    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.
    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined
    objects and unknown namespaces.

Maybe you are looking for

  • Material price report

    Hi, Any one please help me out in generation of below report with coding: <b>Created Material Price Difference report, which displays Price difference between customer and vendor.</b> you can send your views to '[email protected]'. Thanks in advance.

  • Shared Variable in DETAILS section reports value of previous item.

    I have a report with a subreport in the details section. I have set up a shared variable in the subreport to pass a value to the main report. For some reason, the value of the variable for the first detail line item, shows up in the field for the sec

  • Newbie lesson - xServe RAID boxes need 2 Controller modules to work well!

    So I thought I'd share my experience with my xServe RAID box, because I built it from parts (via eBay) I thought I could run it with a single controller with up to 7 drives until I needed to expand it later, I had all sorts of strange problems: - Cou

  • Time Constraints in HR Master Data

    Hi Can you please explain scenarios where Time Constraint 0 is used. thanks AP

  • Session Expired Problem

    Hi, I often got the error message "Session Expired" displayed on my HTML page that serves Java Servlet output. I attempted to look through my Servlet source codes but it has no problem. In fact, it runs perfectly well on JavaWebServer2.0. This seems