[Python-Dev] linuxaudiodev module
Ka-Ping Yee
ping@lfw.org
Sun, 8 Oct 2000 11:19:51 -0700 (PDT)
On Fri, 6 Oct 2000, Jeremy Hylton wrote:
>
> Have you tried the new code, BTW? Does the test work on your machine?
Works okay (i updated after Guido's last edit). Sounds fine to me.
But it bugs me that some of the descriptions say "audio" and others say
"format". This seems arbitrary -- is there a reason?
Excerpt of Modules/linuxaudiodev.c:
{ 8, 賒限限AFMT_MU_LAW, "Logarithmic mu-law audio" },
{ 8, 賒限限AFMT_A_LAW, "Logarithmic A-law audio" },
{ 8,賒限限耍FMT_U8, "Standard unsigned 8-bit audio" },
{ 8, 賒限限AFMT_S8, "Standard signed 8-bit audio" },
{ 16, 賒限限AFMT_U16_BE, "Big-endian 16-bit unsigned format" },
{ 16, 賒限限AFMT_U16_LE, "Little-endian 16-bit unsigned format" },
{ 16, 賒限限AFMT_S16_BE, "Big-endian 16-bit signed format" },
{ 16, 賒限限AFMT_S16_LE, "Little-endian 16-bit signed format" },
If you don't mind, i'd prefer something like:
{ 8, 賒限限AFMT_MU_LAW, "logarithmic mu-law 8-bit audio" },
{ 8, 賒限限AFMT_A_LAW, "logarithmic A-law 8-bit audio" },
{ 8,賒限限耍FMT_U8, "linear unsigned 8-bit audio" },
{ 8, 賒限限AFMT_S8, "linear signed 8-bit audio" },
{ 16, 賒限限AFMT_U16_BE, "linear unsigned 16-bit big-endian audio" },
{ 16, 賒限限AFMT_U16_LE, "linear unsigned 16-bit little-endian audio" },
{ 16, 賒限限AFMT_S16_BE, "linear signed 16-bit big-endian audio" },
{ 16, 賒限限AFMT_S16_LE, "linear signed 16-bit little-endian audio" },
The above conforms to:
<format> <width> "audio"
where <format> ::= "logarithmic" ("mu-law" | "A-law") |
"linear" ("unsigned" | "signed")
<width> ::= "8-bit" | "16-bit" ("big-endian" | "little-endian")
-- ?!ng
"Simple, yet complex."
-- Lenore Snell