Multiple Sound Clip Strategy Suggestions Sought

I am using the javax.sound objects to play the sounds.
I am writing an application using the javax.sound api where each object owns a sound clip that can be played at any point in time. Some objects can play the same sound - and if this occurs these sounds play simultaniously, over one another.
For example - if this was a war video game (it isn't), each soldier object might play a gun shot at slightly different times - the more action the more layered the sound becomes.
I am using clips, loading one for each object when it is created. This all works fine if there are less than 32 objects, after which I get LineUnavailableExceptions.
This is my first foray into Sound - so forgive me if this is a no brainer. I am looking for feedback or examples for a better way to go about this.
Here are some of my thoughts:
From the stack trace I can see that an audio clip get loaded into a MixerClip mixer, and that the limit must be 32. Is there a different Mixer I could assign this to get around this?
Ami I going about this all wrong? Should I be streaming each sounds when it is played? Should I be pooling the sounds somehow so I am not loading the same sound x many times? Can the same sound clip be played multiple times?
Thanks in Advance!

Yes - it is a hardware limitiation. The question still applies - perhaps using clips is not the best choice given this - so I am looking for a better way.

Similar Messages

  • Multiple Sound Clips

    Simple problem, and I hope there's a simple fix . . . I have
    a sound clip running at the start of a Flash presentation. At some
    point, I need the first one to stop so I can start the second one.
    I know there's a difference between "stream" and "event" and all,
    but I'm having no success getting the first one to stop so it
    doesn't play over the second one.
    Suggestions?

    MBKrebs,
    > They were audio assets dragged to the timeline.
    In that case, think of it like this: Stream sounds are
    locked in-step
    with the timeline they're in. Let's say you drag an asset
    from the Library,
    put it in a frame, and configure it as Stream. Let's say the
    audio clip is
    30 seconds long. Your movie is set for 12fps, so 30 seconds
    would require
    360 frames to fully play the audio. If your span of frames is
    shorter than
    that, the audio will stop early. If the playhead stops before
    the full span
    of frames, the audio will stop earlier (and reconvene when
    the playhead
    starts again).
    If that same audio's entry keyframe is configured as Event,
    the sound
    only needs a single frame to play. Big difference!
    Stream sounds are often used for lip synching, as as for
    cartoons.
    There's no way to guarantee such tight synching with Event
    sounds. The
    timeline will play as fast as it can on a given user's
    machine, and might
    fall out of step with the audio.
    > For some reason, I can't seem to get a handle on using
    > sound clips ? I think I know what I'm doing, but then
    > it doesn't seem to work like it's supposed to.
    The ActionScript route isn't especially hard, but it differs
    based on
    what version of ActionScript you're using. If you're
    interested in that,
    let me know.
    Totally aside, your name reminds me of someone I knew, years
    ago, in
    Manitoba (MB), whose last name was Krebs.
    David Stiller
    Co-author, Foundation Flash CS3 for Designers
    http://tinyurl.com/2k29mj
    "Luck is the residue of good design."

  • Changing multiple sound clips volume?

    I need to adjust almost an entire track's sound (by about +5db...) Is there a simple way to select them all and apply +5db to multiple clips?
    Thanks!

    Joshua wrote:
    Is there a simple way to select them all and apply +5db to multiple clips?
    Yeah, select the clips you want to raise 5db, then raise them 5db. If you select the clips you want to raise, use Control- ] and Control- [ to raise or lower in 3db increments. Control- + and Control-- will raise or lower in 1db increments.
    So select them and raise them. The process is really as simple as your question.
    EDIT: I don't know why that's showing up as a link. It's supposed to be Control and the brackets in either direction.
    EDIT: I think I fixed it now. The question & the answer were both easier than actually fooling the system into realizing i wasn't typing a link.
    Message was edited by: thrillcat editorial

  • If I use a sound clip in the multi-track editor multiple times; is there a way to reverse the clip w

    If I use a sound clip in the multi-track editor multiple times; is there a way to reverse the clip without change all the instances where the clip was used in the same multi-track session?
    I'm having to copy the clip rename it as clipreverses.wav then bring it back into audition to use it.
    Sony Vagas you can flip the same clip on a different track with a right click and not affect any other copies of that clip.

    Not that I'm aware of, no. You can easily make a unique copy of a clip (right-click on it, and you get it already saved for you), and I'd say that having this was more flexible in one way, at least, as you could then time-stretch it if you wanted to, without altering all other instances of it. Not saying that there wouldn't be any point in having a reverse-play option - I can see instances where it might be useful. It's just that it's not exactly difficult to achieve this anyway, which is probably why I don't ever recall a request for it!

  • Damsel In Distress: Embedding Sound Clips in Fillable Forms

    I embedded sounds (WAV files) in my professional 7.0 pdf with both the sound tool and the button tool. I also customized these with my own icon (JPG and PNG images). PROBLEM: once I open my pdf as a fillable form to add comment boxes, all the sound clips disappear, both icons and sounds. QUESTION: how can I embed sounds in my fillable forms? Thank you!

    Thank you, but without LiveCycle Designer where does Acrobat allow me to create a fillable form that my user can submit data back to me via email. Again, I am embedding my sound files in Acrobat, but once I select the Advance Menu|Forms|Make Form Fillable in Adobe Designer, it automatically opens LiveCycle Designer and my embedded sound files disappear. Any other suggestions are welcomed!

  • Script for moving multiple subtitle clips in the works - EXAMPLES NEEDED!

    Hi everyone!
    One severe deficiency of DVD Studio Pro is the inability to move multiple subtitle clips back or forward in a track by an arbitrary offset.
    I ran into this problem while I was creating a DVD from an EyeTV recording of a DVB broadcast, the subtitles from which have to be extracted to a SON file and a bunch of .bmp images with a separate piece of software, ProjectX. For some reason, ProjectX messed up the subtitle timecodes, so I had to move the entire track forward by a fixed amount. Unable to do this inside DSP, and unable to find tools that would do this for SON files, I set out to code my own tool with Python.
    Currently, I have a very simplistic working version of the script, which I successfully used to shift the timecodes of the aforementioned SON file.
    This got me thinking: I can't be the only one who has faced this problem. So, in the spirit of giving something back to the community, I thought I'd try my hand at turning this little script into a versatile tool for timescaling several different subtitle formats.
    If possible, I would like to receive real-life examples of several different plaintext (no binary formats, thanks) subtitle formats from you guys, both those that DSP supports and those that it doesn't.
    For now the tool only shifts entire tracks and works on the command line, but who knows, maybe I'll create a GUI at some point and add the ability to shift specific subtitle clips instead of whole tracks - time permitting, of course.
    If you think you might have some juicy subtitles laying around, please reply or contact me directly by e-mail: elamaton (at) nic.fi. Don't worry, I won't redistribute anything you send me, it will only be used as test data.
    iMac Core Duo 20"   Mac OS X (10.4.7)  

    Sounds like a very good idea... but have you seen Subtitler:
    http://www.versiontracker.com/dyn/moreinfo/macosx/26322
    Not to say you won't make a better version, and I'd be delighted if you did! Manipulating subs in DVDSP is not something I do any more - I use an external text editor for any job where more than a few subs are needed.
    The problem in DVDSP is that you cannot extract the subs directly, you have to export an track item description which has the subs and time code buried within the XML. You might find that PHP will give you a web based tool to extract the subs and time codes and write a text file, which you can then manipulate.
    In fact, wouldn't a web based tool be a good idea? People could upload the track description, it would export the subs and you could get it to adjust the timecodes and write a text file back in the correct format to import back in to DVDSP. Once the subs are in a text file it is a simple matter to manipulate them further...

  • How do you move a sound clip in the timeline?

    I have not had this problem before. I have put many songs into the timeline, and repositioned them. Today I pulled up a project and attempted to reposition a song to fit in better with the clip, and I'm unable to do so. I can't select the song, or anything else. Obviously I have set or locked up this track, and I can't figure out how to unlock if that is what I have done. I have 6 songs on that track, Audio track 2, and I can't reposition any of them. I can't even remove them from that track. What am I doing wrong?

    Hunt, most of my music files, over 9000 songs, are mostly mp3 files and a few are wma, and because of copyright laws I wouldn't use them in a commercial project I'm working on anyway. When I am working on a project for a client I will generally use higher quality WAV files. This project was being done just to learn some new techniques, gain some more experience with PPCS4, and expand my knowledge with the program. I have this huge number of music files and styles to work with, so I can do a great deal of experimentation to see what different songs can do to the mood of the video.
    As a test, I did put the exact same songs into the timeline on a different audio track. The problem track is audio 2, and I duplicated those songs on audio 3. I did the exact same editing. I faded them in and out the same as before. Split one song into 3 sections had parts of it come in and out over a video section of 9 minutes duration. They are working perfectly. I was just working on one section of that project a half hour ago, and I was still able to select and move each of the four songs on that track any way that I wanted to. However, the track just above it in that same timeline, Track 2, is still frozen.
    Hunt, just a moment ago I solved my problem. Still not being that familiar with the program, two days ago I know that I was playing with all of the controls, and I obviously hit one of them without knowing one of its side effects. I hit the show "show track keyframes". I'm sure that you know it, but I didn't realize that when that function is selected, you can't do much else with the track but play with those keyframe. Even though I didn't have the track locked, in the traditional way, it was still, for all practicall reasons, locked. I unchecked that function and now everything is back to normal again on that track.
    Something very simple, as many things turn out to be when you understand it. However, maybe someone else will make the same mistake, and my posting here will help them.
    I will use your suggestions for using .WAV files. Thank you again. 
    Terry Lee Martin
    Date: Mon, 7 Sep 2009 14:29:37 -0600
    From: [email protected]
    To: [email protected]
    Subject: How do you move a sound clip in the timeline?
    Terry,
    What is the purpose of using the .WMA files? I'm sure that you have a good reason, but they can be problematic, at best. I only use them as a trasfer medium, when I need to get a DD 5.1 SS soundtrack into Audition for editing. There, I break them out into 6 discrete .WAV files, edit in Multi-track Mode and then usually Export as the 6 discrete WAV's to be encoded to DTS, or similar.
    If you do not have a compelling reason for using the .WMA, try PCM/WAV @ 48KHz 16-bit and see if the issues go away.
    Good luck, and let us know how it goes please,
    Hunt
    >

  • Multiple sounds in one button

    would you kindly give me a suggestion that how to make multiple sounds in a button of a windows form application. actually, being a newb i'm trying to develop a piano application by C# for my own interest. the problem is, when i press one button it plays
    too long & i had to wait until the wav file is finished & after that i had to press another button. what's the code for playing multiple sounds together in one button? u know, then i can play chords too. would you kindly explain or give a code?

    Hi Rinku,
    This is an example for you:
    A Piano Key Control in C#
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • PowerPoint sound clip from my iTunes library

    I know this is a basic question, but I'm trying to insert a sound clip into a PowerPoint presentation. I want to use a song from my iTunes library, but I can't figure out how to do that without importing the song onto a CD. I'd rather not have to insert a CD every time I play my PowerPoint presentation.
    How do I either pull directly from iTunes for my sound clip or save that clip to my desktop? I've been able to insert sound clips I already have on my desktop.
    Thanks for your help.
    iBook G4   Mac OS X (10.3.9)  

    Welcome to Apple Discussions Chris
    This forum is dedicated to the integrated application, AppleWorks. Your question seems to be more about iTunes than even PowerPoint. I suggest posting your question in the iTunes forum. Other questions about Microsoft Office would get more specific answers in Microsoft's forums at http://www.microsoft.com/mac/community/community.aspx?pid=newsgroups.

  • Sound Clip Organization Software?

    Hello,
    I recently acquired a Tascam portable recorder, and I am wondering if there is any software that I could use to organize and keyword my sound clips. Do you have any suggestions?
    Thanks in Advance,
    Spencer
    ><>

    I downloaded it and gave it a try, but it seems a little too in-depth for me. What I need is an application that allows me to add metadata tags to files, and organize them. Do you know of any light duty apps along that line?

  • Sound clip recordings

    Hey anyone know how to save sound clip recordings from an N8 to pc ovi and find them on the pc and play on the pc, I have done a back up with ovi still carn't find the soun d clips in ovi ??
    Solved!
    Go to Solution.

    Hi farby,
    On my N8-00 with Anna firmware, sound clip recordings in high quality .MP4 format syncs into the videos folder on the PC - and Nokia Suite complains that it is unable to add the files to the gallery.
    Recordings in medium quality .WAV and MMS compatible .AMR format are not synchronized at all.
    It has been like this for at least a year, but I'm not sure if something is broken in my Suite installation or if it something worth reporting to the betalabs team?
    Your first suggestion in this thread works for me.
    Hans

  • N95 8GB SOUND CLIPS TRANSFER?

    Hi!
    Does anyone know how one can transfer sound clips (i.e.: recordings made with the N95 from it to other devices?) and what sort of files would these be? I cannot use the Nokia PC Suite - it won't install because my version of Windows XP is the original one! (Is there a version of the Nokia PC Suite that would work with the original Windows XP?)
    Many thanks for any and all suggestions,
    Solved!
    Go to Solution.

    If they're stored in phone memory, move them to the 8GB memory then connect via USB in Data Transfer mode. This should work whatever your version of XP, though of course you won't be able to use any of the PC Suite tools.
    This will attach your 8GB memory as an external drive and you can then drag and drop the files to your PC.

  • Random sound clips

    got a pavilion d7-6bus laptop problem is  its playing unwanted random audio clips...everything from auto ads to hard rock and cooking tips ....Norton anti virus people say its not a virus...anyone out there have a solution...getting to the point where this computer gonna become part of a landfill

    Hello autodiddy,
    I see that you are having problems with random sound clips on your HP computer. I have some suggestions that may help with this issue.
    I would first suggest doing a clean boot. This will make sure that there are no software programs causing the clips to play. Here is a link that explains how to do a clean boot.
    ↙-----------How do I give Kudos?| How do I mark a post as Solved? ----------------↓

  • Transferring sound clips from 5800 to pc

    Does anyone else have a problem with this? First it took me AGES to find where the sound clip was located, only to find it mixed in my music player with the other music. And then when i tried to transfer it through the Nokia Music software to the PC.. it says it was successful but i cant find it anywhere!

    Try this:
    1. Open My Computer from the desktop or Start menu.
    2. From the Tools menu, choose Folder Options.
    3. Click the View tab.
    4. In the "Advanced settings" pane under "Hidden files and folders," make sure that the "Show hidden files and folders" option is selected.
    5. Click OK.
    6. Navigate to the following location by either typing it into the address bar, copying and pasting it into the address bar, or clicking through the folder hierarchy listed:
    C:\Documents and Settings\All Users\Application Data\Apple Computer\iTunes\
    7. Right-click the SC Info folder shown and on the shortcut menu, choose Delete.
    8. Restart the computer.
    9. Open iTunes.
    10. Authorize your computer to play your purchases. Note: If you have multiple accounts you will need to authorize your computer for each account.

  • AIR 2.7.1 breaks sound clip in existing app

    AIR build 19610 has produced strange behavior in an existing app that has been published and installed since AIR 1.5.
    There is a clip onstage (using Flash CS5) which contains sound on its timeline, as well as some simple timeline code (AS3). Certain behavior in the app moves the root playhead to different timeline locations. The sound clip never goes out of scope. At a certain point, for some still-unknown reason, a "ghost duplicate" of the sound clip starts to loop, playing its sound, but without any of the timeline code. It's a "ghost duplicate" because the original sound clip onstage continues to function normally; it doesn't play, and its timeline code is still functional. In testing, I can create other clips onstage that contain sound, with a simple stop() command, and they fail the same way. Different timeline movements can make more ghost duplicates, creating overlapping sounds.
    It seems specific to build 19610, since repeated tries with the previous build, 19530, showed no problem. The problem immediately showed once I updated to 2.7.1 in any environment; XP, Win7 or Mac.
    I'm trying to work out a simple general case, but the problem only shows when building the complete (and very complex) SWF from the original FLA. Any insight? Thanks.

    This regression bug sounds like one that has been encountered by several other people:
    http://forums.adobe.com/message/3891244
    It is a very serious bug indeed because it can affect anyone with nested sounds in the timeline.
    A bug was opened at:
    https://bugbase.adobe.com/index.cfm?event=bug&id=2945792
    https://bugbase.adobe.com/index.cfm?event=bug&id=2945792
    Amazingly, they have closed the bug even though they could reproduce it in 2.7.1. Apparently it has healed itself in the latest dev build, and they want us to "verify it in next upcoming public release" that the bug doesn't happen anymore. To me this is not a satisfactory outcome for something so serious. Between this bug, the breakage of the Timer class in 2.7, and the multiple languages incorrectly showing as supported in iOS apps, I'm getting really worried about having to depend on Air.  Can you imagine what will happen to existing apps that this bug affects, if it makes it into Air 3.0 release?  Sigh.

Maybe you are looking for

  • How can I display all my films in iTunes, on my iPhone 4S?

    How can I display all my films in iTunes, on my iPhone 4S? I have 10 films in iTunes and only 8 are displayed on my iPhone. All 10 films are Digital Copies bought with Blu-ray Discs and have been added to iTunes.

  • Help me:Flash CS3 cannot import AI format

    When I inport the AI format, the software makes a mistake on the prompt: "unknown software exception(0xc000000d),location:0x7813892c" What meaning is this?

  • How to make netcfg2 run with regular user permissions

    when i want to run netcfg2 to connect to my wireless i always have to be superuser then run netfg2.  is there anyway to let the regular user run netcfg2?

  • I can't open, uninstall or update my iTunes?

    If I open iTunes it freezes my computer. If I try to install an update, it begins to open the installer for about 10 seconds and then it closes and nothing else happens. If I try to uninstall it via Windows Installer on my Control Pannel, I get the e

  • Drill through from Bar Chart.

    Hi, I have a requirement and am having a difficult time coming up with a solution. I have a custom table thats gives me the amount values for Costs, Commitments and Budgets by Project. So the columns for this table are Project, Budgets, Costs, Commit