mirror of
https://github.com/samsonjs/media.git
synced 2026-04-10 12:05:47 +00:00
Add support for mono input to the GVR extension
Issue: #2710 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=159082518
This commit is contained in:
parent
cdcdf1d37c
commit
a913fd952f
2 changed files with 4 additions and 1 deletions
|
|
@ -25,7 +25,7 @@ android {
|
|||
|
||||
dependencies {
|
||||
compile project(':library-core')
|
||||
compile 'com.google.vr:sdk-audio:1.30.0'
|
||||
compile 'com.google.vr:sdk-audio:1.60.1'
|
||||
}
|
||||
|
||||
ext {
|
||||
|
|
|
|||
|
|
@ -82,6 +82,9 @@ public final class GvrAudioProcessor implements AudioProcessor {
|
|||
maybeReleaseGvrAudioSurround();
|
||||
int surroundFormat;
|
||||
switch (channelCount) {
|
||||
case 1:
|
||||
surroundFormat = GvrAudioSurround.SurroundFormat.SURROUND_MONO;
|
||||
break;
|
||||
case 2:
|
||||
surroundFormat = GvrAudioSurround.SurroundFormat.SURROUND_STEREO;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue