Subject: xmms plugin -&gt; vis freeze after subsong change

From: mld/uade team
Date: Thu Jan 12 13:34:42 2006

To: Kohina-UADE-Forum
it seems the vis freezes in xmms and audacious when subsongs are changed.
It gets back to life after a minute or so...

---

From: shd
Date: Thu Jan 12 18:58:24 2006

To: Kohina-UADE-Forum
[quote:7431e23d8a="mld/uade team"]it seems the vis freezes in xmms and audacious when subsongs are changed.
It gets back to life after a minute or so...[/quote:7431e23d8a]

[code:1:7431e23d8a]
	uade_ip.add_vis_pcm&#40;uade_ip.output-&gt;written_time&#40;&#41;, sample_format, UADE_CHANNELS, play_bytes, um-&gt;data&#41;;

	uade_ip.output-&gt;write_audio&#40;um-&gt;data, play_bytes&#41;;
[/code:1:7431e23d8a]

That's the involved code. We're doing the same thing as other plugins. But something is obviously different. Just opening seek window causes two seconds of lost visualization. Opening the seek window should not have any side effects.

Also, I've noticed a bug that pressing "stop" stops playing but audacious/xmms does not go to the real stopped state. The play symbol is displayed on the player window but time stamp becomes 0:00 and nothing is played. Pressing stop the second time does the job. There is some bug there. It doesn't affect normal use but it's annoying.

---

From: mld/uade team
Date: Fri Jan 13 10:26:44 2006

To: Kohina-UADE-Forum
[quote:ea916aebaf="shd"]
Also, I've noticed a bug that pressing "stop" stops playing but audacious/xmms does not go to the real stopped state. The play symbol is displayed on the player window but time stamp becomes 0:00 and nothing is played. Pressing stop the second time does the job. There is some bug there. It doesn't affect normal use but it's annoying.[/quote:ea916aebaf]

following seems to be responsible:
[code:1:ea916aebaf]
uade_ip.set_info&#40;gui_filename, play_time, UADE_BYTES_PER_SECOND, UADE_FREQUENCY, UADE_CHANNELS&#41;;
[/code:1:ea916aebaf]

What about calling it only after uade_add_time() only in the if (curmd)? Seems to fix that stop bug on audacious?

---

From: mld/uade team
Date: Fri Jan 13 10:57:19 2006

To: Kohina-UADE-Forum
some interesting info on the first "hanging vis" bug...

the vis gets back to normal when reaching the time when the last subsong was changed.
E.g. if you switch subsong manually at 0:04 the vis gets alive after 0:04 secs :)

It has maybe something to do with uade_get_time/written_time()...