oggvorbis

a native go ogg/vorbis decoder

  • 所有者: jfreymuth/oggvorbis
  • 平台:
  • 許可證: MIT License
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

oggvorbis

a native go ogg/vorbis decoder

GoDoc

Usage

This package provides the type oggvorbis.Reader, which can be used to read .ogg files.

r, err := oggvorbis.NewReader(reader)
// handle error

fmt.Println(r.SampleRate())
fmt.Println(r.Channels())

buffer := make([]float32, 8192)
for {
	n, err := r.Read(buffer)

	// use buffer[:n]

	if err == io.EOF {
		break
	}
	if err != nil {
		// handle error
	}
}

The reader also provides methods for seeking, these will only work if the reader
was created from an io.ReadSeeker.

There are also convenience functions to read an entire (small) file, similar to ioutil.ReadAll.

data, format, err := oggvorbis.ReadAll(reader)

主要指標

概覽
名稱與所有者jfreymuth/oggvorbis
主編程語言Go
編程語言Go (語言數: 1)
平台
許可證MIT License
所有者活动
創建於2016-11-24 12:02:47
推送於2023-02-21 21:00:07
最后一次提交2023-02-10 12:58:12
發布數6
最新版本名稱v1.0.5 (發布於 )
第一版名稱v1.0.0 (發布於 )
用户参与
星數73
關注者數2
派生數5
提交數18
已啟用問題?
問題數7
打開的問題數0
拉請求數3
打開的拉請求數0
關閉的拉請求數1
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?