Skip to content

Commit

Permalink
fix audio being halved
Browse files Browse the repository at this point in the history
  • Loading branch information
valoeghese committed Feb 26, 2021
1 parent dd628af commit 8b9bd3b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ if (org.gradle.internal.os.OperatingSystem.current() == org.gradle.internal.os.O
}

group 'valoeghese'
version '1.1.2'
version '1.1.3'

switch (org.gradle.internal.os.OperatingSystem.current()) {
case org.gradle.internal.os.OperatingSystem.LINUX:
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/valoeghese/scalpel/util/ALUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public static AudioBuffer createBuffer(String fileName) throws IOException { //
stb_vorbis_get_info(decoder, info);

int channels = info.channels();
pcm = MemoryUtil.memAllocShort(stb_vorbis_stream_length_in_samples(decoder));
pcm = MemoryUtil.memAllocShort(stb_vorbis_stream_length_in_samples(decoder) * 2);
pcm.limit(stb_vorbis_get_samples_short_interleaved(decoder, channels, pcm) * channels);
stb_vorbis_close(decoder);
}
Expand Down

0 comments on commit 8b9bd3b

Please sign in to comment.