From 1e40e6ceda1d2178a88fa86cccbdb1b2cc3bad84 Mon Sep 17 00:00:00 2001 From: max Date: Thu, 30 Oct 2025 10:32:28 +0100 Subject: [PATCH] ndk/audio: swap AAUDIO_DIRECTION_{INPUT,OUTPUT} doc comments the doc comments were accidentally swapped when written in Rust, swap them to match the oficial documentation at and the actual behaviour of the AAudio interface --- ndk/src/audio.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ndk/src/audio.rs b/ndk/src/audio.rs index 0be6e1c3..1be2ea66 100644 --- a/ndk/src/audio.rs +++ b/ndk/src/audio.rs @@ -111,10 +111,10 @@ pub enum AudioContentType { #[doc(alias = "aaudio_direction_t")] #[non_exhaustive] pub enum AudioDirection { - /// Audio data will travel into the device, for example from a microphone. + /// Audio data will travel out of the device, for example through a speaker. #[doc(alias = "AAUDIO_DIRECTION_OUTPUT")] Output = ffi::AAUDIO_DIRECTION_OUTPUT as ffi::aaudio_direction_t, - /// Audio data will travel out of the device, for example through a speaker. + /// Audio data will travel into the device, for example from a microphone. #[doc(alias = "AAUDIO_DIRECTION_INPUT")] Input = ffi::AAUDIO_DIRECTION_INPUT as ffi::aaudio_direction_t,