mirror of https://bitbucket.org/ausocean/av.git
codec/wav: Add type conversion map for wav encoding type.
This commit is contained in:
parent
268b253389
commit
a26983c8f3
|
@ -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 (
|
||||
|
|
Loading…
Reference in New Issue