Merged in wav-format-converter (pull request #530)

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

Approved-by: Trek Hopton
This commit is contained in:
David Sutton 2024-01-29 01:23:28 +00:00
commit 60e208fdab
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 (