Popping noise added when rapid firing

Hello, I've written a sound player class using Clip and SourceDataLine from the javax.sound.sampled package, in J2SE.
My goal is to produce a sound when a button is pressed.
However, if the button is clicked and held, the action and sound will rapid fire.
If the button is clicked once everything is fine. When clicked and held, for rapid fire, the audio sounds like hell with popping and clicking noises added in.
I thought it might be caused by AudioInputStream being opened and closed in SoundDataLine. So I wrote a Clip interface to cache the whole thing in RAM. Still no love.
I've been playing with the entire API since Saturday and I'm at my wits end. Any suggestions. Am I using the wrong API entirely? My box is a Pentium 4, Windows XP.
Thanks in advance, Ray

I had the same problem in a different scenario. Heres a simple solution, create 5 seperate instances of the clip, and play each one seperatly per click. So if they hold it down, it cycles thru an array of clips all containing the same sound. By the time it plays the 5th clip, you can play the 1st one in the array and it would already be finished if it was a short clip, and even if it was a long clip, the poping should be gone. This way it will play the sounds together instead of triggering the same one over and over so quickly.
It's more memory consumptous, but its fast.

Similar Messages

  • Popping noise when track starts or ends

    hey
    ive been putting together this song recently but on a few tracks, when it ends or starts there is this popping noise right as it comes in. Any suggestions?

    hi
    are these tracks you have recorded i.e audio?
    If so you could open them in the sample editor and move the start position a fraction to avoid the popping sound.
    Also, try adding a fade to the region beginning and/or end in question.
    BTW, You need to careful with waveforms. In the sample editor local menu go to <edit> and make sure "search zero crossings" is ticked. This means that the start and end positions snap to the closest point to where the wave form crosses the zero line. This should ideally solve your "popping or clicking" problem.
    Hope that helps.
    Rounik

  • Why is there a popping noise when I cut between angles in a multi cam edit? How do i get rid of it?

    I shot an interview. I recorded it on an h4n-One person was on channel 1 and the other was on channel 2. When I cut between them in a multi edit it creates a popping noise. How can I get rid of this and/or prevent this from happening?

    I had this..  I didn't cure it I just slipped the edit until it went. Not always possible.  What I would do on avid or fcp 7 is add a dissolve to the audio tracks.. So you could do that in the fcp x way

  • Headphone noise (pop sound) heard when switching to audio.

    Has anyone encountered a popping noise when the start listening to audio (MP3s, starting a call, etc.) through their headphones?  I am wondering whether this may be a design flaw, a setup issue, a hardware problem with my BB Curve 8830 or with the headphones themselves.  I am using the headphones that came with the unit.  I have had this problem from day one and it's really irritating.  Thanks, Dan.

    I have the same problem, actually two different pops.  The first is a loud pop when using any kind of headphone or speaker, right when the music is about to start, almost identical to the old pop when one placed a needle down on a vinyl LP.  (Anyone here young enough to remember those?)
    The second is a softer but clearly audible pop between songs - however - this one is only audible using certain headphones and particularly speakers (like PC speakers).   What is with this?  Surely this is fixable - hello RIM ??
    Any hints appreciated.  My Curve is new, from Verizon, and appears to be using system 4.3.  Will look into updates on that.
    Not to hijack the thread, but perhaps I can toss out my other Media Player problem.  I had trouble downloading with WMP and Roxio so I am using MediaMonkey - I can get songs, album art, and even playlist names but when I check the playlists on the Curve, they are empty.   Anyone run into this?  I have MMS enabled, USB support, etc.    Thanks !

  • Strange popping noise when reversing

    Hello,
    I have been using iMovie HD 6 for quite a while now (I downgraded), and the reverse feature has been working fine until now. When I reverse the clip (w/o changing the fast/slow marker), a strange popping noise replaces the usually reversed audio. I tried it on an iMac G4 with iMovie 4, and it created the same strange effect. (As an alternative, I've been using +J and Wavepad for the reverse audio) Can anyone fix this?

    Hi
    • free space on internal boot hard disk ? How much ?
    Yours Bengt W

  • Popping noise when in menu mode?

    I get a steady and repeating popping noise while I am on the menu page.
    Once I select a video/movie- the pops stop and all is fine.
    Is this a HDMI handshake issue?

    TheMissingBite wrote:
    I have both an ATV1 and ATV2.
    The ATV2 is connected to a surround sound through my TV. The sound system and the sound on my TV both pop every time a video or audio starts to play.
    This is the way my ATV2 is connected as well. In my case the popping only occurs when I am in the menu mode until a movie/video starts and then all is fine. And the popping only occurs if I start up the surround sound receiver when the ATV2 is already "awake" (not asleep) with its light on. If the ATV2 is asleep when I turn on the surround sound receiver, and then turn on the ATV2, then all is fine.
    In my opinion it is some kind of issue between the audio output of the ATV2 and the audio input circuit from my surround sound receiver. If anyone has a solution for this I would certainly appreciate learning it.
    I never have had this problem with my ATV1

  • Loud Popping Noise when wake from sleep

    On my new iMac CD 20" there is a load popping noise that comes from the speakers when I wake it up from sleep. Also, the hard-drive or the super-drive clicks a few when waken from sleep. Yesterday there was a static noise coming from the speakers while I was using the machine on the web, it was load enough to be annoying, I restarted it and the sound went any. I am wondering if any others have noticed this problem and should I take it back for a new one.
    My wife has even said that the sounds don't seem right.
    Any feedback would be great!
    Thanks.
    20" Intel iMac and 12 P-book- 867 MHz   Mac OS X (10.4.4)  

    I conducted some tests on my iMac, and the problem, as it were, is related to having external speakers connected to my iMac. When I unplug my external speakers (JBL Encounter), I do not hear the pop upon waking my iMac from sleep. When I plug the speakers in again, the pop returns. I do not hear the pop when I mute the speakers before putting the iMac to sleep, either.
    To rule out other devices, I unplugged all external devices and then reconnected them one at a time. Only the speakers triggered the pop.
    I don't think this is a defect necessarily, even though I never heard the popping sound when waking my iMac G5 from sleep (with the same set of speakers). I think it may, as I suggest above, have something to do with the change in processors.
    I may call Apple just the same to see what its tech. support people have to say on the matter.
    Do those others of you experiencing the popping sound also have external speakers?

  • Final Cut 10.1.1 Export Issues & Popping Noise

    I've been having some very strange problems that I've never heard of before in Final Cut. First off, I downloaded historical footage I needed for this edit from Youtube as .MP4's, cut them together with some audio, and had everything ready to go. Inside of Final Cut, play back was great. I then tried exporting, and I got the "The share operation "Master File" has failed. The operation could not be completed because an error occurred when creating frame 80 (error -1)." The frame number changed between frame 80 and frame 23, seemingly at random. I started out by Goggleing. I tried deleteing my render files, turning off background render, deleteing my preferences, making a new project and pasting everything in, duplicating the project, and more. Absolutely nothing worked. I then started the process of elimination, and deleted parts of by timeline to find the problem. As it turns out, I had to delete my two compound clips (both only audio) and put them in the timeline without a compound clip. It then finally exported, only to find that one of my clips had a ridiculous popping noise, exactly like the Final Cut 10.0 bug. I've tried changing my sample rate, converting the video, exporting the orginal clip's audio with Quicktime then syncing it with the clip in Final Cut, and even just adding an effect to see what happens. The popping still remains. Any ideas? I couldn't find anyone on the web with this problem that's back from the dead. Being able to use compund clips would make the edit a whole lot easier too. Thoughts?
    Here's my computer specs, if they help:
    2011 27' iMac
    Quad core i7 processor with four virtual cores (8 cores total)
    16 gigabytes of RAM
    256 gigabyte SSD
    2TB HDD (I've tried transfering the edit to both drives, no luck.)
    At this point I'm ready to reinstall Final Cut, but I haven't done it before, and I don't know what it entails. I'd prefer not to lose prefernces, etc. In general, I'd rather not have to do that though.

    Luis, just to add to my previous post, I just found a removal process online that is specifally for removal from Mavericks.  Can you verify if this is the one to use over FCS Remover (which I think is for previous versions).   Here is what I found:
    In Finder, choose Applications from the Go menu.
    Locate the Final Cut Pro application and drag it to the Trash.
    In Finder, hold down the Option key and choose Library from the Go menu.
    In the Library folder that opens, open the Application Support folder. Move the Final Cut Pro folder to the Trash.
    Return to the Library folder and open the Caches folder. Move the "com.apple.FinalCut" folder to the Trash.
    Return to the Library folder and open the Preferences folder. Move the following files to the Trash:
    com.apple.FinalCut.LSSharedFileList.plist 
    com.apple.FinalCut.plist
    com.apple.FinalCut.UserDestinations.plist
    I just want to make sure so I don't have any problems with a fresh download from the Apple Store.
    Thank you again!

  • Popping noise while sleeping

    I started to notice a "popping" noise (about 1 Hz) when I got external speakers for my Mac Mini. It occurs when the Mac is sleeping and the external screen is on (but sleeping its own "sleep").
    If I disconnect the analog audio out (from where the external speakers take their signal) the popping ends.
    If I connect headphones to the same jack, I hear no popping in them.
    If I hit the power button on the external screen and power it down, the popping ends. It will not return eventhough I power the screen on again.
    If I disconnect the USB cable that power the speakers from the Mac, the popping ends, but returns when I connect again.
    Any clue to what this problem comes from? Some kind of ground loop?
    /BE

    Seems we've isolated the problem to Electrical at least. Sounds like a Ground loop somewhere.
    See this nice article...
    http://www.soundonsound.com/sos/nov04/articles/computerproblems.htm
    Audio equipment which uses a double-insulated design needs no earth connection, and so is less susceptible to earth-loop problems. Such equipment will often use two-core mains cable, which has an oval cross-section, and the mains plug will sometimes use a dummy plastic earth pin, as shown here.
    Disconnecting the earth wire inside a mains plug might solve an earth loop problem, but it's a dangerous solution, because you're removing an essential electrical safety measure.
    And my best guess at this point is the PSU for the Speakers.

  • "Popping" noise w/ Audigy 2

    Hi,
    I have had this constant, periodic popping noise through my 7. Creative speakers with my Audigy 2 ZS whenever I load windows and mostly when I have two sounds playing at once ie. Games and Winamp... please does anyone know how to fix this? It is very annoying...
    The popping gets louder when I turn the speakers up and down when i turn them down ...

    "The popping gets louder when I turn the speakers up and down when i turn them down"
    That's normal for a volume control. How about a search on this forum, because what you asked, is asked before here really many many times.
    I've also answered many many times, almost with the same answer.(irq/dma sharing of Motherboard&Windows. Put soundcard in a pci-slot that don't share with other equipment that is used at the same time.(like video = audiocard+graphicscard at same time, so you don't want these too cards to share irq/dma.)
    well do a search on this forum for popping audigy, and you'll find tha answers.

  • How do you solve popping noise??

    Does anyone have a solution, or can suggest a course of action to address the popping noise that occurs when my macbook Pro's speaker turns on, say when launching a song from itunes. It is not super annoying yet. But it would be nice to solve. Is this a 10.4.8 thing or software glitch, or hardware related. I have a new MBPCD2 2.16

    Are there any technicians from apple that review these forums? I have the issue of the popping noise and was very concerned, but it make sense that for power saving that the speakers get de-energized.
    Should I be concerned?
    I just bought this MBP. You think that something that costs this much, wouldn't have this kind of issue. I've been faithful to PC for 15 years and finally converted to MAC because I was getting tired of PC issues (like this) It is extremely pleasing to fire up my mac and not have to work on it, check virus definitions. I kinda don't know what to do with my time now!!!
    Thanks in advance.
    MacBook Pro 2.33 Intel Core 2 Duo 2 GB Ram 256 Video   Mac OS X (10.4.8)  

  • Pop Noise from Audio Out While Using iTunes 9.0.1

    I have a black MacBook with Leopard 10.5.8 and iTunes 9.0.1. I have a a pair of computer speakers plugged to the MacBook's audio out minijack. Every time I run iTunes to play my music everything goes fine until I stop the music (you know with the space bar or the stop button). 30 seconds after I stop the music a loud pop noise comes up and stops, as if some electrical device was receiving a charge of electricity. When I play music back again on iTunes, the same noise comes up again with the music and goes away immediately while the music continues all right.
    This is what I have done so far:
    Change my energy saving parameter to several different configurations (perhaps the hard drive stopping when unused was the cause) but none fix it.
    Turned off Airport...did not fix it
    I timed the pop noise and it happens exactly 30 seconds after I stop my music on iTunes and then again 30 seconds after music has been stopped unless I start playing the music back again and the pop noise sounds again.
    Any help would be appreciated as I use my MacBook to play music sequences for my band (I am the drummer) so the darn noises come through our PA system (and I also tried my small computer speakers and it does the same thing).
    Thanks,

    I spent a good amount of time reading several discussions. Apple is aware of this issue but no solution as of yet. The popping noise is "normal" behavior and happens because of how the sound system is programmed in the computer.
    The solution (sorry for the bad news) is to not use the audio out minijack at all. Instead, get an audio interface that connects to your USB port and then route the output signal from your audio interface to your speakers, headphones or PA system. The popping noise will not sound. I tested it several times.
    If the only cable you have is a minijack male type then go to Radio Shack and get adapters. I had to get me an adapter that takes two RCA males and converts them to a female minijack type.
    Good luck.

  • Cracking and popping noise Sound Blaster x-Fi Platinum Running on Windows 7 32 Bit

    Hi everyone, I am using a x-fi platinum card and it simply wont work with Windows 7 Ultimate 32 Bit. I have been using both windows 7 public beta and release candidate for last 8 months. Let me give you my PC configuration.
    Intel Pentium D 3.4GHz
    2GB DDR2 Memory running in Dual Channel Mode
    ATI Radeon HD 4670 Video Card With 52MB DDR3
    It has a built in sound on mother board (Disabled at the moment)
    With the above configuration I tried using my x-fi platinum on both Windows XP and Windows Vista, and it worked perfectly without any problem. When I upgraded to windows 7 beta for the first time with the creative beta driver for windows 7, I noticed that whenever there is any on screen activity, such as minimizing and maximizing windows, switching windows, scrolling, photo or webpage transition, etc. there are cracking and popping noises. And if there are continuous or too much activity on the screen at some times the sound card completely fails and unable to provide any sound. When I took the sound card out and enabled the on board audio chip (Realtek HD Audio), the sound was fine without any cracking or popping issue. I eventually upgraded to Windows 7 RC and also currently using the latest driver for windows 7 and I am still having the same problem. As a reasult I am being forced to use the on board realtek audio solution which provides really crappy sound compared to x-fi platinum.
    It appears that the problem exists only when I try to run x-fi platinum on windows 7. I really hope there is a solution for this otherwise I will have to sell my beloved sound card which I have been using for at least 3 years on ebay and stick with low quality Realtek HD sound system.

    Sille wrote:
    seems X-FI cards got the problem.... shud be hotfixed by creative.
    Not all of them, I have none of those problems with my Xtreme Music. This won't help the guy asking about the Xtreme Audio (search the Sound Blaster section for the one for your card), but using this,
    http://forums.creative.com/t5/Sound-Blaster/SB-X-Fi-Series-Support-Pack-2-0-05-5-2009/td-p/527485
    with this installed over the top,
    http://forums.creative.com/t5/Sound-Blaster/SB-X-Fi-Series-Auzen-Forte-driver-2-20-000-HomeTheater-HD-RC4/td-p/53548
    I don't get any of the popping and cracking that others do.

  • Popping noise after export

    So my song plays just fine in GarageBand, but when I export to iTunes, there are some popping noises that come in (very subtly) at the same parts in the song. Here are some troubleshooting things I've already checked:
    1) It is not my speakers -- I've tried two different pairs of headphones, and another set of speakers.
    2) I do not have the decibels amped in the GarageBand edit.
    3) I've tried reducing the decibel levels to all negatives, and it still pops in the same spots.
    4) I've tried exporting the song in all different formats, compressed and uncompressed.
    Anyone know of something else that might work? Thanks!

    Did you change your song's tempo after recording? If GB has to re-render a sound file, it often introduces artefacts.

  • FIOS router causing static and popping noises on computer audio

    Hi, I'm a less than two week old FIOS internet user and am loving the speed and service but I have one problem. The FIOS router seems to be causing static popping noises my desktop computers audio that is connected to the FIOS router by the yellow Ethernet cable. Theses noises don't occur on any of the laptops connected to the router by the wireless or when I connect a laptop to the router via a Ethernet cable.
    Ways I found to eliminate the noises temporary:
    Restarting the desktop computer or shutting down then turning on the desktop computer.
    Ways I found to eliminate the noises permanently
    Turning off and unplugging the router.
    Hooking up the FIOS router via the Ethernet cable to a laptop. I unfortunately do not have a wireless built into my desktop.
    What I've tried and failed
    First I thought it was the Ethernet cable, so I replaced it. The noises did not go away.
    I thought it might be the headset I use which are connected to the computer by a usb port. Unplugging the headset and using earphones which are connect to the computer by the audio slot did not eliminate the noises.
    Then I contacted Verizon, and they thought it might be a faulty router, so they sent me a new one. The noises unfortunately did not go away.
    I then thought the noises might be occurring because the router was close to the computer. So I moved the router as far away as possible from the computer (its connect to the router by a Ethernet cable so it wasn't that far) but the noises didn't go away.
    Notes & Points
    The noises do not start the moment I turn on the router and computer, but a hour or two after.
    I think I've narrowed the problem down to occurring only when the desktop computer is connected to the router by the Ethernet cable. Though replacing the Ethernet cable has not resolved the issue.
    I also have found that location of the FIOS router also doesn't matter since the noises did not return even though the router was right up against the computer when I connected the FIOS router to my laptop.
    I have Windows 7 Home Premium 64, 3.5 gigs of ram, and a dual 2.0 GHz processor.
    So that sums up my problem. If you guys have any tips or ideas of how to fix my issue, it would be greatly appreciated.

    Sounds like a shielding problem on the AUDIO cables or a grounding issue.   PC sound systems are notorious for having lousy audio cables feeding (I regularly pickup the local FM station on my speakers).
    Try replacing the audio cables with better quality shield cables and see if that helps.
    Are the router, speakers, and PC all plugged into the same outlet?  Are they all polarized plugs?  If note, try flipping the power plug on the non-polarized connections.
    The sound could be coming from interference INSIDE the PC itself ... the proximity of sound cables inside and the audio chipset to the ethernet chipset.   You didn't indicate if the audio/ethernet are on the motherboard or seperate cards.   If they are seperate cards, try relocating the cards furfher from one another inside the chassis and also look at the audio cable (particularly the analog cable that runs from the CD to the audio card to make sure it's not routed past or near the ethernet electronics.
    How far distant is the router from the PC?  If you pull the ethernet cable from the router (not turn if off, unplug the ethernet cable running to the PC), does it stop?

Maybe you are looking for