mirror of
https://github.com/yibaiba/hideck.git
synced 2026-12-06 08:02:21 +00:00
Load native AMR encoders and decoders when present, bridge octet-aligned 20ms frames to browser PCMU, and reject unsupported codec negotiation.
17 lines
365 B
Go
17 lines
365 B
Go
//go:build !darwin && !linux
|
|
|
|
package audiotranscode
|
|
|
|
import (
|
|
"errors"
|
|
"runtime"
|
|
)
|
|
|
|
func loadAMRNBRealtimeAPI() (*amrRealtimeAPI, error) {
|
|
return nil, errors.New("AMR realtime codec is unavailable on " + runtime.GOOS)
|
|
}
|
|
|
|
func loadAMRWBRealtimeAPI() (*amrRealtimeAPI, error) {
|
|
return nil, errors.New("AMR-WB realtime codec is unavailable on " + runtime.GOOS)
|
|
}
|