优化后的代码
This commit is contained in:
parent
c62a0c48d6
commit
0806376687
@ -174,12 +174,12 @@ class MainActivity : BaseViewModelActivity<ActivityMainBinding, MainViewModel>()
|
|||||||
1
|
1
|
||||||
)
|
)
|
||||||
loadLocalJsonAndPlay()
|
loadLocalJsonAndPlay()
|
||||||
// val file = File(
|
val file = File(
|
||||||
// getExternalFilesDir(Environment.DIRECTORY_DOWNLOADS)!!.getAbsolutePath(),
|
getExternalFilesDir(Environment.DIRECTORY_DOWNLOADS)!!.getAbsolutePath(),
|
||||||
// "xxx.wav"
|
"xxx.wav"
|
||||||
// )
|
)
|
||||||
// AudioDebugUtil.saveFloatPcmAsWav(audio, file)
|
AudioDebugUtil.saveFloatPcmAsWav(audio, file)
|
||||||
// LogUtils.dTag("audioxx", "WAV saved: ${file.path}, samples=${audio.size}")
|
LogUtils.dTag("audioxx", "WAV saved: ${file.path}, samples=${audio.size}")
|
||||||
|
|
||||||
},
|
},
|
||||||
onStateChanged = { state ->
|
onStateChanged = { state ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user