Skip to content

Commit f26befc

Browse files
committed
Make references to other objects clickable.
1 parent def4093 commit f26befc

File tree

6 files changed

+21
-21
lines changed

6 files changed

+21
-21
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ license = "MIT"
88
name = "jack"
99
readme = "README.md"
1010
repository = "https://github.com/RustAudio/rust-jack"
11-
version = "0.13.0"
11+
version = "0.13.1"
1212

1313
[dependencies]
1414
bitflags = "2"

src/lib.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,28 +9,28 @@
99
//! # Client
1010
//!
1111
//! Typically, applications connect clients to the server. For the rust jack crate, a connection can
12-
//! be made with `client::Client::new`, which returns a `client::Client`.
12+
//! be made with [`client::Client::new`], which returns a [`client::Client`].
1313
//!
1414
//! The `Client` can query the server for information, register ports, and manage connections for
1515
//! ports.
1616
//!
1717
//! To commence processing audio/midi and other information in real-time, rust jack provides the
18-
//! `Client::activate_async`, which consumes the `Client`, an object that implements
18+
//! [`Client::activate_async`], which consumes the [`Client`], an object that implements
1919
//! `NotificationHandler` and an object that implements `ProcessHandler` and returns a
20-
//! `AsyncClient`. `AsyncClient` processes the data in real-time with the provided handlers.
20+
//! [`AsyncClient`]. [`AsyncClient`] processes the data in real-time with the provided handlers.
2121
//!
2222
//! # Port
2323
//!
24-
//! A `Client` may obtain port information through the `Client::port_by_id` and
25-
//! `Client::port_by_name` methods. These ports can be used to manage connections or to obtain port
24+
//! A [`Client`] may obtain port information through the [`Client::port_by_id`] and
25+
//! [`Client::port_by_name`] methods. These ports can be used to manage connections or to obtain port
2626
//! metadata, though their port data (audio buffers and midi buffers) cannot be accessed safely.
2727
//!
28-
//! Ports can be registered with the `Client::register_port` method. This requires a `PortSpec`. The
29-
//! jack crate comes with common specs such as `AudioIn`, `AudioOut`, `MidiIn`, and
30-
//! `MidiOut`.
28+
//! Ports can be registered with the [`Client::register_port`] method. This requires a [`PortSpec`]. The
29+
//! jack crate comes with common specs such as [`AudioIn`], [`AudioOut`], [`MidiIn`], and
30+
//! [`MidiOut`].
3131
//!
3232
//! To access the data of registered ports, use their specialized methods within a `ProcessHandler`
33-
//! callback. For example, `Port<AudioIn>::as_mut_slice` returns a audio buffer that can be written
33+
//! callback. For example, [`Port<AudioIn>::as_mut_slice`] returns a audio buffer that can be written
3434
//! to.
3535
3636
#[allow(deprecated)]
@@ -54,7 +54,7 @@ pub use crate::transport::{
5454
};
5555

5656
/// The underlying system bindings for JACK. Can be useful for using possibly experimental stuff
57-
/// through `jack_sys::library()`.
57+
/// through [`jack_sys::library()`].
5858
pub use jack_sys;
5959

6060
mod client;

src/port/audio.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ use std::slice;
33

44
use crate::{Port, PortFlags, PortSpec, ProcessScope};
55

6-
/// `AudioIn` implements the `PortSpec` trait which, defines an
6+
/// [`AudioIn`] implements the [`PortSpec`] trait which, defines an
77
/// endpoint for JACK. In this case, it is a readable 32 bit floating
88
/// point buffer for audio.
99
///
10-
/// `AudioIn::buffer()` is used to gain access the buffer.
10+
/// [`AudioIn::buffer()`] is used to gain access the buffer.
1111
///
1212
/// # Example
1313
/// ```
@@ -22,11 +22,11 @@ pub struct AudioIn {
2222
_internal: (),
2323
}
2424

25-
/// `AudioOut` implements the `PortSpec` trait, which defines an
25+
/// [`AudioOut`] implements the [`PortSpec`] trait, which defines an
2626
/// endpoint for JACK. In this case, it is a mutable 32 bit floating
2727
/// point buffer for audio.
2828
///
29-
/// `AudioOut::buffer()` is used to gain access the buffer.
29+
/// [`AudioOut::buffer()`] is used to gain access the buffer.
3030
///
3131
/// # Example
3232
/// ```

src/port/midi.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ pub struct RawMidi<'a> {
1616
pub bytes: &'a [u8],
1717
}
1818

19-
/// `MidiIn` implements the `PortSpec` trait, which defines an endpoint for JACK. In this case, it
19+
/// [`MidiIn`] implements the [`PortSpec`] trait, which defines an endpoint for JACK. In this case, it
2020
/// defines midi input.
2121
#[derive(Copy, Clone, Debug, Default)]
2222
pub struct MidiIn {
2323
_internal: (),
2424
}
2525

26-
/// `MidiOut` implements the `PortSpec` trait, which defines an endpoint for JACK. In this case, it
26+
/// [`MidiOut`] implements the [`PortSpec`] trait, which defines an endpoint for JACK. In this case, it
2727
/// defines a midi output.
2828
#[derive(Copy, Clone, Debug, Default)]
2929
pub struct MidiOut {
@@ -57,7 +57,7 @@ impl Port<MidiIn> {
5757
}
5858
}
5959

60-
/// Iterate through Midi Messages within a `Port<MidiIn>`.
60+
/// Iterate through Midi Messages within a [`Port<MidiIn>`].
6161
#[derive(Debug, Clone)]
6262
pub struct MidiIter<'a> {
6363
buffer: *mut ::libc::c_void,

src/port/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ mod audio;
22
mod midi;
33
mod port_impl;
44

5-
/// Contains flag constants that may be used to create `PortFlags`.
5+
/// Contains flag constants that may be used to create [`PortFlags`].
66
mod port_flags;
77

88
pub use self::audio::{AudioIn, AudioOut};

src/transport.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ pub enum TransportState {
2828
Starting,
2929
}
3030

31-
/// A helper struct encapsulating both `TransportState` and `TransportPosition`.
31+
/// A helper struct encapsulating both [`TransportState`] and [`TransportPosition`].
3232
#[derive(Debug)]
3333
pub struct TransportStatePosition {
3434
pub pos: TransportPosition,
@@ -127,7 +127,7 @@ impl Transport {
127127
///
128128
/// * May be called at any time by any client.
129129
/// * The new position takes effect in two process cycles.
130-
/// * If there are slow-sync clients and the transport is already rolling, it will enter the `TransportState::Starting` state and begin invoking their sync_callbacks until ready.
130+
/// * If there are slow-sync clients and the transport is already rolling, it will enter the [`TransportState::Starting`] state and begin invoking their sync_callbacks until ready.
131131
/// * This function is realtime-safe.
132132
pub fn reposition(&self, pos: &TransportPosition) -> Result<()> {
133133
Self::result_from_ffi(

0 commit comments

Comments
 (0)