mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-26 10:42:42 +01:00
audio: update comments
This commit is contained in:
parent
217584ceb3
commit
6bce8fea2d
@ -83,12 +83,9 @@ var (
|
|||||||
|
|
||||||
// NewContext creates a new audio context with the given sample rate.
|
// NewContext creates a new audio context with the given sample rate.
|
||||||
//
|
//
|
||||||
// The sample rate is also used for decoding MP3 with audio/mp3 package
|
// sampleRate specifies the number of samples that should be played during one second.
|
||||||
// or other formats as the target sample rate.
|
// Usual numbers are 44100 or 48000. One context has only one sample rate. You cannot play multiple audio
|
||||||
//
|
// sources with different sample rates at the same time.
|
||||||
// sampleRate should be 44100 or 48000.
|
|
||||||
// Other values might not work.
|
|
||||||
// For example, 22050 causes error on Safari when decoding MP3.
|
|
||||||
//
|
//
|
||||||
// NewContext panics when an audio context is already created.
|
// NewContext panics when an audio context is already created.
|
||||||
func NewContext(sampleRate int) *Context {
|
func NewContext(sampleRate int) *Context {
|
||||||
|
Loading…
Reference in New Issue
Block a user