oggvorbis

a native go ogg/vorbis decoder

  • Owner: jfreymuth/oggvorbis
  • Platform:
  • License:: MIT License
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

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)

Main metrics

Overview
Name With Ownerjfreymuth/oggvorbis
Primary LanguageGo
Program languageGo (Language Count: 1)
Platform
License:MIT License
所有者活动
Created At2016-11-24 12:02:47
Pushed At2023-02-21 21:00:07
Last Commit At2023-02-10 12:58:12
Release Count6
Last Release Namev1.0.5 (Posted on )
First Release Namev1.0.0 (Posted on )
用户参与
Stargazers Count73
Watchers Count2
Fork Count5
Commits Count18
Has Issues Enabled
Issues Count7
Issue Open Count0
Pull Requests Count3
Pull Requests Open Count0
Pull Requests Close Count1
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private