mirror of
https://github.com/m1k1o/neko.git
synced 2026-11-03 08:21:50 -06:00
fix structs alignment.
This commit is contained in:
@@ -18,14 +18,15 @@ var (
|
||||
)
|
||||
|
||||
type Sample struct {
|
||||
// buffer with encoded media
|
||||
Data []byte
|
||||
Length int
|
||||
// timing information
|
||||
Timestamp time.Time
|
||||
Duration time.Duration
|
||||
// metadata
|
||||
DeltaUnit bool // this unit cannot be decoded independently.
|
||||
// buffer length
|
||||
Length int
|
||||
// buffer with encoded media
|
||||
Data []byte
|
||||
}
|
||||
|
||||
type SampleListener interface {
|
||||
|
||||
@@ -147,9 +147,9 @@ type ControlKey struct {
|
||||
}
|
||||
|
||||
type ControlTouch struct {
|
||||
TouchId uint32 `json:"touch_id"`
|
||||
*ControlPos
|
||||
Pressure uint8 `json:"pressure"`
|
||||
TouchId uint32 `json:"touch_id"`
|
||||
Pressure uint8 `json:"pressure"`
|
||||
}
|
||||
|
||||
/////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user