Phil Burk | 2355edb | 2016-12-26 13:54:02 -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 | |
Phil Burk | 5ed503c | 2017-02-01 09:38:15 -0800 | [diff] [blame] | 17 | #ifndef AAUDIO_AAUDIO_SERVICE_STREAM_BASE_H |
| 18 | #define AAUDIO_AAUDIO_SERVICE_STREAM_BASE_H |
Phil Burk | 2355edb | 2016-12-26 13:54:02 -0800 | [diff] [blame] | 19 | |
Phil Burk | 71f35bb | 2017-04-13 16:05:07 -0700 | [diff] [blame] | 20 | #include <assert.h> |
Phil Burk | c0c70e3 | 2017-02-09 13:18:38 -0800 | [diff] [blame] | 21 | #include <mutex> |
Phil Burk | dec33ab | 2017-01-17 14:48:16 -0800 | [diff] [blame] | 22 | |
Phil Burk | 97350f9 | 2017-07-21 15:59:44 -0700 | [diff] [blame] | 23 | #include <media/AudioClient.h> |
Phil Burk | 11e8d33 | 2017-05-24 09:59:02 -0700 | [diff] [blame] | 24 | #include <utils/RefBase.h> |
| 25 | |
Phil Burk | 2355edb | 2016-12-26 13:54:02 -0800 | [diff] [blame] | 26 | #include "fifo/FifoBuffer.h" |
Phil Burk | c0c70e3 | 2017-02-09 13:18:38 -0800 | [diff] [blame] | 27 | #include "binding/IAAudioService.h" |
| 28 | #include "binding/AudioEndpointParcelable.h" |
| 29 | #include "binding/AAudioServiceMessage.h" |
| 30 | #include "utility/AAudioUtilities.h" |
Phil Burk | 97350f9 | 2017-07-21 15:59:44 -0700 | [diff] [blame] | 31 | #include "utility/AudioClock.h" |
Phil Burk | c0c70e3 | 2017-02-09 13:18:38 -0800 | [diff] [blame] | 32 | |
Phil Burk | 2355edb | 2016-12-26 13:54:02 -0800 | [diff] [blame] | 33 | #include "SharedRingBuffer.h" |
Phil Burk | 5ed503c | 2017-02-01 09:38:15 -0800 | [diff] [blame] | 34 | #include "AAudioThread.h" |
Phil Burk | 523b304 | 2017-09-13 13:03:08 -0700 | [diff] [blame] | 35 | |
| 36 | namespace android { |
| 37 | class AAudioService; |
| 38 | } |
Phil Burk | 2355edb | 2016-12-26 13:54:02 -0800 | [diff] [blame] | 39 | |
Phil Burk | 5ed503c | 2017-02-01 09:38:15 -0800 | [diff] [blame] | 40 | namespace aaudio { |
Phil Burk | 2355edb | 2016-12-26 13:54:02 -0800 | [diff] [blame] | 41 | |
Phil Burk | 39f02dd | 2017-08-04 09:13:31 -0700 | [diff] [blame] | 42 | class AAudioServiceEndpoint; |
| 43 | |
Phil Burk | 2355edb | 2016-12-26 13:54:02 -0800 | [diff] [blame] | 44 | // We expect the queue to only have a few commands. |
| 45 | // This should be way more than we need. |
| 46 | #define QUEUE_UP_CAPACITY_COMMANDS (128) |
| 47 | |
Phil Burk | c0c70e3 | 2017-02-09 13:18:38 -0800 | [diff] [blame] | 48 | /** |
Phil Burk | 39f02dd | 2017-08-04 09:13:31 -0700 | [diff] [blame] | 49 | * Each instance of AAudioServiceStreamBase corresponds to a client stream. |
| 50 | * It uses a subclass of AAudioServiceEndpoint to communicate with the underlying device or port. |
Phil Burk | c0c70e3 | 2017-02-09 13:18:38 -0800 | [diff] [blame] | 51 | */ |
| 52 | class AAudioServiceStreamBase |
Phil Burk | 11e8d33 | 2017-05-24 09:59:02 -0700 | [diff] [blame] | 53 | : public virtual android::RefBase |
Phil Burk | 39f02dd | 2017-08-04 09:13:31 -0700 | [diff] [blame] | 54 | , public AAudioStreamParameters |
Phil Burk | 11e8d33 | 2017-05-24 09:59:02 -0700 | [diff] [blame] | 55 | , public Runnable { |
Phil Burk | 2355edb | 2016-12-26 13:54:02 -0800 | [diff] [blame] | 56 | |
| 57 | public: |
Phil Burk | 39f02dd | 2017-08-04 09:13:31 -0700 | [diff] [blame] | 58 | AAudioServiceStreamBase(android::AAudioService &aAudioService); |
| 59 | |
Phil Burk | 5ed503c | 2017-02-01 09:38:15 -0800 | [diff] [blame] | 60 | virtual ~AAudioServiceStreamBase(); |
Phil Burk | 2355edb | 2016-12-26 13:54:02 -0800 | [diff] [blame] | 61 | |
| 62 | enum { |
| 63 | ILLEGAL_THREAD_ID = 0 |
| 64 | }; |
| 65 | |
Phil Burk | a5222e2 | 2017-07-28 13:31:14 -0700 | [diff] [blame] | 66 | static std::string dumpHeader(); |
| 67 | |
| 68 | // does not include EOL |
| 69 | virtual std::string dump() const; |
Phil Burk | 4501b35 | 2017-06-29 18:12:36 -0700 | [diff] [blame] | 70 | |
Phil Burk | c0c70e3 | 2017-02-09 13:18:38 -0800 | [diff] [blame] | 71 | // ------------------------------------------------------------------- |
Phil Burk | 2355edb | 2016-12-26 13:54:02 -0800 | [diff] [blame] | 72 | /** |
| 73 | * Open the device. |
| 74 | */ |
Phil Burk | 39f02dd | 2017-08-04 09:13:31 -0700 | [diff] [blame] | 75 | virtual aaudio_result_t open(const aaudio::AAudioStreamRequest &request) = 0; |
Phil Burk | c0c70e3 | 2017-02-09 13:18:38 -0800 | [diff] [blame] | 76 | |
| 77 | virtual aaudio_result_t close(); |
Phil Burk | 2355edb | 2016-12-26 13:54:02 -0800 | [diff] [blame] | 78 | |
| 79 | /** |
Phil Burk | 39f02dd | 2017-08-04 09:13:31 -0700 | [diff] [blame] | 80 | * Start the flow of audio data. |
| 81 | * |
| 82 | * This is not guaranteed to be synchronous but it currently is. |
| 83 | * An AAUDIO_SERVICE_EVENT_STARTED will be sent to the client when complete. |
Phil Burk | 2355edb | 2016-12-26 13:54:02 -0800 | [diff] [blame] | 84 | */ |
Phil Burk | 71f35bb | 2017-04-13 16:05:07 -0700 | [diff] [blame] | 85 | virtual aaudio_result_t start(); |
Phil Burk | 2355edb | 2016-12-26 13:54:02 -0800 | [diff] [blame] | 86 | |
| 87 | /** |
Phil Burk | 39f02dd | 2017-08-04 09:13:31 -0700 | [diff] [blame] | 88 | * Stop the flow of data so that start() can resume without loss of data. |
| 89 | * |
| 90 | * This is not guaranteed to be synchronous but it currently is. |
| 91 | * An AAUDIO_SERVICE_EVENT_PAUSED will be sent to the client when complete. |
| 92 | */ |
Phil Burk | 71f35bb | 2017-04-13 16:05:07 -0700 | [diff] [blame] | 93 | virtual aaudio_result_t pause(); |
| 94 | |
| 95 | /** |
Phil Burk | 39f02dd | 2017-08-04 09:13:31 -0700 | [diff] [blame] | 96 | * Stop the flow of data after the currently queued data has finished playing. |
| 97 | * |
| 98 | * This is not guaranteed to be synchronous but it currently is. |
| 99 | * An AAUDIO_SERVICE_EVENT_STOPPED will be sent to the client when complete. |
| 100 | * |
Phil Burk | 71f35bb | 2017-04-13 16:05:07 -0700 | [diff] [blame] | 101 | */ |
| 102 | virtual aaudio_result_t stop(); |
Phil Burk | 2355edb | 2016-12-26 13:54:02 -0800 | [diff] [blame] | 103 | |
Phil Burk | 98d6d92 | 2017-07-06 11:52:45 -0700 | [diff] [blame] | 104 | aaudio_result_t stopTimestampThread(); |
| 105 | |
Phil Burk | 2355edb | 2016-12-26 13:54:02 -0800 | [diff] [blame] | 106 | /** |
Phil Burk | 39f02dd | 2017-08-04 09:13:31 -0700 | [diff] [blame] | 107 | * Discard any data held by the underlying HAL or Service. |
| 108 | * |
| 109 | * An AAUDIO_SERVICE_EVENT_FLUSHED will be sent to the client when complete. |
Phil Burk | 2355edb | 2016-12-26 13:54:02 -0800 | [diff] [blame] | 110 | */ |
Phil Burk | 71f35bb | 2017-04-13 16:05:07 -0700 | [diff] [blame] | 111 | virtual aaudio_result_t flush(); |
Phil Burk | 2355edb | 2016-12-26 13:54:02 -0800 | [diff] [blame] | 112 | |
Phil Burk | 39f02dd | 2017-08-04 09:13:31 -0700 | [diff] [blame] | 113 | |
Eric Laurent | cb4dae2 | 2017-07-01 19:39:32 -0700 | [diff] [blame] | 114 | virtual aaudio_result_t startClient(const android::AudioClient& client __unused, |
| 115 | audio_port_handle_t *clientHandle __unused) { |
Phil Burk | 39f02dd | 2017-08-04 09:13:31 -0700 | [diff] [blame] | 116 | ALOGD("AAudioServiceStreamBase::startClient(%p, ...) AAUDIO_ERROR_UNAVAILABLE", &client); |
Eric Laurent | cb4dae2 | 2017-07-01 19:39:32 -0700 | [diff] [blame] | 117 | return AAUDIO_ERROR_UNAVAILABLE; |
| 118 | } |
| 119 | |
| 120 | virtual aaudio_result_t stopClient(audio_port_handle_t clientHandle __unused) { |
Phil Burk | 39f02dd | 2017-08-04 09:13:31 -0700 | [diff] [blame] | 121 | ALOGD("AAudioServiceStreamBase::stopClient(%d) AAUDIO_ERROR_UNAVAILABLE", clientHandle); |
Eric Laurent | cb4dae2 | 2017-07-01 19:39:32 -0700 | [diff] [blame] | 122 | return AAUDIO_ERROR_UNAVAILABLE; |
| 123 | } |
| 124 | |
Phil Burk | 11e8d33 | 2017-05-24 09:59:02 -0700 | [diff] [blame] | 125 | bool isRunning() const { |
| 126 | return mState == AAUDIO_STREAM_STATE_STARTED; |
| 127 | } |
Eric Laurent | cb4dae2 | 2017-07-01 19:39:32 -0700 | [diff] [blame] | 128 | |
Phil Burk | c0c70e3 | 2017-02-09 13:18:38 -0800 | [diff] [blame] | 129 | // ------------------------------------------------------------------- |
Phil Burk | 2355edb | 2016-12-26 13:54:02 -0800 | [diff] [blame] | 130 | |
Phil Burk | c0c70e3 | 2017-02-09 13:18:38 -0800 | [diff] [blame] | 131 | /** |
Phil Burk | 2329638 | 2017-11-20 15:45:11 -0800 | [diff] [blame] | 132 | * Send a message to the client with an int64_t data value. |
Phil Burk | c0c70e3 | 2017-02-09 13:18:38 -0800 | [diff] [blame] | 133 | */ |
| 134 | aaudio_result_t sendServiceEvent(aaudio_service_event_t event, |
Phil Burk | c0c70e3 | 2017-02-09 13:18:38 -0800 | [diff] [blame] | 135 | int64_t dataLong = 0); |
Phil Burk | 2329638 | 2017-11-20 15:45:11 -0800 | [diff] [blame] | 136 | /** |
| 137 | * Send a message to the client with an double data value. |
| 138 | */ |
| 139 | aaudio_result_t sendServiceEvent(aaudio_service_event_t event, |
| 140 | double dataDouble); |
Phil Burk | dec33ab | 2017-01-17 14:48:16 -0800 | [diff] [blame] | 141 | |
Phil Burk | c0c70e3 | 2017-02-09 13:18:38 -0800 | [diff] [blame] | 142 | /** |
| 143 | * Fill in a parcelable description of stream. |
| 144 | */ |
| 145 | aaudio_result_t getDescription(AudioEndpointParcelable &parcelable); |
Phil Burk | 2355edb | 2016-12-26 13:54:02 -0800 | [diff] [blame] | 146 | |
Phil Burk | 2355edb | 2016-12-26 13:54:02 -0800 | [diff] [blame] | 147 | |
Phil Burk | c0c70e3 | 2017-02-09 13:18:38 -0800 | [diff] [blame] | 148 | void setRegisteredThread(pid_t pid) { |
Phil Burk | 2355edb | 2016-12-26 13:54:02 -0800 | [diff] [blame] | 149 | mRegisteredClientThread = pid; |
| 150 | } |
Phil Burk | dec33ab | 2017-01-17 14:48:16 -0800 | [diff] [blame] | 151 | |
Phil Burk | c0c70e3 | 2017-02-09 13:18:38 -0800 | [diff] [blame] | 152 | pid_t getRegisteredThread() const { |
Phil Burk | 2355edb | 2016-12-26 13:54:02 -0800 | [diff] [blame] | 153 | return mRegisteredClientThread; |
| 154 | } |
| 155 | |
Phil Burk | c0c70e3 | 2017-02-09 13:18:38 -0800 | [diff] [blame] | 156 | int32_t getFramesPerBurst() const { |
| 157 | return mFramesPerBurst; |
| 158 | } |
| 159 | |
Phil Burk | c0c70e3 | 2017-02-09 13:18:38 -0800 | [diff] [blame] | 160 | void run() override; // to implement Runnable |
| 161 | |
Phil Burk | 5ef003b | 2017-06-30 11:43:37 -0700 | [diff] [blame] | 162 | void disconnect(); |
Phil Burk | c0c70e3 | 2017-02-09 13:18:38 -0800 | [diff] [blame] | 163 | |
Phil Burk | 39f02dd | 2017-08-04 09:13:31 -0700 | [diff] [blame] | 164 | const android::AudioClient &getAudioClient() { |
| 165 | return mMmapClient; |
| 166 | } |
| 167 | |
Phil Burk | 2ac035f | 2017-06-23 14:51:14 -0700 | [diff] [blame] | 168 | uid_t getOwnerUserId() const { |
Eric Laurent | cb4dae2 | 2017-07-01 19:39:32 -0700 | [diff] [blame] | 169 | return mMmapClient.clientUid; |
Phil Burk | 2ac035f | 2017-06-23 14:51:14 -0700 | [diff] [blame] | 170 | } |
| 171 | |
Phil Burk | b63320a | 2017-06-30 10:28:20 -0700 | [diff] [blame] | 172 | pid_t getOwnerProcessId() const { |
Eric Laurent | cb4dae2 | 2017-07-01 19:39:32 -0700 | [diff] [blame] | 173 | return mMmapClient.clientPid; |
Phil Burk | b63320a | 2017-06-30 10:28:20 -0700 | [diff] [blame] | 174 | } |
| 175 | |
Phil Burk | 11e8d33 | 2017-05-24 09:59:02 -0700 | [diff] [blame] | 176 | aaudio_handle_t getHandle() const { |
| 177 | return mHandle; |
| 178 | } |
| 179 | void setHandle(aaudio_handle_t handle) { |
| 180 | mHandle = handle; |
| 181 | } |
| 182 | |
Phil Burk | 5a26e66 | 2017-07-07 12:44:48 -0700 | [diff] [blame] | 183 | aaudio_stream_state_t getState() const { |
| 184 | return mState; |
| 185 | } |
| 186 | |
Phil Burk | 39f02dd | 2017-08-04 09:13:31 -0700 | [diff] [blame] | 187 | void onVolumeChanged(float volume); |
| 188 | |
Phil Burk | 2329638 | 2017-11-20 15:45:11 -0800 | [diff] [blame] | 189 | /** |
| 190 | * Set false when the stream is started. |
| 191 | * Set true when data is first read from the stream. |
| 192 | * @param b |
| 193 | */ |
| 194 | void setFlowing(bool b) { |
| 195 | mFlowing = b; |
| 196 | } |
| 197 | |
| 198 | bool isFlowing() const { |
| 199 | return mFlowing; |
| 200 | } |
| 201 | |
Phil Burk | 9486252 | 2017-09-13 21:31:36 -0700 | [diff] [blame^] | 202 | /** |
| 203 | * Atomically increment the number of active references to the stream by AAudioService. |
| 204 | * @return value after the increment |
| 205 | */ |
| 206 | int32_t incrementServiceReferenceCount(); |
| 207 | |
| 208 | /** |
| 209 | * Atomically decrement the number of active references to the stream by AAudioService. |
| 210 | * @return value after the decrement |
| 211 | */ |
| 212 | int32_t decrementServiceReferenceCount(); |
| 213 | |
| 214 | bool isCloseNeeded() const { |
| 215 | return mCloseNeeded.load(); |
| 216 | } |
| 217 | |
| 218 | void setCloseNeeded(bool needed) { |
| 219 | mCloseNeeded.store(needed); |
| 220 | } |
| 221 | |
Phil Burk | 2355edb | 2016-12-26 13:54:02 -0800 | [diff] [blame] | 222 | protected: |
Phil Burk | 98d6d92 | 2017-07-06 11:52:45 -0700 | [diff] [blame] | 223 | |
Phil Burk | 39f02dd | 2017-08-04 09:13:31 -0700 | [diff] [blame] | 224 | /** |
| 225 | * Open the device. |
| 226 | */ |
| 227 | aaudio_result_t open(const aaudio::AAudioStreamRequest &request, |
| 228 | aaudio_sharing_mode_t sharingMode); |
| 229 | |
Phil Burk | 5a26e66 | 2017-07-07 12:44:48 -0700 | [diff] [blame] | 230 | void setState(aaudio_stream_state_t state) { |
| 231 | mState = state; |
| 232 | } |
| 233 | |
Phil Burk | bcc3674 | 2017-08-31 17:24:51 -0700 | [diff] [blame] | 234 | /** |
| 235 | * Device specific startup. |
| 236 | * @return AAUDIO_OK or negative error. |
| 237 | */ |
| 238 | virtual aaudio_result_t startDevice(); |
| 239 | |
Phil Burk | c0c70e3 | 2017-02-09 13:18:38 -0800 | [diff] [blame] | 240 | aaudio_result_t writeUpMessageQueue(AAudioServiceMessage *command); |
| 241 | |
| 242 | aaudio_result_t sendCurrentTimestamp(); |
| 243 | |
Phil Burk | 2329638 | 2017-11-20 15:45:11 -0800 | [diff] [blame] | 244 | aaudio_result_t sendXRunCount(int32_t xRunCount); |
| 245 | |
Phil Burk | 940083c | 2017-07-17 17:00:02 -0700 | [diff] [blame] | 246 | /** |
| 247 | * @param positionFrames |
| 248 | * @param timeNanos |
| 249 | * @return AAUDIO_OK or AAUDIO_ERROR_UNAVAILABLE or other negative error |
| 250 | */ |
Phil Burk | c0c70e3 | 2017-02-09 13:18:38 -0800 | [diff] [blame] | 251 | virtual aaudio_result_t getFreeRunningPosition(int64_t *positionFrames, int64_t *timeNanos) = 0; |
| 252 | |
Phil Burk | 97350f9 | 2017-07-21 15:59:44 -0700 | [diff] [blame] | 253 | virtual aaudio_result_t getHardwareTimestamp(int64_t *positionFrames, int64_t *timeNanos) = 0; |
| 254 | |
Phil Burk | 523b304 | 2017-09-13 13:03:08 -0700 | [diff] [blame] | 255 | virtual aaudio_result_t getAudioDataDescription(AudioEndpointParcelable &parcelable) = 0; |
Phil Burk | c0c70e3 | 2017-02-09 13:18:38 -0800 | [diff] [blame] | 256 | |
Phil Burk | ec89b2e | 2017-06-20 15:05:06 -0700 | [diff] [blame] | 257 | aaudio_stream_state_t mState = AAUDIO_STREAM_STATE_UNINITIALIZED; |
Phil Burk | 2355edb | 2016-12-26 13:54:02 -0800 | [diff] [blame] | 258 | |
Eric Laurent | cb4dae2 | 2017-07-01 19:39:32 -0700 | [diff] [blame] | 259 | pid_t mRegisteredClientThread = ILLEGAL_THREAD_ID; |
Phil Burk | 2355edb | 2016-12-26 13:54:02 -0800 | [diff] [blame] | 260 | |
Eric Laurent | cb4dae2 | 2017-07-01 19:39:32 -0700 | [diff] [blame] | 261 | SharedRingBuffer* mUpMessageQueue; |
Phil Burk | 39f02dd | 2017-08-04 09:13:31 -0700 | [diff] [blame] | 262 | std::mutex mUpMessageQueueLock; |
Phil Burk | 2355edb | 2016-12-26 13:54:02 -0800 | [diff] [blame] | 263 | |
Phil Burk | bcc3674 | 2017-08-31 17:24:51 -0700 | [diff] [blame] | 264 | AAudioThread mTimestampThread; |
Phil Burk | c0c70e3 | 2017-02-09 13:18:38 -0800 | [diff] [blame] | 265 | // This is used by one thread to tell another thread to exit. So it must be atomic. |
Phil Burk | 39f02dd | 2017-08-04 09:13:31 -0700 | [diff] [blame] | 266 | std::atomic<bool> mThreadEnabled{false}; |
Phil Burk | c0c70e3 | 2017-02-09 13:18:38 -0800 | [diff] [blame] | 267 | |
Eric Laurent | cb4dae2 | 2017-07-01 19:39:32 -0700 | [diff] [blame] | 268 | int32_t mFramesPerBurst = 0; |
Phil Burk | 39f02dd | 2017-08-04 09:13:31 -0700 | [diff] [blame] | 269 | android::AudioClient mMmapClient; // set in open, used in MMAP start() |
Eric Laurent | cb4dae2 | 2017-07-01 19:39:32 -0700 | [diff] [blame] | 270 | audio_port_handle_t mClientHandle = AUDIO_PORT_HANDLE_NONE; |
| 271 | |
Phil Burk | 97350f9 | 2017-07-21 15:59:44 -0700 | [diff] [blame] | 272 | SimpleDoubleBuffer<Timestamp> mAtomicTimestamp; |
| 273 | |
Phil Burk | 39f02dd | 2017-08-04 09:13:31 -0700 | [diff] [blame] | 274 | android::AAudioService &mAudioService; |
| 275 | android::sp<AAudioServiceEndpoint> mServiceEndpoint; |
| 276 | |
Phil Burk | 11e8d33 | 2017-05-24 09:59:02 -0700 | [diff] [blame] | 277 | private: |
Eric Laurent | cb4dae2 | 2017-07-01 19:39:32 -0700 | [diff] [blame] | 278 | aaudio_handle_t mHandle = -1; |
Phil Burk | 2329638 | 2017-11-20 15:45:11 -0800 | [diff] [blame] | 279 | bool mFlowing = false; |
Phil Burk | 9486252 | 2017-09-13 21:31:36 -0700 | [diff] [blame^] | 280 | |
| 281 | std::mutex mCallingCountLock; |
| 282 | std::atomic<int32_t> mCallingCount{0}; |
| 283 | std::atomic<bool> mCloseNeeded{false}; |
Phil Burk | 2355edb | 2016-12-26 13:54:02 -0800 | [diff] [blame] | 284 | }; |
| 285 | |
Phil Burk | 5ed503c | 2017-02-01 09:38:15 -0800 | [diff] [blame] | 286 | } /* namespace aaudio */ |
Phil Burk | 2355edb | 2016-12-26 13:54:02 -0800 | [diff] [blame] | 287 | |
Phil Burk | 5ed503c | 2017-02-01 09:38:15 -0800 | [diff] [blame] | 288 | #endif //AAUDIO_AAUDIO_SERVICE_STREAM_BASE_H |