opus work in progress

This commit is contained in:
Andrey Semochkin
2021-01-09 07:37:19 +03:00
parent 4bf0059477
commit 6a92c34cd4
5 changed files with 85 additions and 32 deletions

View File

@@ -123,6 +123,7 @@ var (
SPEEX = MakeAudioCodecType(avCodecTypeMagic + 4)
NELLYMOSER = MakeAudioCodecType(avCodecTypeMagic + 5)
PCM = MakeAudioCodecType(avCodecTypeMagic + 6)
OPUS = MakeAudioCodecType(avCodecTypeMagic + 7)
)
const codecTypeAudioBit = 0x1
@@ -144,6 +145,8 @@ func (self CodecType) String() string {
return "NELLYMOSER"
case PCM:
return "PCM"
case OPUS:
return "OPUS"
}
return ""
}