@@ -451,9 +451,9 @@ impl AudioStreamBuilder {
451451 ///
452452 /// Available since API level 29.
453453 ///
454- /// # Arguments
454+ /// # Parameters
455455 ///
456- /// * `policy` - the desired level of opt-out from being captured.
456+ /// - `policy`: the desired level of opt-out from being captured.
457457 ///
458458 /// [`android.media.AudioAttributes#setAllowedCapturePolicy(int)`]: https://developer.android.com/reference/android/media/AudioAttributes.Builder#setAllowedCapturePolicy(int)
459459 #[ cfg( feature = "api-level-29" ) ]
@@ -474,9 +474,9 @@ impl AudioStreamBuilder {
474474 ///
475475 /// Available since API level 26.
476476 ///
477- /// # Arguments
477+ /// # Parameters
478478 ///
479- /// * `num_frames` - the desired buffer capacity in frames or 0 for unspecified
479+ /// - `num_frames`: the desired buffer capacity in frames or 0 for unspecified
480480 pub fn buffer_capacity_in_frames ( self , num_frames : i32 ) -> Self {
481481 unsafe { ffi:: AAudioStreamBuilder_setBufferCapacityInFrames ( self . as_ptr ( ) , num_frames) } ;
482482 self
@@ -494,9 +494,9 @@ impl AudioStreamBuilder {
494494 ///
495495 /// Available since API level 26.
496496 ///
497- /// # Arguments
497+ /// # Parameters
498498 ///
499- /// * `channel_count` - Number of channels desired.
499+ /// - `channel_count`: Number of channels desired.
500500 pub fn channel_count ( self , channel_count : i32 ) -> Self {
501501 unsafe { ffi:: AAudioStreamBuilder_setChannelCount ( self . as_ptr ( ) , channel_count) } ;
502502 self
@@ -512,9 +512,9 @@ impl AudioStreamBuilder {
512512 ///
513513 /// Available since API level 28.
514514 ///
515- /// # Arguments
515+ /// # Parameters
516516 ///
517- /// * `content_type` - the type of audio data, eg. [`AudioContentType::Speech`]
517+ /// - `content_type`: the type of audio data, eg. [`AudioContentType::Speech`]
518518 #[ cfg( feature = "api-level-28" ) ]
519519 pub fn content_type ( self , content_type : AudioContentType ) -> Self {
520520 unsafe {
@@ -605,9 +605,9 @@ impl AudioStreamBuilder {
605605 ///
606606 /// Available since API level 26.
607607 ///
608- /// # Arguments
608+ /// # Parameters
609609 ///
610- /// * `device_id` - device identifier or 0 for unspecified
610+ /// - `device_id`: device identifier or 0 for unspecified
611611 pub fn device_id ( self , device_id : i32 ) -> Self {
612612 unsafe { ffi:: AAudioStreamBuilder_setDeviceId ( self . as_ptr ( ) , device_id) } ;
613613 self
@@ -619,9 +619,9 @@ impl AudioStreamBuilder {
619619 ///
620620 /// Available since API level 26.
621621 ///
622- /// # Arguments
622+ /// # Parameters
623623 ///
624- /// * `direction` - [`Output`][AudioDirection::Output] or [`Input`][AudioDirection::Input]
624+ /// - `direction`: [`Output`][AudioDirection::Output] or [`Input`][AudioDirection::Input]
625625 pub fn direction ( self , direction : AudioDirection ) -> Self {
626626 unsafe {
627627 ffi:: AAudioStreamBuilder_setDirection (
@@ -695,9 +695,9 @@ impl AudioStreamBuilder {
695695 ///
696696 /// Available since API level 26.
697697 ///
698- /// # Arguments
698+ /// # Parameters
699699 ///
700- /// * `format` - the sample data format.
700+ /// - `format`: the sample data format.
701701 pub fn format ( self , format : AudioFormat ) -> Self {
702702 unsafe {
703703 ffi:: AAudioStreamBuilder_setFormat ( self . as_ptr ( ) , format as ffi:: aaudio_format_t )
@@ -727,7 +727,7 @@ impl AudioStreamBuilder {
727727 ///
728728 /// Available since API level 26.
729729 ///
730- /// * `num_frames` - the desired buffer size in frames or 0 for unspecified
730+ /// - `num_frames`: the desired buffer size in frames or 0 for unspecified
731731 pub fn frames_per_data_callback ( self , num_frames : i32 ) -> Self {
732732 unsafe { ffi:: AAudioStreamBuilder_setFramesPerDataCallback ( self . as_ptr ( ) , num_frames) } ;
733733 self
@@ -745,9 +745,9 @@ impl AudioStreamBuilder {
745745 ///
746746 /// Available since API level 28.
747747 ///
748- /// # Arguments
748+ /// # Parameters
749749 ///
750- /// * `input_preset` - the desired configuration for recording
750+ /// - `input_preset`: the desired configuration for recording
751751 #[ cfg( feature = "api-level-28" ) ]
752752 pub fn input_preset ( self , input_preset : AudioInputPreset ) -> Self {
753753 unsafe {
@@ -771,9 +771,9 @@ impl AudioStreamBuilder {
771771 ///
772772 /// Available since API level 26.
773773 ///
774- /// # Arguments
774+ /// # Parameters
775775 ///
776- /// * `mode` - the desired performance mode, eg. LowLatency
776+ /// - `mode`: the desired performance mode, eg. LowLatency
777777 pub fn performance_mode ( self , mode : AudioPerformanceMode ) -> Self {
778778 unsafe {
779779 ffi:: AAudioStreamBuilder_setPerformanceMode (
@@ -796,9 +796,9 @@ impl AudioStreamBuilder {
796796 ///
797797 /// Available since API level 26.
798798 ///
799- /// # Arguments
799+ /// # Parameters
800800 ///
801- /// * `sample_rate` - frames per second. Common rates include 44100 and 48000 Hz.
801+ /// - `sample_rate`: frames per second. Common rates include 44100 and 48000 Hz.
802802 pub fn sample_rate ( self , sample_rate : i32 ) -> Self {
803803 unsafe { ffi:: AAudioStreamBuilder_setSampleRate ( self . as_ptr ( ) , sample_rate) } ;
804804 self
@@ -830,9 +830,9 @@ impl AudioStreamBuilder {
830830 ///
831831 /// Available since API level 28.
832832 ///
833- /// # Arguments
833+ /// # Parameters
834834 ///
835- /// * `session_id` - an allocated sessionID or [`Option::None`] to allocate a new sessionID
835+ /// - `session_id`: an allocated sessionID or [`Option::None`] to allocate a new sessionID
836836 #[ cfg( feature = "api-level-28" ) ]
837837 pub fn session_id ( self , session_id_or_allocate : Option < SessionId > ) -> Self {
838838 let session_id = match session_id_or_allocate {
@@ -854,9 +854,9 @@ impl AudioStreamBuilder {
854854 ///
855855 /// Available since API level 26.
856856 ///
857- /// # Arguments
857+ /// # Parameters
858858 ///
859- /// * `sharing_mode` - [`AudioSharingMode::Shared`] or [`AudioSharingMode::Exclusive`]
859+ /// - `sharing_mode`: [`AudioSharingMode::Shared`] or [`AudioSharingMode::Exclusive`]
860860 pub fn sharing_mode ( self , sharing_mode : AudioSharingMode ) -> Self {
861861 unsafe {
862862 ffi:: AAudioStreamBuilder_setSharingMode (
@@ -877,7 +877,7 @@ impl AudioStreamBuilder {
877877 ///
878878 /// Available since API level 28.
879879 ///
880- /// * `usage` - the desired usage, eg. [`AudioUsage::Game`]
880+ /// - `usage`: the desired usage, eg. [`AudioUsage::Game`]
881881 #[ cfg( feature = "api-level-28" ) ]
882882 pub fn usage ( self , usage : AudioUsage ) -> Self {
883883 unsafe { ffi:: AAudioStreamBuilder_setUsage ( self . as_ptr ( ) , usage as ffi:: aaudio_usage_t ) } ;
@@ -1207,11 +1207,11 @@ impl AudioStream {
12071207 ///
12081208 /// Available since API level 26.
12091209 ///
1210- /// # Arguments
1210+ /// # Parameters
12111211 ///
1212- /// * `buffer` - The slice with the samples.
1213- /// * `num_frames` - Number of frames to read. Only complete frames will be written.
1214- /// * `timeout_nanoseconds` - Maximum number of nanoseconds to wait for completion.
1212+ /// - `buffer`: The slice with the samples.
1213+ /// - `num_frames`: Number of frames to read. Only complete frames will be written.
1214+ /// - `timeout_nanoseconds`: Maximum number of nanoseconds to wait for completion.
12151215 ///
12161216 /// # Safety
12171217 /// `buffer` must be a valid pointer to at least `num_frames` samples.
@@ -1295,9 +1295,9 @@ impl AudioStream {
12951295 ///
12961296 /// Available since API level 26.
12971297 ///
1298- /// # Arguments
1298+ /// # Parameters
12991299 ///
1300- /// * `num_frames` - requested number of frames that can be filled without blocking
1300+ /// - `num_frames`: requested number of frames that can be filled without blocking
13011301 pub fn set_buffer_size_in_frames ( & self , num_frames : i32 ) -> Result < i32 > {
13021302 let result = unsafe { ffi:: AAudioStream_setBufferSizeInFrames ( self . as_ptr ( ) , num_frames) } ;
13031303 AudioError :: from_result ( result, || result)
@@ -1342,11 +1342,11 @@ impl AudioStream {
13421342 ///
13431343 /// Available since API level 26.
13441344 ///
1345- /// # Arguments
1345+ /// # Parameters
13461346 ///
1347- /// * `buffer` - The address of the first sample.
1348- /// * `num_frames` - Number of frames to write. Only complete frames will be written.
1349- /// * `timeout_nanoseconds` - Maximum number of nanoseconds to wait for completion.
1347+ /// - `buffer`: The address of the first sample.
1348+ /// - `num_frames`: Number of frames to write. Only complete frames will be written.
1349+ /// - `timeout_nanoseconds`: Maximum number of nanoseconds to wait for completion.
13501350 ///
13511351 /// # Safety
13521352 /// `buffer` must be a valid pointer to at least `num_frames` samples.
0 commit comments