michael@0: /* michael@0: * Copyright (C) 2010 The Android Open Source Project michael@0: * michael@0: * Licensed under the Apache License, Version 2.0 (the "License"); michael@0: * you may not use this file except in compliance with the License. michael@0: * You may obtain a copy of the License at michael@0: * michael@0: * http://www.apache.org/licenses/LICENSE-2.0 michael@0: * michael@0: * Unless required by applicable law or agreed to in writing, software michael@0: * distributed under the License is distributed on an "AS IS" BASIS, michael@0: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. michael@0: * See the License for the specific language governing permissions and michael@0: * limitations under the License. michael@0: */ michael@0: michael@0: /** michael@0: * This file is similar to the file "OpenSLES_AndroidConfiguration.h" found in michael@0: * the Android NDK, but removes the #ifdef __cplusplus defines, so we can keep michael@0: * using a C compiler in cubeb. michael@0: */ michael@0: michael@0: #ifndef OPENSL_ES_ANDROIDCONFIGURATION_H_ michael@0: #define OPENSL_ES_ANDROIDCONFIGURATION_H_ michael@0: michael@0: /*---------------------------------------------------------------------------*/ michael@0: /* Android AudioRecorder configuration */ michael@0: /*---------------------------------------------------------------------------*/ michael@0: michael@0: /** Audio recording preset */ michael@0: /** Audio recording preset key */ michael@0: #define SL_ANDROID_KEY_RECORDING_PRESET ((const SLchar*) "androidRecordingPreset") michael@0: /** Audio recording preset values */ michael@0: /** preset "none" cannot be set, it is used to indicate the current settings michael@0: * do not match any of the presets. */ michael@0: #define SL_ANDROID_RECORDING_PRESET_NONE ((SLuint32) 0x00000000) michael@0: /** generic recording configuration on the platform */ michael@0: #define SL_ANDROID_RECORDING_PRESET_GENERIC ((SLuint32) 0x00000001) michael@0: /** uses the microphone audio source with the same orientation as the camera michael@0: * if available, the main device microphone otherwise */ michael@0: #define SL_ANDROID_RECORDING_PRESET_CAMCORDER ((SLuint32) 0x00000002) michael@0: /** uses the main microphone tuned for voice recognition */ michael@0: #define SL_ANDROID_RECORDING_PRESET_VOICE_RECOGNITION ((SLuint32) 0x00000003) michael@0: michael@0: /*---------------------------------------------------------------------------*/ michael@0: /* Android AudioPlayer configuration */ michael@0: /*---------------------------------------------------------------------------*/ michael@0: michael@0: /** Audio playback stream type */ michael@0: /** Audio playback stream type key */ michael@0: #define SL_ANDROID_KEY_STREAM_TYPE ((const SLchar*) "androidPlaybackStreamType") michael@0: michael@0: /** Audio playback stream type values */ michael@0: /* same as android.media.AudioManager.STREAM_VOICE_CALL */ michael@0: #define SL_ANDROID_STREAM_VOICE ((SLint32) 0x00000000) michael@0: /* same as android.media.AudioManager.STREAM_SYSTEM */ michael@0: #define SL_ANDROID_STREAM_SYSTEM ((SLint32) 0x00000001) michael@0: /* same as android.media.AudioManager.STREAM_RING */ michael@0: #define SL_ANDROID_STREAM_RING ((SLint32) 0x00000002) michael@0: /* same as android.media.AudioManager.STREAM_MUSIC */ michael@0: #define SL_ANDROID_STREAM_MEDIA ((SLint32) 0x00000003) michael@0: /* same as android.media.AudioManager.STREAM_ALARM */ michael@0: #define SL_ANDROID_STREAM_ALARM ((SLint32) 0x00000004) michael@0: /* same as android.media.AudioManager.STREAM_NOTIFICATION */ michael@0: #define SL_ANDROID_STREAM_NOTIFICATION ((SLint32) 0x00000005) michael@0: michael@0: #endif /* OPENSL_ES_ANDROIDCONFIGURATION_H_ */