android_prompts.h revision 262059f71a68edc5e510427c63f5f1623d3672a8
1/* 2 * Copyright (C) 2010 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 18//----------------------------------------------------------------------------- 19// Android AudioPlayer errors 20//---------------------- 21#define ERROR_PLAYERSTREAMTYPE_SET_UNKNOWN_TYPE \ 22 "Cannot set stream type: unknown or invalid stream type" 23#define ERROR_PLAYERSTREAMTYPE_REALIZED \ 24 "Cannot set stream type: audio player already realized" 25#define ERROR_PLAYERREALIZE_UNKNOWN_DATASOURCE_LOCATOR \ 26 "Cannot realize AudioPlayer: with unknown data source locator" 27#define ERROR_PLAYER_NEW_NULL_TRACK \ 28 "Internal error: new AudioTrack shouldn't be NULL" 29#define ERROR_PLAYER_PREFETCH_d \ 30 "Error (%d) encountered while prefetching" 31 32//----------------------------------------------------------------------------- 33// Android AudioRecorder errors 34//---------------------- 35#define ERROR_RECORDER_SINK_MUST_BE_ANDROIDSIMPLEBUFFERQUEUE \ 36 "Cannot create AudioRecorder: data sink must be SL_DATALOCATOR_ANDROIDSIMPLEBUFFERQUEUE" 37#define ERROR_RECORDER_SINK_FORMAT_MUST_BE_PCM \ 38 "Cannot create AudioRecorder: data sink must be in PCM format" 39#define ERROR_RECORDER_SOURCE_MUST_BE_IODEVICE \ 40 "Cannot create AudioRecorder: data source must be SL_DATALOCATOR_IODEVICE" 41#define ERROR_RECORDER_IODEVICE_MUST_BE_AUDIOINPUT \ 42 "Cannot create AudioRecorder: data source device type must be SL_IODEVICE_AUDIOINPUT" 43#define ERROR_RECORDER_INPUT_ID_MUST_BE_DEFAULT \ 44 "Cannot create AudioRecorder: data source device ID must be SL_DEFAULTDEVICEID_AUDIOINPUT" 45#define ERROR_RECORDERPRESET_SET_UNKNOWN_PRESET \ 46 "Cannot set recording preset: unknown or invalid preset" 47#define ERROR_RECORDERPRESET_REALIZED \ 48 "Cannot set recording preset: audio recorder already realized" 49 50//----------------------------------------------------------------------------- 51// Android Configuration errors 52//---------------------- 53#define ERROR_CONFIG_UNKNOWN_KEY \ 54 "Configuration error: unknown key" 55#define ERROR_CONFIG_VALUESIZE_TOO_LOW \ 56 "Configuration error: value size too low to store valid value" 57#define ERROR_CONFIG_NULL_PARAM \ 58 "Configuration error: invalid NULL parameter" 59