Varying pitch with KDMKTONE
From: hugo vanwoerkom (hugovanwoerkomqt_at_yahoo.com)
Date: 09/27/04
- Next message: Lew Pitcher: "Re: How can I run server and client applications in two different computers?"
- Previous message: learning_C++: "How can I run server and client applications in two different computers?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 27 Sep 2004 12:23:45 -0700
Hi!
With this:
ioctl(fd, KDMKTONE, (duration << 16) | (freq?(1193180 /freq):0));
I can produce a speaker tone that I can vary in length, but not in
pitch, no matter what I make freq.
Anybody got that to work?
Hugo.
- Next message: Lew Pitcher: "Re: How can I run server and client applications in two different computers?"
- Previous message: learning_C++: "How can I run server and client applications in two different computers?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|