mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-04-22 08:20:12 +00:00
Throw an exception if an invalid audio configuration is specified
This commit is contained in:
@@ -84,6 +84,9 @@ public class StreamConfiguration {
|
|||||||
config.audioChannelCount = CHANNEL_COUNT_5_1;
|
config.audioChannelCount = CHANNEL_COUNT_5_1;
|
||||||
config.audioChannelMask = CHANNEL_MASK_5_1;
|
config.audioChannelMask = CHANNEL_MASK_5_1;
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
throw new IllegalArgumentException("Invalid audio configuration");
|
||||||
|
}
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user