diff --git a/src/config.rs b/src/config.rs index ef1824d..ba16bce 100644 --- a/src/config.rs +++ b/src/config.rs @@ -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)?, diff --git a/src/config/player.rs b/src/config/player.rs index c53b834..33aef23 100644 --- a/src/config/player.rs +++ b/src/config/player.rs @@ -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, /// The path to the song definitions.