Announcement

Collapse
No announcement yet.

Audio wav file not played

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

  • ESPsupport
    replied
    The two files that don't play are not valid short filenames. Use dir /x to find the short filenames and try to play them using the short names.

    Leave a comment:


  • eabir
    started a topic Audio wav file not played

    Audio wav file not played

    Hi,

    I have three *.wav files on the uSD which decoded in 16Khz 16bit each.

    But only the WF16k.wav is played, for BLEEP416k.wav and Bubble16k.wav i got a the putstr "XXX.wav not found",also tried each alone in the code.

    Please see attached the *ץwav files , i realy appreciate if you can play them on the uLCD-43PT and see what is the result.


    This is the code:

    "
    #platform "uLCD-43PT"

    #inherit "4DGL_16bitColours.fnc"

    #inherit "VisualConst.inc"

    #inherit "VidImageConst.inc"

    func main()

    var frame ;
    // Uncomment the following if uSD images used.
    putstr("Mounting...\n");
    if (!(disk:=file_Mount()))
    while(!(disk :=file_Mount()))
    putstr("Drive not mounted...");
    pause(200);
    gfx_Cls();
    pause(200);
    wend
    endif
    gfx_TransparentColour(0x0020);
    gfx_Transparency(ON);

    hndl := file_LoadImageControl("VidImage.dat", "VidImage.gci", 1);


    img_Show(hndl,iimage1) ;
    pause(5000);

    if(file_Exists("BLEEP416k.wav"))
    snd_BufSize(3);
    snd_Volume(127);
    file_PlayWAV("BLEEP416k.wav");
    while(snd_Playing());
    else
    putstr("BLEEP416k.wav not found");
    endif

    if(file_Exists("Bubble16k.wav"))
    snd_BufSize(3);
    snd_Volume(127);
    file_PlayWAV("Bubble16k.wav");
    while(snd_Playing());
    else
    putstr("Bubble16k.wav not found");
    endif

    if(file_Exists("WF16k.wav"))
    snd_BufSize(3);
    snd_Volume(127);
    file_PlayWAV("WF16k.wav");
    while(snd_Playing());
    else
    putstr("WF16k.wav not found");
    endif

    for (frame := 0; frame <= 604; frame++)


    // video1 1.0 generated 21/08/2014 16:49:25
    // img_SetWord(hndl, ivideo1, IMAGE_INDEX, frame) ; // where frame is 0 to 604
    // img_Show(hndl,ivideo1) ;

    pause(10) ;

    next


    // image1 1.0 generated 21/08/2014 16:49:02
    img_Show(hndl,iimage1) ;






    repeat forever
    endfunc

    "

    Thanks,
    Eyall
    Attached Files
Working...
X