codec/wav: Add type conversion map for wav encoding type.

This commit is contained in:
David Sutton 2023-12-04 13:13:33 +10:30
parent 268b253389
commit a26983c8f3
1 changed files with 4 additions and 0 deletions

View File

@ -33,6 +33,10 @@ import (
"fmt"
)
// ConvertFormat converts the common name for a format in a string type to the specific
// integer required by the wav encoder.
var ConvertFormat = map[string]int{"pcm": PCMFormat}
const PCMFormat = 1 // PCMFormat defines the value for pcm audio as defined by the wav std.
var (