Re: set playback position?
Marcus Brinkmann <[email protected]>
| Newsgroups | gmane.comp.audio.netmd.devel |
|---|---|
| Message-ID | <20030111180059.GD1737@ulysses> |
(repost because of the server problems last week) On Thu, Jan 02, 2003 at 09:24:46PM +0100, Marcus Brinkmann wrote: > netmd_cmd_buf_t *cmdbuf = > netmd_simple_command( unit, 32, "001850 ff010000 WW", > p1, track ); > > But this is dangerous. If I sent first > "001850 ff010000 0000 0001 00123400" > > and then > "001850 ff010000 0000 0001" > > the playback position will be at 12:34 in the second track, because the > internal buffer still has the 1234 around and the command does not honor the > too small request length. I suggest that you always add the time position, > even if it is just 00000000. Doh' I was confused. There is a difference between 0018 50 ff00 ... and 0018 50 ff01 ... I think we can now say that for "short commands" of the form 0018 XX ffYY.... YY is a subcode that selects a certain command from a group. Probably we are already seeing legacy cruft and backward compatibility issues here (even though netmd is a new protocol, maybe it is internally revised). 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/