title: audioTrack play() plays only once
body: <p>using Android's AudioTrack for the first time.
  I have created a class AndroidAudioDevice. I init it with this constructor:</p>
  
  <pre><code> public AndroidAudioDevice( ){  // constructor
             Log.i("Audio", "constructor");
             int minSize =AudioTrack.getMinBufferSize( SAMPLE_RATE, AudioFormat.CHANNEL_CONFIGURATION_MONO, AudioFormat.ENCODING_PCM_16BIT );        
             track = new AudioTrack( AudioManager.STREAM_MUSIC, SAMPLE_RATE, 
                                                  AudioFormat.CHANNEL_CONFIGURATION_MONO, AudioFormat.ENCODING_PCM_16BIT, 
                                                  minSize, AudioTrack.MODE_STATIC);
  
             createSample();
             track.write( buffer, 0, buffer.length );
         };
  </code></pre>
  
  <p>(SAMPLE_RATE is set to 44100).</p>
  
  <p>My main activity simply has a button, which calls </p>
  
  <pre><code>public void playSound(){
             track.play();
             Log.i("Audio", "playState: " + track.getPlayState());
         };
  
  this works find BUT ONLY ONCE! If I press the button again no sound anymore. 
  </code></pre>
  
  <p>BTW: Log.i displays a "3" for the playstate</p>
  
  <p>Any idea why this works only once? Thanks in advance</p>