Unix Programming - Varying pitch with KDMKTONE

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > September 2004 > Varying pitch with KDMKTONE





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Varying pitch with KDMKTONE
hugo vanwoerkom

2004-09-27, 5:55 pm

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.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com