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 OPENSL_ES_ANDROIDMETADATA_H_ 18 #define OPENSL_ES_ANDROIDMETADATA_H_ 19 20 #ifdef __cplusplus 21 extern "C" { 22 #endif 23 24 /*---------------------------------------------------------------------------*/ 25 /* Android metadata keys */ 26 /*---------------------------------------------------------------------------*/ 27 28 /** 29 * Additional metadata keys to be used in SLMetadataExtractionItf: 30 * the ANDROID_KEY_PCMFORMAT_* keys follow the fields of the SLDataFormat_PCM struct, and as such 31 * all values corresponding to these keys are of SLuint32 type, and are defined as the fields 32 * of the same name in SLDataFormat_PCM. The exception is that sample rate is expressed here 33 * in Hz units, rather than in milliHz units. 34 */ 35 #define ANDROID_KEY_PCMFORMAT_NUMCHANNELS "AndroidPcmFormatNumChannels" 36 #define ANDROID_KEY_PCMFORMAT_SAMPLERATE "AndroidPcmFormatSampleRate" 37 #define ANDROID_KEY_PCMFORMAT_BITSPERSAMPLE "AndroidPcmFormatBitsPerSample" 38 #define ANDROID_KEY_PCMFORMAT_CONTAINERSIZE "AndroidPcmFormatContainerSize" 39 #define ANDROID_KEY_PCMFORMAT_CHANNELMASK "AndroidPcmFormatChannelMask" 40 #define ANDROID_KEY_PCMFORMAT_ENDIANNESS "AndroidPcmFormatEndianness" 41 42 43 #ifdef __cplusplus 44 } 45 #endif /* __cplusplus */ 46 47 #endif /* OPENSL_ES_ANDROIDMETADATA_H_ */ 48