|
@@ -733,7 +733,7 @@ public class AccompanyFragment extends BaseMVPFragment<FragmentAccompanyBinding,
|
|
|
// } catch (JSONException e) {
|
|
|
// e.printStackTrace();
|
|
|
// }
|
|
|
- long bufferDuration = (long) wavRecorder.getBufferDuration();
|
|
|
+ long bufferDuration = wavRecorder != null ? (long) wavRecorder.getBufferDuration() : 0;
|
|
|
long time = System.currentTimeMillis();
|
|
|
long result = time - bufferDuration;
|
|
|
mPlayHelper.toPlay2(result, getFirstNoteTime(message), isMuteMode(message));
|