Re: Protocol documentation updated
Marcus Brinkmann <[email protected]>
| Newsgroups | gmane.comp.audio.netmd.devel |
|---|---|
| Message-ID | <20030122170251.GA869@ulysses> |
On Wed, Jan 22, 2003 at 06:39:59AM -0800, Matthew Fudge wrote: > My mistake got the $a in the wrong position and chose > a bad example (play). > > 00 18 $a etc is limited for the following commands > > Power > Eject > Rehersal mode part 1 > Rehersal mode part 2 > divide audio tracks > combine audio tracks > Record new track > config source plug > config dest plug > > $a IS a byte but for these commands its LS bit is > always > zero. I think you should take another, more careful, look into the code. What you call $a is not the third byte in the command, but the very first byte. It's usually the last argument to the function calls above, and is "0" if the command should be probed (if it is supported by the netmd device), and "1" if the command should be executed for real. This translates into 02 and 00 in the netmd command. So the code transforms 0 into 02 and 1 into 00. THe way it does this is convoluted (neg, sbb, & 254, + 2). You only saw the & 254 and missed the other manipulations, and also got it in the wrong position of the command. > If you could send me the snapshot of freemd I'd > appreciate it. Comes in private mail. Thanks, Marcus -- `Rhubarb is no Egyptian god.' GNU http://www.gnu.org [email protected] Marcus Brinkmann The Hurd http://www.gnu.org/software/hurd/ [email protected] http://www.marcus-brinkmann.de/