From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@9fans.net Subject: Re: [9fans] read/write offset hack From: "Russ Cox" Date: Fri, 30 May 2008 12:09:52 -0400 In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Message-Id: <20080530160927.B68481E8C3A@holo.morphisms.net> Topicbox-Message-UUID: b09865fc-ead3-11e9-9d60-3106f5b1d025 > why not put the timing information inband? this would allow the timed > sound to be saved to a file also without 1.7mb of zeros. The Plan 9 audio device data format is stereo, 16-bit little-endian PCM samples. Given that convention, my point was only that seeking in that kind of data stream does make a little bit of sense. The whole mail was about the power of working within and respecting existing conventions, not about redesigning the audio device. Others might choose different conventions in different situations. For example, I believe Nemo's Plan B audio device accepts MP3 format audio to reduce bandwidth requirements for sending audio to devices elsewhere on the network. The Plan 9 audio format has the benefit of being close to the native format for most hardware. As always, your own context dictates whether or not breaking established conventions is a good idea. Of course, the Sparc /dev/audio is not just a good idea: it's μ-law. Russ