mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-04-16 21:40:00 +00:00
Fix for using default soundcard
This commit is contained in:
@@ -9,7 +9,7 @@ public class AlsaAudio {
|
||||
System.loadLibrary("nv_alsa");
|
||||
}
|
||||
|
||||
public static native int init(int channelCount, int sampleRate, byte[] device);
|
||||
public static native int init(int channelCount, int sampleRate, String device);
|
||||
|
||||
public static native void close();
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ public class AlsaAudioRenderer implements AudioRenderer {
|
||||
|
||||
@Override
|
||||
public void streamInitialized(int channelCount, int sampleRate) {
|
||||
int ret = AlsaAudio.init(channelCount, sampleRate, device.getBytes());
|
||||
int ret = AlsaAudio.init(channelCount, sampleRate, device);
|
||||
if (ret != 0)
|
||||
throw new IllegalStateException("AVC decoder initialization failure: "+ret);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user