android_prompts.h revision 24430c9070298f12e68b84c921add38da6ad0490
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
30//-----------------------------------------------------------------------------
31// Android AudioRecorder errors
32//----------------------
33#define ERROR_RECORDER_SINK_MUST_BE_ANDROIDSIMPLEBUFFERQUEUE \
34        "Cannot create AudioRecorder: data sink must be SL_DATALOCATOR_ANDROIDSIMPLEBUFFERQUEUE"
35#define ERROR_RECORDER_SINK_FORMAT_MUST_BE_PCM \
36        "Cannot create AudioRecorder: data sink must be in PCM format"
37#define ERROR_RECORDER_SOURCE_MUST_BE_IODEVICE \
38        "Cannot create AudioRecorder: data source must be SL_DATALOCATOR_IODEVICE"
39#define ERROR_RECORDER_IODEVICE_MUST_BE_AUDIOINPUT \
40        "Cannot create AudioRecorder: data source device type must be SL_IODEVICE_AUDIOINPUT"
41#define ERROR_RECORDER_INPUT_ID_MUST_BE_DEFAULT \
42        "Cannot create AudioRecorder: data source device ID must be SL_DEFAULTDEVICEID_AUDIOINPUT"
43#define ERROR_RECORDERPRESET_SET_UNKNOWN_PRESET \
44        "Cannot set recording preset: unknown or invalid preset"
45#define ERROR_RECORDERPRESET_REALIZED \
46        "Cannot set recording preset: audio recorder already realized"
47
48//-----------------------------------------------------------------------------
49// Android Configuration errors
50//----------------------
51#define ERROR_CONFIG_UNKNOWN_KEY \
52        "Configuration error: unknown key"
53#define ERROR_CONFIG_VALUESIZE_TOO_LOW \
54        "Configuration error: value size too low to store valid value"
55#define ERROR_CONFIG_NULL_PARAM \
56        "Configuration error: invalid NULL parameter"
57