add G726 format (#330)

This commit is contained in:
Alessandro Ros
2023-07-25 14:54:16 +02:00
committed by GitHub
parent 2575dba796
commit d3def0e9ea
5 changed files with 195 additions and 23 deletions

View File

@@ -58,6 +58,72 @@ var casesFormat = []struct {
"G722/8000",
nil,
},
{
"audio g726 le 1",
"audio",
97,
"G726-16/8000",
nil,
&G726{
PayloadTyp: 97,
BitRate: 16,
},
"G726-16/8000",
nil,
},
{
"audio g726 le 2",
"audio",
97,
"G726-24/8000",
nil,
&G726{
PayloadTyp: 97,
BitRate: 24,
},
"G726-24/8000",
nil,
},
{
"audio g726 le 3",
"audio",
97,
"G726-32/8000",
nil,
&G726{
PayloadTyp: 97,
BitRate: 32,
},
"G726-32/8000",
nil,
},
{
"audio g726 le 4",
"audio",
97,
"G726-40/8000",
nil,
&G726{
PayloadTyp: 97,
BitRate: 40,
},
"G726-40/8000",
nil,
},
{
"audio g726 be",
"audio",
97,
"AAL2-G726-32/8000",
nil,
&G726{
PayloadTyp: 97,
BitRate: 32,
BigEndian: true,
},
"AAL2-G726-32/8000",
nil,
},
{
"audio lpcm 8",
"audio",