All Projects → jfreymuth → oggvorbis

jfreymuth / oggvorbis

Licence: MIT license
a native go ogg/vorbis decoder

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to oggvorbis

HypnosMusicPlayer
A Lightweight, Clean, and Powerful Music Player and Library.
Stars: ✭ 21 (-62.5%)
Mutual labels:  ogg-vorbis
opencubicplayer
Open Cubic Player (unix fork). Music visualizer for various tracked music formats (amiga modules, S3M, IT), chiptunes and other formats related to demoscene
Stars: ✭ 141 (+151.79%)
Mutual labels:  ogg-vorbis
vorbis aotuv
"aoTuV" is library for encoding and decoding of OggVorbis
Stars: ✭ 35 (-37.5%)
Mutual labels:  ogg-vorbis
NVorbis
C# Ogg Vorbis decoder
Stars: ✭ 65 (+16.07%)
Mutual labels:  ogg-vorbis
lplayer
lplayer is a simple audio player for simply listening
Stars: ✭ 40 (-28.57%)
Mutual labels:  ogg-vorbis
velvet-video
Java library for encoding / decoding / muxing / demuxing video and audio in various formats
Stars: ✭ 32 (-42.86%)
Mutual labels:  ogg-vorbis
audio-metadata
A library for reading and, in the future, writing audio metadata. https://audio-metadata.readthedocs.io/
Stars: ✭ 41 (-26.79%)
Mutual labels:  ogg-vorbis
loudgain
ReplayGain 2.0 loudness normalizer based on the EBU R128/ITU BS.1770 standard (-18 LUFS, FLAC, Ogg, MP2, MP3, MP4, M4A, AAC, ALAC, Opus, ASF, WMA, WAV, AIFF, WavPack, APE)
Stars: ✭ 127 (+126.79%)
Mutual labels:  ogg-vorbis
simple-web-audio-recorder-demo
A simple HTML/JS demo that uses WebAudioRecorder.js to record audio on a web page
Stars: ✭ 141 (+151.79%)
Mutual labels:  ogg-vorbis

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)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].