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); //实现按钮录音