Fix for using default soundcard

This commit is contained in:
Iwan Timmer
2014-02-15 20:03:02 +00:00
parent 8996cd9283
commit 26a90429a0
4 changed files with 8 additions and 9 deletions

View File

@@ -151,7 +151,7 @@ public class Limelight implements NvConnectionListener {
int refresh = 60;
boolean parse = true;
String mapping = null;
String audio = "hw:0";
String audio = "hw:0,0";
for (int i = 0; i < args.length - 1; i++) {
if (args[i].equals("-input")) {

View File

@@ -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();

View File

@@ -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);
}