From 3415da0e231ce924b555cf63eb41013e8e2e8c61 Mon Sep 17 00:00:00 2001 From: square group sky <2992305964@qq.com> Date: Tue, 26 Nov 2019 23:09:39 +0800 Subject: [PATCH] 1 --- .../src/main/java/net/micode/notes/audiodemo/MainActivity.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/src/main/java/net/micode/notes/audiodemo/MainActivity.java b/src/app/src/main/java/net/micode/notes/audiodemo/MainActivity.java index dcd2a31..8c25711 100644 --- a/src/app/src/main/java/net/micode/notes/audiodemo/MainActivity.java +++ b/src/app/src/main/java/net/micode/notes/audiodemo/MainActivity.java @@ -87,6 +87,7 @@ public class MainActivity extends AppCompatActivity { } //利用AudioRecordManager类获取设置录音位置 AudioRecordManager.getInstance(mContext).setAudioSavePath(mAudioDir.getAbsolutePath()); + //利用AudioRecordManager类设置最大录音时间 AudioRecordManager.getInstance(this).setMaxVoiceDuration(MAX_VOICE_TIME); //实现按钮录音