audio: Fix comment

This commit is contained in:
Hajime Hoshi 2016-02-08 00:51:25 +09:00
parent 60c4990555
commit ddd6e2b732

View File

@ -25,12 +25,17 @@ const SampleRate = audio.SampleRate
const MaxChannel = audio.MaxChannel const MaxChannel = audio.MaxChannel
// Queue queues the given data to the given channel. // 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. // channel must be -1 or a channel index.
// If the channel is not empty, this function does nothing and returns false. This returns true otherwise. // 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 { func Queue(channel int, data []byte) bool {
return audio.Queue(channel, data) return audio.Queue(channel, data)
} }