blob: 9eeb8edbe3dd3c18be0a92d6319d09f5c287e66e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
package event
import (
"encoding/json"
)
type MSC1767Audio struct {
Duration int `json:"duration"`
Waveform []int `json:"waveform"`
}
type serializableMSC1767Audio MSC1767Audio
func (ma *MSC1767Audio) MarshalJSON() ([]byte, error) {
if ma.Waveform == nil {
ma.Waveform = []int{}
}
return json.Marshal((*serializableMSC1767Audio)(ma))
}
type MSC3245Voice struct{}
|