package
2.9.0-alpha.4
Repository: https://github.com/hajimehoshi/ebiten.git
Documentation: pkg.go.dev

# Packages

Package mp3 provides MP3 decoder.
Package vorbis provides Ogg/Vorbis decoder.
Package wav provides WAV (RIFF) decoder.

# Functions

CurrentContext returns the current context or nil if there is no context.
NewContext creates a new audio context with the given sample rate.
NewInfiniteLoop creates a new infinite loop stream with a source stream and length in bytes.
NewInfiniteLoopF32 creates a new infinite loop stream with a source stream and length in bytes.
NewInfiniteLoopWithIntro creates a new infinite loop stream with an intro part.
NewInfiniteLoopWithIntroF32 creates a new infinite loop stream with an intro part.
NewPlayer creates a new player with the given stream.
NewPlayerFromBytes creates a new player with the given bytes.
Resample converts the sample rate of the given singed 16bit integer, little-endian, 2 channels (stereo) stream.
ResampleF32 converts the sample rate of the given 32bit float, little-endian, 2 channels (stereo) stream.
ResampleReader converts the sample rate of the given singed 16bit integer, little-endian, 2 channels (stereo) stream.
ResampleReaderF32 converts the sample rate of the given 32bit float, little-endian, 2 channels (stereo) stream.

# Structs

A Context represents a current state of audio.
InfiniteLoop represents a looped stream which never ends.
Player is an audio player which has one stream.