On 02 Oct 2005 Lars von Wedel vonwedel@web.de wrote:
if( the_setup.UseDeviceStillPicture ) { sleep(1); DeviceStillPicture( buffer, sp.size ); }
In its original environment, the code is fine as the fragment above is executed before music replay starts. Removing the sleep statement makes the whole thing crash.
Any ideas, how I can display alternating background images while replaying music?
For me it seems that one have to wait until the device audio buffer is empty or the firmware will freeze.
From my experience it's enough to wait for usleep(80000) to
prevent a crash (see mp3 plugin code).
Regards.