mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-10-20 07:24:00 +00:00
Better audio error catching
This commit is contained in:
1 parent
d84b4e6f20
commit
56eea63aad
2 files changed
+17
-7
No files matched your search
@@ -10,7 +10,9 @@ public class AlsaAudioRenderer implements AudioRenderer {
|
||||
|
||||
@Override
|
||||
public void streamInitialized(int channelCount, int sampleRate) {
|
||||
AlsaAudio.init(channelCount, sampleRate);
|
||||
int ret = AlsaAudio.init(channelCount, sampleRate);
|
||||
if (ret != 0)
|
||||
throw new IllegalStateException("AVC decoder initialization failure: "+ret);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user