lib/minim/src/ddf/minim/AudioPlayer.java
/**
    * Set the <code>AudioPlayer</code> to loop some number of times.
    * If it is already playing, the position
    * <i>will not</i> be reset to the beginning. 
    * If it is not playing, it will start playing.
    * If you previously called this method and then paused the
    * <code>AudioPlayer</code>, you can resume looping
    * by using the result of <code>getLoopCount()</code> as
    * the argument for this method. 
    * To loop indefinitely, use <code>loop()</code>.
    * 
    * @shortdesc Set the <code>AudioPlayer</code> to loop some number of times.
    * 
    * @param num
    *          int: the number of times to loop
    *          
    * @example AudioPlayer/loopNum
    *          
	* @related AudioPlayer
    */
Set the AudioPlayer to loop some number of times.
If it is already playing, the position
will not be reset to the beginning.
If it is not playing, it will start playing.
If you previously called this method and then paused the
AudioPlayer, you can resume looping
by using the result of getLoopCount() as
the argument for this method.
To loop indefinitely, use loop().

@shortdesc Set the AudioPlayer to loop some number of times.

@param num
int: the number of times to loop




Set the AudioPlayer to loop some number of times . If it is already playing the position will not be reset to the beginning . If it is not playing it will start playing . If you previously called this method and then paused the AudioPlayer you can resume looping by using the result of getLoopCount () as the argument for this method . To loop indefinitely use loop () . @shortdesc Set the AudioPlayer to loop some number of times . @param num int : the number of times to loop
public void loop(int num)
	{
		if ( isPaused )
		{
			int pos = recording.getMillisecondPosition();
			recording.loop( num );
			recording.setMillisecondPosition(pos);
		}
		else
		{
			recording.loop(num);
		}
		isPaused = false;
	}
public void loop ( int num ) { if ( isPaused ) { int pos = recording . getMillisecondPosition ( ) ; recording . loop ( num ) ; recording . setMillisecondPosition ( pos ) ; } else { recording . loop ( num ) ; } isPaused = false ; }
Set the <code>AudioPlayer</code> to loop some number of times.
Set the <code > AudioPlayer< / code > to loop some number of times .
// if we were paused, we need to grab the current state  // because calling loop totally resets it