Soxi: remove garbage from bitrate & bitdepth
This commit is contained in:
parent
2dffcdb8b8
commit
86493da2e6
@ -25,6 +25,8 @@ getInfos::soxi() {
|
|||||||
rate=$(gettag 'sample rate')
|
rate=$(gettag 'sample rate')
|
||||||
channels=$(gettag channels)
|
channels=$(gettag channels)
|
||||||
bitrate=$(gettag 'bit rate')
|
bitrate=$(gettag 'bit rate')
|
||||||
bitrate=${bitrate%%k}
|
bitrate=${bitrate%k}
|
||||||
|
bitrate=${bitrate%%.*}
|
||||||
bitdepth=$(gettag precision)
|
bitdepth=$(gettag precision)
|
||||||
|
bitdepth=${bitdepth%-bit}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user