We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpIntegration › URGENT!!stopping playback when window is closed
Page Index Toggle Pages: 1
URGENT!!stopping playback when window is closed (Read 686 times)
URGENT!!stopping playback when window is closed
Mar 26th, 2007, 7:27pm
 
Hi im using Processing in eclipse and runnin PApplets to play songs through the ESS library.To start a song the useer clicks a button in the swing GUI and the ESS starts running.I want to have the ability to stop the streaming of audio data when the frame is closed..does anyone have any ideas??
Re: URGENT!!stopping playback when window is close
Reply #1 - Mar 27th, 2007, 9:43am
 
You can stop playback with Ess.stop();


If you want to do it automatically, I think you just need to add the following to your processing code:

Code:
public void stop() { 
Ess.stop();
super.stop();
}
Page Index Toggle Pages: 1