1 /* 2 * Copyright (C) 2011 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 #ifndef VIDEOEDITORRESAMPLER_H 18 #define VIDEOEDITORRESAMPLER_H 19 #ifdef __cplusplus 20 extern "C" { 21 #endif /* __cplusplus */ 22 23 #include "M4OSA_Types.h" 24 25 M4OSA_Context LVAudioResamplerCreate(M4OSA_Int32 bitDepth, M4OSA_Int32 inChannelCount, 26 M4OSA_Int32 sampleRate, M4OSA_Int32 quality); 27 void LVAudiosetSampleRate(M4OSA_Context resamplerContext,M4OSA_Int32 inSampleRate); 28 void LVAudiosetVolume(M4OSA_Context resamplerContext, M4OSA_Int16 left, M4OSA_Int16 right) ; 29 void LVAudioresample_LowQuality(M4OSA_Int16* out, M4OSA_Int16* input, 30 M4OSA_Int32 outFrameCount, M4OSA_Context resamplerContext); 31 void LVDestroy(M4OSA_Context resamplerContext); 32 33 void MonoTo2I_16( const M4OSA_Int16 *src, 34 M4OSA_Int16 *dst, 35 M4OSA_Int16 n); 36 37 void From2iToMono_16( const M4OSA_Int16 *src, 38 M4OSA_Int16 *dst, 39 M4OSA_Int16 n); 40 #ifdef __cplusplus 41 } 42 #endif /* __cplusplus */ 43 #endif /* VIDEOEDITORRESAMPLER_H */ 44 45 46