* [alsa-user] Re: Microsoft RIFF, WAVE audio data, 1 bit, mono 8000 Hz
@ 1999-07-08 11:46 Alan Cox
0 siblings, 0 replies; only message in thread
From: Alan Cox @ 1999-07-08 11:46 UTC (permalink / raw)
To: linux-sound
> 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--;
}
------
To unsubscribe from <alsa-user@alsa-project.org> mailing list send message
'unsubscribe' in the body of message to <alsa-user-request@alsa-project.org>.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1999-07-08 11:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-07-08 11:46 [alsa-user] Re: Microsoft RIFF, WAVE audio data, 1 bit, mono 8000 Hz Alan Cox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox