Commit a913fd95 by andrewlewis Committed by Oliver Woodman

Add support for mono input to the GVR extension

Issue: #2710

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=159082518
parent cdcdf1d3
...@@ -25,7 +25,7 @@ android { ...@@ -25,7 +25,7 @@ android {
dependencies { dependencies {
compile project(':library-core') compile project(':library-core')
compile 'com.google.vr:sdk-audio:1.30.0' compile 'com.google.vr:sdk-audio:1.60.1'
} }
ext { ext {
......
...@@ -82,6 +82,9 @@ public final class GvrAudioProcessor implements AudioProcessor { ...@@ -82,6 +82,9 @@ public final class GvrAudioProcessor implements AudioProcessor {
maybeReleaseGvrAudioSurround(); maybeReleaseGvrAudioSurround();
int surroundFormat; int surroundFormat;
switch (channelCount) { switch (channelCount) {
case 1:
surroundFormat = GvrAudioSurround.SurroundFormat.SURROUND_MONO;
break;
case 2: case 2:
surroundFormat = GvrAudioSurround.SurroundFormat.SURROUND_STEREO; surroundFormat = GvrAudioSurround.SurroundFormat.SURROUND_STEREO;
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment