Re: Play WAV file in Win10 with Eu 3
- Posted by irv Mar 25, 2021
- 1048 views
With Linux, it's pretty simple:
include GtkEngine.e constant win = create(GtkWindow,"size=300x300,border=10,$destroy=Quit"), pan = create(GtkBox,"orientation=vertical"), box = create(GtkButtonBox), btn1 = create(GtkButton,"gtk-quit","Quit"), btn2 = create(GtkButton,"audio-player#Play","PlayIt") add(win,pan) add(box,{btn1,btn2}) pack_end(pan,box) show_all(win) main() global function PlayIt() system("""aplay "/home/irv/Downloads/surely_a.wav" &""") -- Robert Hays: "Surely you can't be serious." -- Leslie Nielsen: "I am serious. And don't call me 'Shirley.' " return 1 end function