Home
last modified time | relevance | path

Searched refs:mAudioTrack (Results 1 – 3 of 3) sorted by relevance

/development/samples/browseable/MidiSynth/src/com.example.android.common.midi/synth/
DSimpleAudioOutput.java34 private AudioTrack mAudioTrack; field in SimpleAudioOutput
52 mAudioTrack = createAudioTrack(frameRate); in start()
54 mAudioTrack.play(); in start()
77 return mAudioTrack.write(buffer, offset, length, in write()
82 if (mAudioTrack != null) { in stop()
83 mAudioTrack.stop(); in stop()
84 mAudioTrack = null; in stop()
93 return mAudioTrack; in getAudioTrack()
/development/samples/browseable/MidiScope/src/com.example.android.common.midi/synth/
DSimpleAudioOutput.java34 private AudioTrack mAudioTrack; field in SimpleAudioOutput
52 mAudioTrack = createAudioTrack(frameRate); in start()
54 mAudioTrack.play(); in start()
77 return mAudioTrack.write(buffer, offset, length, in write()
82 if (mAudioTrack != null) { in stop()
83 mAudioTrack.stop(); in stop()
84 mAudioTrack = null; in stop()
93 return mAudioTrack; in getAudioTrack()
/development/samples/browseable/WearSpeakerSample/src/com.example.android.wearable.speaker/
DSoundRecorder.java179 private AudioTrack mAudioTrack; in startPlay()
191 mAudioTrack = new AudioTrack(AudioManager.STREAM_MUSIC, RECORDING_RATE, in startPlay()
196 mAudioTrack.setVolume(AudioTrack.getMaxVolume()); in startPlay()
197 mAudioTrack.play(); in startPlay()
203 mAudioTrack.write(buffer, 0, read); in startPlay()
217 mAudioTrack.release(); in startPlay()