Skip to content

Commit 81d6508

Browse files
committed
Parse mixramp
1 parent 6f98663 commit 81d6508

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/status.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ impl FromIter for Status {
102102
"duration" => result.duration = line.1.parse::<f32>().ok().map(|v| Duration::from_millis((v * 1000.0) as u64)),
103103
"bitrate" => result.bitrate = Some(line.1.parse()?),
104104
"xfade" => result.crossfade = Some(Duration::from_secs(line.1.parse()?)),
105-
// "mixrampdb" => 0.0, //get_field!(map, "mixrampdb"),
106-
// "mixrampdelay" => None, //get_field!(map, opt "mixrampdelay").map(|v: f64| Duration::milliseconds((v * 1000.0) as i64)),
105+
"mixrampdb" => result.mixrampdb = line.1.parse::<f32>()?,
106+
"mixrampdelay" => result.mixrampdelay = Some(Duration::from_secs_f64(line.1.parse()?)),
107107
"audio" => result.audio = Some(line.1.parse()?),
108108
"updating_db" => result.updating_db = Some(line.1.parse()?),
109109
"error" => result.error = Some(line.1.to_owned()),

0 commit comments

Comments
 (0)