init: 自 zomaintain/backend/rdplib 平移独立成库; module path 从上游 github.com/nakagami/grdp 改为 git.zeroonesoft.cn/golib/rdplib
This commit is contained in:
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user