SoundPool not part of Global Music Stream
<p>I am using a <code>SoundPool</code> to launch clips and I am trying to get the <code>AudioManager.STREAM_MUSIC</code> for a <code>Visualizer</code>.</p>

<p>I am able to get visualizer data for other apps such as an MP3 player in the background, my visualizer view reacts correctly. However my sound played from the sound pool object do not register view changes, the <code>onDataCaptureListener</code> is reporting data.</p>

<p>If I play and pause an MP3 via the third party apps notification controls my visualizer view stays reacting correctly.</p>

<p><strong>QUESTION:</strong>
Are <code>SoundPool</code> clips not reported on the global stream?</p>

<p>My code for accessing the global stream works because it reports the music player correctly.</p>

<pre><code>    final VisualizerView vVisualizer = new VisualizerView(this);
    visualizer = new Visualizer(0);
    visualizer.setEnabled(false);
    visualizer.setCaptureSize(Visualizer.getCaptureSizeRange()[1]);
    visualizer.setDataCaptureListener(new OnDataCaptureListener() {

        @Override
        public void onWaveFormDataCapture(Visualizer visualizer,
                byte[] waveform, int samplingRate) {
            vVisualizer.updateVisualizer(waveform);
        }

        @Override
        public void onFftDataCapture(Visualizer visualizer, byte[] fft,
                int samplingRate) {
        }
    }, Visualizer.getMaxCaptureRate(), true, false);
    visualizer.setEnabled(true);
</code></pre>

<p>My SoundPool</p>

<pre><code>        mSoundPool = new SoundPool(names.length, AudioManager.STREAM_MUSIC,
                0);
</code></pre>

<p>Please and thank you;</p>

<p><strong>EDIT:</strong></p>

<p>I tried making <code>AudioRecord</code> and <code>AudioTrack</code> instances to funnel the audio data to the <code>Visualizer</code> by passing the <code>AudioTrack</code> <code>getAudioSessionId</code> to the <code>Visualizer</code> but that didn't work either. Same reuslts.</p>

<p><strong>EDIT2:</strong></p>

<p>So it seems to work correctly on a Samsung GS3 running AOSPA but does not work on the Nexus4? Both 4.2.2.</p>
