Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> 'change' callback not registering when repeating song
stoff3
post Mar 10 2009, 03:00 AM
Post #1


Newbie
*

Group: Members
Posts: 5
Joined: 21-February 09
Member No.: 684



Hi,

It appears that AMIP doesn't run the 'change' callback when you play the same song twice or more in a row.

Eg:

Play song 1, it gets run.
Play song 2, it gets run.
Play song 2 again, it doesn't run.

2-1-2 works of course, but it doesn't recognize repeats. Any workarounds for this if it's the intended behaviour, if not, is it possible to get a fix out?

Thanks in advance.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Serge
post Mar 10 2009, 06:54 AM
Post #2


AMIP Developer
***

Group: Root Admin
Posts: 935
Joined: 12-March 06
Member No.: 1



Change means the new song is playing, so it's by design. AMIP cannot detect the songs with the same title being played one after another, it will think that it's the same song.

In theory it's possible to add another callback called Replay which will trigger when the song timer goes from the end of the song to the beginning of the same song. I can add such callback in the future AMIP versions but I doubt that many users will use it.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
stoff3
post Mar 10 2009, 10:22 AM
Post #3


Newbie
*

Group: Members
Posts: 5
Joined: 21-February 09
Member No.: 684



QUOTE(Serge @ Mar 10 2009, 07:54 AM) *

Change means the new song is playing, so it's by design. AMIP cannot detect the songs with the same title being played one after another, it will think that it's the same song.

In theory it's possible to add another callback called Replay which will trigger when the song timer goes from the end of the song to the beginning of the same song. I can add such callback in the future AMIP versions but I doubt that many users will use it.


I see. The reason I ask is that I have AMIP set up to invoke a script which logs plays to a database, but it obviously doesn't log repeated plays as it is now. If such a callback could be added it would be great, but I understand if you prioritize other matters.

Thanks for clearing this all up.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: