mirror of https://bitbucket.org/ausocean/av.git
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:
commit
60e208fdab
|
@ -33,6 +33,10 @@ import (
|
||||||
"fmt"
|
"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.
|
const PCMFormat = 1 // PCMFormat defines the value for pcm audio as defined by the wav std.
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
Loading…
Reference in New Issue