Fix data race on GetAlbumReplayGain
This commit is contained in:
parent
84c6c3b064
commit
090c231e72
|
@ -83,6 +83,7 @@ func GetAlbumReplayGain(sources []audio.Source) (albumGain, albumPeak float64, t
|
|||
wg.Add(1)
|
||||
go func(source audio.Source) {
|
||||
defer wg.Done()
|
||||
var err error
|
||||
|
||||
if _, ok := source.(*audio.Int16Source); ok || source.GetBitDepth() == 16 {
|
||||
for block := range source.ToInt16().GetBlocks() {
|
||||
|
|
Loading…
Reference in a new issue