Hello,
I want to display various (cover) images in Muggle during music replay. Thus, the background image displayed using DeviceStillPicture needs to be changed during replay.
The code I use is from the background cover patch for the mp3 plugin. It works fine, but the music replay is interrupted for a short period when the image changes. I suspect, that the sleep statement in the original code is responsible for this:
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?
Lars
P.S. In case this is of help: I use vdr-1.3.33, kernel 2.6-11 with kernel drivers, firmware 261f, TT DVB-s rev1.5
---
On 02 Oct 2005 Lars von Wedel vonwedel@web.de wrote:
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.
On Sonntag 02 Oktober 2005 11:47, Stefan Huelswitt wrote:
For me it seems that one have to wait until the device audio buffer is empty or the firmware will freeze.
That is definitively the case, see my mail on the linux-dvb ML from 20.7.05 00:20
I just wonder - maybe it is possible to fix this by a driver change, maybe by piping the image data through the same ring buffer as the audio data.