enable AudioTrack player

dev
xufuji456 3 years ago
parent 55e83b8c04
commit f4559f157d
  1. 1
      app/src/main/java/com/frank/ffmpeg/activity/AudioHandleActivity.kt
  2. 2
      app/src/main/res/layout/activity_audio_handle.xml
  3. 4
      app/src/main/res/values/strings.xml

@ -198,7 +198,6 @@ class AudioHandleActivity : BaseActivity() {
}
R.id.btn_play_audio//use AudioTrack to play audio
-> {
// Thread { AudioPlayer().play(srcFile) }.start()
val audioIntent = Intent(this@AudioHandleActivity, AudioPlayActivity::class.java)
audioIntent.data = Uri.parse(srcFile)
startActivity(audioIntent)

@ -45,7 +45,7 @@
android:layout_height="wrap_content"
android:text="@string/audio_play"
android:layout_marginTop="10dp"
android:visibility="gone"/>
android:visibility="visible"/>
<Button
android:id="@+id/btn_play_opensl"

@ -4,8 +4,8 @@
<string name="audio_cut">音频剪切</string>
<string name="audio_concat">音频拼接</string>
<string name="audio_mix">音乐混音</string>
<string name="audio_play">音频解码AudioTrack播放</string>
<string name="audio_opensl">音频解码OpenSL播放</string>
<string name="audio_play">AudioTrack播放</string>
<string name="audio_opensl">OpenSL播放</string>
<string name="audio_encode">PCM编码</string>
<string name="pcm_concat">PCM合并</string>
<string name="audio_speed">音频速度</string>

Loading…
Cancel
Save