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<SoundChannel> for SoundChannel
impl PartialEq<SoundChannel> 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 ==
.