Image display during mp3 replay / DeviceStillPicture

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 02 Oct 2005 Lars von Wedel <vonwedel@xxxxxx> 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.

-- 
Stefan Huelswitt
s.huelswitt@xxxxxx  | http://www.muempf.de/


[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux