From 8f32cc19c53d245bddd887bf117ad3244cbcd0a6 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 18 Aug 2024 11:13:35 +0900 Subject: [PATCH] audio: update comments --- audio/audio.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/audio/audio.go b/audio/audio.go index 25bca9d95..22a9d604a 100644 --- a/audio/audio.go +++ b/audio/audio.go @@ -14,15 +14,14 @@ // Package audio provides audio players. // -// The stream format must be 16-bit little endian and 2 channels. The format is as follows: +// The stream format must be 16-bit little endian or 32-bit float little endian, and 2 channels. The format is as follows: // // [data] = [sample 1] [sample 2] [sample 3] ... // [sample *] = [channel 1] ... // [channel *] = [byte 1] [byte 2] ... // -// An audio context (audio.Context object) has a sample rate you can specify and all streams you want to play must have the same -// sample rate. However, decoders in e.g. audio/mp3 package adjust sample rate automatically, -// and you don't have to care about it as long as you use those decoders. +// An audio context (audio.Context object) has a sample rate you can specify +// and all streams you want to play must have the same sample rate. // // An audio context can generate 'players' (audio.Player objects), // and you can play sound by calling Play function of players.