Loading media/libaaudio/include/aaudio/AAudio.h +5 −6 Original line number Diff line number Diff line Loading @@ -1998,18 +1998,17 @@ AAUDIO_API int32_t AAudioStream_getSamplesPerFrame(AAudioStream* _Nonnull stream * Available since API level 26. * * @param stream reference provided by AAudioStreamBuilder_openStream() * @return actual device id. If there are multiple device ids used, the first device picked by * the audio policy engine will be returned. * @return actual device id. If there are multiple device ids used, * this will return the first device id from AAudioStream_getDeviceIds(). */ AAUDIO_API int32_t AAudioStream_getDeviceId(AAudioStream* _Nonnull stream) __INTRODUCED_IN(26); /** * Available since API level 36. * * Call this function after AAudioStreamBuilder_openStream(). * This function will crash if stream is null. * An array of size 16 should generally be large enough to fit all device identifiers. * * Available since API level 36. * * @param stream reference provided by AAudioStreamBuilder_openStream(). * @param ids reference to an array of ids. * @params numIds size allocated to the array of ids. Loading @@ -2022,7 +2021,7 @@ AAUDIO_API int32_t AAudioStream_getDeviceId(AAudioStream* _Nonnull stream) __INT * Otherwise, if ids is null, return {@link #AAUDIO_ERROR_ILLEGAL_ARGUMENT}. */ AAUDIO_API aaudio_result_t AAudioStream_getDeviceIds(AAudioStream* _Nonnull stream, int32_t* _Nonnull ids, int32_t* _Nonnull numIds) __INTRODUCED_IN(36); int32_t* _Nullable ids, int32_t* _Nullable numIds) __INTRODUCED_IN(36); /** * Available since API level 26. Loading Loading
media/libaaudio/include/aaudio/AAudio.h +5 −6 Original line number Diff line number Diff line Loading @@ -1998,18 +1998,17 @@ AAUDIO_API int32_t AAudioStream_getSamplesPerFrame(AAudioStream* _Nonnull stream * Available since API level 26. * * @param stream reference provided by AAudioStreamBuilder_openStream() * @return actual device id. If there are multiple device ids used, the first device picked by * the audio policy engine will be returned. * @return actual device id. If there are multiple device ids used, * this will return the first device id from AAudioStream_getDeviceIds(). */ AAUDIO_API int32_t AAudioStream_getDeviceId(AAudioStream* _Nonnull stream) __INTRODUCED_IN(26); /** * Available since API level 36. * * Call this function after AAudioStreamBuilder_openStream(). * This function will crash if stream is null. * An array of size 16 should generally be large enough to fit all device identifiers. * * Available since API level 36. * * @param stream reference provided by AAudioStreamBuilder_openStream(). * @param ids reference to an array of ids. * @params numIds size allocated to the array of ids. Loading @@ -2022,7 +2021,7 @@ AAUDIO_API int32_t AAudioStream_getDeviceId(AAudioStream* _Nonnull stream) __INT * Otherwise, if ids is null, return {@link #AAUDIO_ERROR_ILLEGAL_ARGUMENT}. */ AAUDIO_API aaudio_result_t AAudioStream_getDeviceIds(AAudioStream* _Nonnull stream, int32_t* _Nonnull ids, int32_t* _Nonnull numIds) __INTRODUCED_IN(36); int32_t* _Nullable ids, int32_t* _Nullable numIds) __INTRODUCED_IN(36); /** * Available since API level 26. Loading