init: 自 zomaintain/backend/rdplib 平移独立成库; module path 从上游 github.com/nakagami/grdp 改为 git.zeroonesoft.cn/golib/rdplib

This commit is contained in:
w11
2026-09-19 18:55:43 +08:00
commit 1096fbce9d
94 changed files with 36790 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
// Package aac provides AAC-to-PCM decoding for RDPSND audio streams.
package aac
import "git.zeroonesoft.cn/golib/rdplib/plugin/rdpsnd"
// Decoder decodes MPEG-4 AAC packets into signed 16-bit little-endian PCM.
type Decoder interface {
// Decode decodes one raw AAC packet. Returns nil, nil for empty input.
Decode(data []byte) ([]byte, error)
// Close releases all resources held by the decoder.
Close()
}
// New creates a Decoder for the given RDPSND AudioFormat.
// Returns an error on platforms where AAC decoding is not supported.
func New(format rdpsnd.AudioFormat) (Decoder, error) {
return newDecoder(format)
}