1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-05-05 03:23:49 +08:00

fix: build tag.

This commit is contained in:
wdvxdr 2021-07-14 21:43:36 +08:00
parent ca93d4de0d
commit 3663c2aed8
No known key found for this signature in database
GPG Key ID: 55FF1414A69CEBA6
3 changed files with 5 additions and 6 deletions

View File

@ -1,8 +1,7 @@
// +build linux windows,!arm darwin // +build linux windows,!arm darwin
// +build 386 amd64 arm arm64 // +build 386 amd64 arm arm64
// +build !cgo // +build !race
// Package codec Slik编码核心模块
package codec package codec
import ( import (
@ -15,9 +14,7 @@ import (
"github.com/wdvxdr1123/go-silk" "github.com/wdvxdr1123/go-silk"
) )
const ( const silkCachePath = "data/cache"
silkCachePath = "data/cache"
)
// EncodeToSilk 将音频编码为Silk // EncodeToSilk 将音频编码为Silk
func EncodeToSilk(record []byte, tempName string, useCache bool) (silkWav []byte, err error) { func EncodeToSilk(record []byte, tempName string, useCache bool) (silkWav []byte, err error) {

View File

@ -1,4 +1,4 @@
// +build !arm,!arm64,!amd64,!386 cgo // +build !arm,!arm64,!amd64,!386 race
package codec package codec

2
global/codec/doc.go Normal file
View File

@ -0,0 +1,2 @@
// Package codec Slik编码核心模块
package codec