17 lines
343 B
Rust
17 lines
343 B
Rust
use crate::model::Sample;
|
|
use std::sync::Arc;
|
|
|
|
/// A container for audio assets.
|
|
///
|
|
/// A SoundBank stores multiple audio samples that can be played by the
|
|
/// audio subsystem.
|
|
pub struct SoundBank {
|
|
pub samples: Vec<Arc<Sample>>,
|
|
}
|
|
|
|
impl SoundBank {
|
|
pub fn new(samples: Vec<Arc<Sample>>) -> Self {
|
|
Self { samples }
|
|
}
|
|
}
|