Remember this ?
Quote: Originally Posted by Vicne
If displaying ID3 tags is the Holy Grail, preventing the HU from muting is second on my wishlist...
Well, it's not perfect, but I already made a big step : I can now prevent muting when pressing most of the front panel buttons (up to 5) :-).
How ? Well, that's simple : just pretend there is no CD in the tray at that position :-)
Technically speaking, it involves two things :
- first declare one or more missing CDs in the TRAY_STATUS (26h) frame that is part of the bootup sequence. See details about this frame on the
protocol page.
- second, when the user presses a button corresponding to this CD, reply that you refuse to switch to that CD by sending a CD_CHECK (13h) frame with payload 02h 26h.
The effect is that the HU then displays "NO CD" for a few seconds, but the sound
doesn't mute as the HU considers that playback continues "from the same CD". Small drawback : the CD number on the display doesn't switch to that number anymore...
Limitations :
- at least one CD must be present in the tray else the HU doesn't activate SPDIF input and keeps a blank display... So in the Java emulator, I'll make it configurable which CDs you wan't to declare "present" (mute but number change) or "absent" (number change but no mute). But in all cases, the CD number press is detected and dispatched to the plugins of course :-)
- still no way found for the stalk controls... (In case you wonder, the "NEXT CD" (thumbwheel pull) restarts the CD at track 1 if there's only one CD in the tray) :-(
Possible improvement :
Maybe one could send "CD_CHECK" sequence at other times than during boot up. This way, when user clicks button 3, we would reply "NO CD", then change the bitmap to pretend the only CD present is number 3, so that all other buttons don't mute... But that's not guaranteed and would prevent clicking on the same button multiple times without muting so I won't even try.
Expect version 0.4 of the Java Emulator this week-end...