From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: linux-sound@vger.kernel.org
Subject: Re: Microsoft RIFF, WAVE audio data, 1 bit, mono 8000 Hz
Date: Thu, 08 Jul 1999 11:46:38 +0000 [thread overview]
Message-ID: <marc-linux-sound-93143487526900@msgid-missing> (raw)
In-Reply-To: <marc-linux-sound-93141454613681@msgid-missing>
> I have a (free) voice mail service that provides the messages in a wav
> file which file(1) specifies as:
Dial it up and send it a steady tone square wave at about 1KHz.
If my guess to the format is right then you will get back something vaguely
like
FF,00,FF,00,FF,00,FF,00
THen you can figure the bitendianness they use. Basically its exactly what
it sounds like - single bit above/below threshold values.
So you'd do
while(len)
{
uchar i=*data++;
int ct;
for(ct=0;ct<8;ct++)
{
if(i&0x80)
play8bit(0xFF);
else
play8bit(0x00);
i<<=1;
}
len--;
}
next prev parent reply other threads:[~1999-07-08 11:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-07-08 6:14 Microsoft RIFF, WAVE audio data, 1 bit, mono 8000 Hz James H. Cloos Jr.
1999-07-08 11:46 ` Alan Cox [this message]
1999-07-08 15:17 ` James H. Cloos Jr.
1999-07-08 15:17 ` James H. Cloos Jr.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-linux-sound-93143487526900@msgid-missing \
--to=alan@lxorguk.ukuu.org.uk \
--cc=linux-sound@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox