Skip to content
Snippets Groups Projects
Commit 471727f5 authored by Tobias Ullerich's avatar Tobias Ullerich
Browse files

Fixed Audio Volume Bug in NativeAudio

parent 9f9744c1
No related branches found
No related tags found
No related merge requests found
......@@ -50,6 +50,7 @@ public class NativeAudioWinPluginImpl implements NativeAudioWinPlugin {
private void prepareBridging() throws IOException {
App app = ApplicationUtils.getApplication();
if (!app.isDebug()) {
Path resourceFolder = app.getPath(PathType.LIBRARY, "nawin");
if (Files.notExists(resourceFolder)) {
Files.createDirectories(resourceFolder);
......@@ -64,6 +65,7 @@ public class NativeAudioWinPluginImpl implements NativeAudioWinPlugin {
copyResource(resourceFolder, ASSETS, "NativeAudio.j4n.jar");
copyResource(resourceFolder, ASSETS, "NAudio.dll");
}
}
private void copyResource(Path resourceFolder, String packageName, String file) throws IOException {
IOUtils.copy(getClass().getClassLoader().getResourceAsStream(packageName + file), resourceFolder.resolve(file));
......
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment