clip

Mixing Sound in Java?

How do I play the same sound more than once at any given time with numerous other sounds going on at the same moment? Right now I've got a "Clip" playing but it won't overlap with itself. ( I hear one bullet fire, the sound finishes then it plays again ). I'm writing a game with a fast bullet firing system but i can't get the sound to w...

Clip a wpf Popup at bounds of a main window

From what I understand, the popup exists within it's own visual tree. However, I've noticed a few properties, Clip and ClipToBounds. What I am wanting to do is Visually clip a popup at the right and bottom edges of a window regardless of the fact that the popup is independent of the bounds of the window. I'm not using XAML, but if somebo...

CSS Clip and Absolute Positioning

I'm using clip to create thumbnails for a gallery. Unfortunately, clip can only be used when an element is absolutely positioned. Applied equally to each img, this of course makes them all sit on each other while using one CSS style, something like this. .Thumbnails { position: absolute; height: 105px; clip: rect(50px 218px...

Use UIElement as Clip in WPF

Please pardon my ignorance- I'm very new to WPF. I am looking to implement a minor, visual effect in my application that gives the look of "inner" rounded corners. The window in question has a dark border that encapsulates several UIElements, one of which is a StatusBar, located at the bottom of the window. This StatusBar has a dark bac...

load a movie clip from library into the stage using AS 2.

how can i load a movie clip using AS2 from library into my stage. and how to unload it. could u help me ? i appreciate it ...

[WPF] Clip region inside the border of geometry

for a given geometry with border width , How do I get the clip region which exclude the border ? ...

Clear Cursor Clip C#

Hey, I am trying to lock the cursor into the form, this is for a mouse locker application, I am trying to dispose the cursor so it will reset the Cursor.clip when they unlock it. So far I have: Cursor.Clip = new Rectangle(x +8, y +30, Size.Width -16, Size.Height -38); That works fine. But I cannot figure out how to clear the clip when...

Java Clip (Sound / Audio) Memory Leak after closing with close()

The following code creates a new audio clip, plays it, sleeps for 3 seconds and then closes it when it is finished playing. Despite the call to close(), I am watching the memory usage of the jvm go up by the size of the sound clip every time the while loop is run. I'm participating in a game coded in java, and am handling the sound. I c...

Java problems playing sound clips

I have a problem playing a sound correctly in Java using the Clip interface. Playing the sound works using: clip = (Clip)mixer.getLine(dataLineInfo); clip.open(audioFormat, byteData, 0, byteData.length); clip.start(); However there is a memory leak if clips aren't closed. I have tried adding a line listener before starting the clip,...

How to play a sound clip in JNLP ?

I have the following line to play a sound clip : Applet.newAudioClip(new URL("file:/C:/Dir_Sound/music.au")).play() it works in standalone app, but in jnlp I got an error message : java.security.AccessControlException: access denied (java.io.FilePermission C:/Dir_Sound/music.au read) I'm not running it in "all-permissions mode", is ...

How to play sounds in Java games?

I'm successfully playing sounds in a Java (1.5) applet game using the following code: // get an available clip to play it Clip clip = null; for (Clip clipTemp : players) { if (!clipTemp.isOpen()) { clip = clipTemp; break; } } if (clip == null) { // no available player found, don't play return; } clip.open(au...

Is there a way to make the clip property work with the box-shadow property?

Hello, I noticed using the clip property also removes the box-shadow property. Is there a way to use both on the same element? Some background: I have three columns for three types of products. Each product has an image, and each image is different in size. I want to standardize image size so my products display consistently. But I wou...

CSS box shadow on container div causes scrollbars

I have a website with the following setup: <div id="container"> <div id="header"></div> <div id="content"></div> <div id="clearfooter"></div> </div> <div id="footer"></div> I use the clearfooter and a footer outside the container to keep the footer at the bottom of the page when there isn't enough content. My problem is that...

Load external image inside flash movie clip

I have a flash movie clip and need to load an external image inside the clip that reference to an external URL.. like www.myimage.com/image.jpg i did something with XML but the image persist on every clip because it loads from actionscript using the x and y cords. Help needed! Thanks! ...

Clip mouse movement in Carbon

How can I clip the mouse movement into a window Region using Carbon? ...

JQuery draggable inside a dialog won't clip or behave

Hi I am using jQuery 1.8 and I want to have a custom 'draggable' control that is a child of a jquery dialog. I am encountering lots of problems as I want the draggable control to shrink to its contents size (its a div for now) and be clipped with in the dialog bounds. If I set the control to position absolute it behaves perfectly but d...

do I need to close an audio Clip?

have an application that processes real-time data and is supposed to beep when a certain event occurs. The triggering event can occur multiple times per second, and if the beep is already playing when another event triggers the code is just supposed to ignore it (as opposed to interrupting the current beep and starting a new one). Here...

amazon mp3 clips widget - how can I find the ASIN codes?

Hi Let's say I have a list of track titles and I want to get an Amazon ASIN code for each. Instead of searching manually, is there some API to use? Couldn't find anything on the Amazon MP3 Clips Widget pages (https://widgets.amazon.com/Amazon-MP3-Clips-Widget/) ... thanks Nicola ...

Java Sound Clip Looping Frame Position

Hi, I have a little problem with a loopting clip: If you have a soundfile e.g. 20000 samples long, the frame position will not reset after looping, so I get values that are "out of bounds" of the original soundfile. As I want to draw a position marker on my waveform, I'm a bit confused how to achive. At this time I just get myClip.getLo...

PclZip extract into new folder if folder already exists

i am using PclZip to extract zip file, my problem is how can i extract the zip file into different folder by creating a new folder if the folder is already exits.. Thanks for any help! ...