Announcement

Collapse
No announcement yet.

playing wav file during graphic on uLCD-32pt

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • playing wav file during graphic on uLCD-32pt

    Hi,

    I am using the 4D-Visi CoolGauge graphic and I am trying to play a wav file while the needle of the gauge is moving up/down. When I try to play the wav file while having the needle move, I am getting a beeping sound, and I assume that this means that only the first block of the wav file is being played. I have also tried playing the file before moving the needle, but this of course just plays the entire wav file before displaying the graphic. Does anybody know how I can play the entire wav file while the needle is moving?

    Thanks!

  • #2


    It should be possible to play sound while guage is being serviced.
    file_PlayWAV("filename");
    should be non blocking, and allow the guage blitting to occur simultaneously.

    There is a possibility that there is insufficient current from the USB port,

    try reducing the volume considerably and observe the differences.

    eg
    snd_Volume(10);

    also try giving the wave player a larger buffer size,

    eg
    snd_BufSize(1);
    or
    snd_BufSize(2);

    If this does not help, please post a short demo code and we will sort it out.
    Regards,
    Dave

    Comment


    • #3


      That worked, thanks!
      Turns out that the BufSize needed to be set to 3 and the Volume to 10.
      Everything works as it should after that.

      Comment

      Working...
      X