init: 自 zomaintain/backend/rdplib 平移独立成库; module path 从上游 github.com/nakagami/grdp 改为 git.zeroonesoft.cn/golib/rdplib
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
//go:build !darwin || !cgo
|
||||
|
||||
package aac
|
||||
|
||||
import (
|
||||
"errors"
|
||||
|
||||
"git.zeroonesoft.cn/golib/rdplib/plugin/rdpsnd"
|
||||
)
|
||||
|
||||
// stubDecoder is used on platforms without AudioToolbox support.
|
||||
type stubDecoder struct{}
|
||||
|
||||
func newDecoder(_ rdpsnd.AudioFormat) (Decoder, error) {
|
||||
return nil, errors.New("AAC decoding not supported on this platform")
|
||||
}
|
||||
|
||||
func (d *stubDecoder) Decode(_ []byte) ([]byte, error) {
|
||||
return nil, errors.New("AAC decoding not supported on this platform")
|
||||
}
|
||||
|
||||
func (d *stubDecoder) Close() {}
|
||||
Reference in New Issue
Block a user