Skip to content

Commit

Permalink
Correct track mappings name. (#29)
Browse files Browse the repository at this point in the history
The track mappings name should have been track_mappings instead of
mappings.
  • Loading branch information
mdwn authored Apr 16, 2024
1 parent 4119f99 commit 93e22d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ pub fn init_player_and_controller(
let playlist = parse_playlist(&PathBuf::from(playlist_path), Arc::clone(&songs))?;
let player = crate::player::Player::new(
device,
player_config.mappings.track_mappings,
player_config.track_mappings.track_mappings,
midi_device.clone(),
playlist,
crate::playlist::Playlist::from_songs(songs)?,
Expand Down
3 changes: 2 additions & 1 deletion src/config/player.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ pub(super) struct Player {
pub controller: Controller,
/// The audio device to use.
pub audio_device: String,
pub mappings: TrackMappings,
/// The track mappings for the player.
pub track_mappings: TrackMappings,
/// The MIDI device to use.
pub midi_device: Option<String>,
/// The path to the song definitions.
Expand Down

0 comments on commit 93e22d9

Please sign in to comment.