
- Ensure that no memory is used by audio processors that are always inactive, by only allocating in flush() if active. If data was already allocated but a processor becomes inactive we assume that the allocation may be needed in future so do not remove it (e.g., in the case of ResamplingAudioProcessor). - Make SilenceSkippingAudioProcessor set up its buffers in flush(), and clarify that it is always necessary to call flush() if configure() returns true. - Make reset() reset all state for all processors. - Use @Nullable state or empty arrays for inactive audio processor buffers. - Miscellaneous style/consistency cleanup. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=190895783
43 lines
1.3 KiB
Groovy
43 lines
1.3 KiB
Groovy
// Copyright (C) 2017 The Android Open Source Project
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
apply from: '../../constants.gradle'
|
|
apply plugin: 'com.android.library'
|
|
|
|
android {
|
|
compileSdkVersion project.ext.compileSdkVersion
|
|
buildToolsVersion project.ext.buildToolsVersion
|
|
|
|
defaultConfig {
|
|
minSdkVersion 19
|
|
targetSdkVersion project.ext.targetSdkVersion
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation project(modulePrefix + 'library-core')
|
|
implementation 'com.android.support:support-annotations:' + supportLibraryVersion
|
|
implementation 'com.google.vr:sdk-audio:1.80.0'
|
|
}
|
|
|
|
ext {
|
|
javadocTitle = 'GVR extension'
|
|
}
|
|
apply from: '../../javadoc_library.gradle'
|
|
|
|
ext {
|
|
releaseArtifact = 'extension-gvr'
|
|
releaseDescription = 'Google VR extension for ExoPlayer.'
|
|
}
|
|
apply from: '../../publish.gradle'
|