Hi,
The leading space should not matter:
```
# Scanf.sscanf "0.23 dB" " %f dB" (fun x -> Printf.printf "%f\n%!" x);;
0.230000
```
Are you aware of the `extract-replaygain` script that is distributed with
`liquidsoap`:
https://github.com/savonet/liquidsoap/blob/3350999c9efe447d8a226d59ffc061ce55004580/scripts/extract-replaygain
? It does exactly what you are describing, I believe.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/savonet/liquidsoap/issues/749#issuecomment-480641159
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users