On 2022-08-08, Lucian Popescu <luci...@ctrl-c.club> wrote: > lucian-pc# cdio cdplay > track 1 'a' 00000200/00018053 1% > > From another terminal I issue the following command to play the next > song: > > lucian-pc# cdio next #exit code is 0 > > However this does not work. Can I use next and prev with cdplay? The man > page does not make this clear.
No, "next" and "previous" work with "play". The fact that it is impossible to issue other commands as long as "cdplay" is running should be sufficiently clear, your very determined effort to circumvent this nonwithstanding. > What I observed is that when using 'cdio play' with 'cdio next' the > track reported by 'cdio status' is indeed changed. The problem with this > approach is that 'cdio play' does not output any sound. Oh, it does--to the (probably nonexistent) analog output of your CD drive, which needs to be hooked up to a corresponding input on your soundcard. You have now traveled back in time to the 1990s. cdio(1) was designed for the way CD drives were connected into the system back then. This has been long obsolete. At some point, the "cdplay" and "cdrip" commands were bolted onto cdio to accommodate the then current model where the audio data was digitally read off the CD over the SCSI/SATA/USB/etc. bus. However, contrary to "play", the "cdplay" command is blocking. "Play" would return you to the cdio prompt right away, and you could fire off other command such as "next", "previous", "pause", "stop", etc. With "cdplay" you are stuck while it is running. cdio(1) is cobbled together, mostly designed for a world that no longer exists, and would have to be redesigned from scratch for a consistent user experience. Nobody has stepped forward to do this, even when CD drives were still common, so I don't expect it to ever happen. -- Christian "naddy" Weisgerber na...@mips.inka.de