Printable Version of Topic

Click here to view this topic in its original format

AMIP Community _ Bug Reports _ Announcesong command

Posted by: VesQ Jul 3 2008, 09:04 PM

API command "announcesong N" does what it should do, but when I do "announce" after that it always shows the Nth songs information. Although I've created a workaround for this (uses ac.dll):

CODE
alias announcesong {
  %tmp = $dll(ac,meval,var_pos)
  dll ac mexec announcesong $1
  dll ac mexec announcesong %tmp 3
  dll ac mexec preset 0
}
In my case, I've put the 3rd preset as empty, since I don't actually want it to be announced in public/announced at all. In the last command I also switch the preset back to the first one (although it's 0 there, look at my other bug report) since announcesong also switches the default preset to what's used in it.

Posted by: Serge Jul 4 2008, 06:22 PM

Thanks for the report, indeed, the song information in the internal hash get overwritten with the info from song N and the next call to announce command will use this info until the song is changed in the player and the internal hash is updated again.

I'll try to address it in 2.64.

Powered by Invision Power Board
© Invision Power Services