title: Android Tone Generator works on S3; but not on S4
body: <p>I have these code:</p>
  
  <pre><code>          int sampleRate = 44100;
            int freqOfTone = 1000;
            AudioTrack track;
            short samples[] = new short[sampleRate];
            track = new AudioTrack(AudioManager.STREAM_MUSIC,
                     sampleRate, AudioFormat.CHANNEL_OUT_MONO,
                         AudioFormat.ENCODING_PCM_16BIT,samples.length*Short.SIZE/Byte.SIZE,
                                                  AudioTrack.MODE_STATIC);
            double angle = 0;
            double increment = (2 * Math.PI * freqOfTone / sampleRate);
            for (int i = 0; i &lt; samples.length-1; i++) {
                      samples[i] =   (short) (Math.sin(angle) * Short.MAX_VALUE);
                      angle += increment;
            }                
  
            track.write(samples, 0, samples.length);  
  
            track.play(); 
  </code></pre>
  
  <p>it supposes to generate a 1 second 1k sinus beep.
  one could hear the beep on S3; but it does not work on S4.
  could anybody tell how to make this beep on S4?</p>