Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ShirasawaSama committed Dec 10, 2023
1 parent c404240 commit 19607b5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/main/java/com/eimsound/dsp/timestretchers/NativeFFT.java
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,8 @@ public int getSize() {
public static String getDefaultImplementation() {
init();
try {
return ((MemorySegment) fft_get_default_implementation.invokeExact()).getUtf8String(0L);
return ((MemorySegment) fft_get_default_implementation.invokeExact())
.reinterpret(255).getUtf8String(0L);
} catch (Throwable e) {
throw new RuntimeException(e);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,8 @@ public void reset() {
public static String getImplementation() {
init();
try {
return ((MemorySegment) resampler_get_implementation.invokeExact()).getUtf8String(0L);
return ((MemorySegment) resampler_get_implementation.invokeExact())
.reinterpret(255).getUtf8String(0L);
} catch (Throwable e) {
throw new RuntimeException(e);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ private static void init() {
public static String @NotNull [] getAllTimeStretcherNames() {
init();
try {
return ((MemorySegment) get_all_time_stretchers.invokeExact()).getUtf8String(0L).split(",");
return ((MemorySegment) get_all_time_stretchers.invokeExact())
.reinterpret(255).getUtf8String(0L).split(",");
} catch (Throwable e) {
throw new RuntimeException(e);
}
Expand Down

0 comments on commit 19607b5

Please sign in to comment.