Driver: Move Bitrate import out of crate root. (#53)
This is a simple organisational change which moves `crate::Bitrate` to `crate::driver::Bitrate` to slightly clean up the crate root. This has been tested using `cargo make ready`.
This commit is contained in:
@@ -32,7 +32,8 @@ use crate::{
|
||||
Event,
|
||||
EventHandler,
|
||||
};
|
||||
use audiopus::Bitrate;
|
||||
/// Opus encoder bitrate settings.
|
||||
pub use audiopus::{self as opus, Bitrate};
|
||||
use core::{
|
||||
future::Future,
|
||||
pin::Pin,
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
#![allow(missing_docs)]
|
||||
|
||||
use crate::{
|
||||
driver::{connection::error::Error, Config},
|
||||
driver::{connection::error::Error, Bitrate, Config},
|
||||
events::EventData,
|
||||
tracks::Track,
|
||||
Bitrate,
|
||||
ConnectionInfo,
|
||||
};
|
||||
use flume::Sender;
|
||||
|
||||
@@ -3,9 +3,8 @@
|
||||
use super::{Interconnect, UdpRxMessage, UdpTxMessage, WsMessage};
|
||||
|
||||
use crate::{
|
||||
driver::{Config, CryptoState},
|
||||
driver::{Bitrate, Config, CryptoState},
|
||||
tracks::Track,
|
||||
Bitrate,
|
||||
};
|
||||
use flume::Sender;
|
||||
use xsalsa20poly1305::XSalsa20Poly1305 as Cipher;
|
||||
|
||||
@@ -63,9 +63,6 @@ pub mod tracks;
|
||||
#[cfg(feature = "driver-core")]
|
||||
mod ws;
|
||||
|
||||
#[cfg(feature = "driver-core")]
|
||||
/// Opus encoder bitrate settings.
|
||||
pub use audiopus::{self as opus, Bitrate};
|
||||
#[cfg(feature = "driver-core")]
|
||||
pub use discortp as packet;
|
||||
#[cfg(feature = "driver-core")]
|
||||
|
||||
Reference in New Issue
Block a user