Jean-Michel Trivi | 0008a48 | 2016-12-26 15:58:24 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2016 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 ANDROID_AUDIOMANAGER_H |
| 18 | #define ANDROID_AUDIOMANAGER_H |
| 19 | |
| 20 | namespace android { |
| 21 | |
| 22 | // must be kept in sync with definitions in AudioPlaybackConfiguration.java |
| 23 | |
| 24 | #define PLAYER_PIID_INVALID -1 |
| 25 | |
Jean-Michel Trivi | 6318932 | 2017-01-05 18:05:28 -0800 | [diff] [blame] | 26 | typedef enum { |
Jean-Michel Trivi | 0008a48 | 2016-12-26 15:58:24 -0800 | [diff] [blame] | 27 | PLAYER_TYPE_SLES_AUDIOPLAYER_BUFFERQUEUE = 11, |
| 28 | PLAYER_TYPE_SLES_AUDIOPLAYER_URI_FD = 12, |
Jean-Michel Trivi | 6318932 | 2017-01-05 18:05:28 -0800 | [diff] [blame] | 29 | } player_type_t; |
Jean-Michel Trivi | 0008a48 | 2016-12-26 15:58:24 -0800 | [diff] [blame] | 30 | |
Jean-Michel Trivi | 6318932 | 2017-01-05 18:05:28 -0800 | [diff] [blame] | 31 | typedef enum { |
Jean-Michel Trivi | 0008a48 | 2016-12-26 15:58:24 -0800 | [diff] [blame] | 32 | PLAYER_STATE_UNKNOWN = -1, |
| 33 | PLAYER_STATE_RELEASED = 0, |
| 34 | PLAYER_STATE_IDLE = 1, |
| 35 | PLAYER_STATE_STARTED = 2, |
| 36 | PLAYER_STATE_PAUSED = 3, |
| 37 | PLAYER_STATE_STOPPED = 4, |
Jean-Michel Trivi | 6318932 | 2017-01-05 18:05:28 -0800 | [diff] [blame] | 38 | } player_state_t; |
Jean-Michel Trivi | 0008a48 | 2016-12-26 15:58:24 -0800 | [diff] [blame] | 39 | |
| 40 | }; // namespace android |
| 41 | |
| 42 | #endif // ANDROID_AUDIOMANAGER_H |