Skip to content

Commit

Permalink
Merge pull request yzyray#209 from awerty-noob/main
Browse files Browse the repository at this point in the history
fix occasional fails of playing Stone.wav
  • Loading branch information
yzyray authored Jan 18, 2023
2 parents be5a9ef + 287a845 commit cf489af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/featurecat/lizzie/util/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,7 @@ private static void playVoice(String wav, boolean isByoyomi) throws Exception {
sourceDataLine.start();
// Read from the data sent to the mixer input stream
int count;
byte tempBuffer[] = new byte[1024];
byte tempBuffer[] = new byte[8192];
while ((count = audioInputStream.read(tempBuffer, 0, tempBuffer.length)) != -1) {
if (count > 0) {
sourceDataLine.write(tempBuffer, 0, count);
Expand Down

0 comments on commit cf489af

Please sign in to comment.