mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
audio: Fix comment
This commit is contained in:
parent
60c4990555
commit
ddd6e2b732
@ -25,12 +25,17 @@ const SampleRate = audio.SampleRate
|
||||
const MaxChannel = audio.MaxChannel
|
||||
|
||||
// Queue queues the given data to the given channel.
|
||||
// The given data is queued to the end of the buffer and not played immediately.
|
||||
// The given data is queued to the end of the buffer.
|
||||
// This may not be played immediately when data already exists in the buffer.
|
||||
//
|
||||
// channel must be -1 or a channel index. If channel is -1, an empty channel is automatically selected.
|
||||
// If the channel is not empty, this function does nothing and returns false. This returns true otherwise.
|
||||
// channel must be -1 or a channel index.
|
||||
// If channel is -1, an empty channel is automatically selected.
|
||||
//
|
||||
// data's format must be linear PCM (44100Hz, 16bits, 2 channel stereo, little endian) without a header (e.g. RIFF header).
|
||||
// If the channel is not empty, this function does nothing and returns false.
|
||||
// This returns true otherwise.
|
||||
//
|
||||
// data's format must be linear PCM (44100Hz, 16bits, 2 channel stereo, little endian)
|
||||
// without a header (e.g. RIFF header).
|
||||
func Queue(channel int, data []byte) bool {
|
||||
return audio.Queue(channel, data)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user