23 lines
501 B
Go
23 lines
501 B
Go
//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() {}
|