Filewatcher File Search File Search
Content Search
» » » » » » rtlinux-2.3-pre1-prepatched.tar.gz » Content »
pkg://rtlinux-2.3-pre1-prepatched.tar.gz:16628208/rtlinux-2.3/examples/v1api/sound/  info  downloads


/* #include "../../README" */

This example demonstrates interrupt handling in real time.

You will also find out how to pronounce "Linux" correctly! Since I'm
not sure that everyone will be able to make out the words, here they are:
"Hello, this is Linus Torvalds. I'd like to pronounce `Linux': that's Linux!"
I took this file from .

The real-time process sets up the real-time clock (aka CMOS-clock) to generate
interrupts at 8192 Hz rate. On each interrupt it tries to get a sample from the
RT-FIFO number 0. If successful, it transforms the sample from 8bit ulaw
encoding to 1-bit sample and turns the speaker on or off accordingly.  This
takes advantage of the fact that .au files are typically sampled at 8kHz.

The sound quality is pretty low. 1-bit sampling is clearly not enough.

To run the example type `make; make test;'
Results 1 - 1 of 1
Help - FTP Sites List - Software Dir.
Search over 15 billion files
© 1997-2017