Although it runs on the development machine, it has failed on three out of three other machines I tried it on. There doesn't seem to be any common denominator, e.g., the version of the OSS doesn't predict whether it will work or not.
Your code runs fine here. From my accumulated zen wisdom in how this stuff goes down, whenever there seems to be odd issues where the very same code runs differently on other machines, it usually is some hardware difference.... maybe the io from the /dev/dsp is better from the /dev/dsp on some machines, and on others, the oss io is flawed and creates a bottleneck. Who knows? But the code you posted is valid, runs here fine, and what else can I say except check those differences in the kernel and software updates from Ubuntu 10.04 to 10.10, and see how they may affect your particular hardware. You don't even mention if the 2 machines have the same hardware... ie processor speed, ram, and soundcard.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.