Struct bms_rs::bmson::SoundChannel
source · pub struct SoundChannel {
pub name: String,
pub notes: Vec<Note>,
}
Expand description
Note sound file and positions to be placed in the chart.
Fields§
§name: String
Sound file path. If the extension is not specified or not supported, you can try search files about other extensions for fallback.
BMS players are expected to support the audio containers below:
- WAV (
.wav
), - OGG (
.ogg
), - Audio-only MPEG-4 (
.m4a
).
BMS players are expected to support the audio codec below:
- LPCM (Linear Pulse-Code Modulation),
- Ogg Vorbis,
- AAC (Advanced Audio Coding).
notes: Vec<Note>
Data of note to be placed.
Trait Implementations§
source§impl Clone for SoundChannel
impl Clone for SoundChannel
source§fn clone(&self) -> SoundChannel
fn clone(&self) -> SoundChannel
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SoundChannel
impl Debug for SoundChannel
source§impl<'de> Deserialize<'de> for SoundChannel
impl<'de> Deserialize<'de> for SoundChannel
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for SoundChannel
impl PartialEq for SoundChannel
source§fn eq(&self, other: &SoundChannel) -> bool
fn eq(&self, other: &SoundChannel) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SoundChannel
impl Serialize for SoundChannel
impl Eq for SoundChannel
impl StructuralEq for SoundChannel
impl StructuralPartialEq for SoundChannel
Auto Trait Implementations§
impl RefUnwindSafe for SoundChannel
impl Send for SoundChannel
impl Sync for SoundChannel
impl Unpin for SoundChannel
impl UnwindSafe for SoundChannel
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more