http://www.perlmonks.org?node_id=1203073


in reply to Playing sounds

Ok if it feasible with Tk zentara has already done it.. but since he seems absorbed in some deep meditation..

I'll link to some of his posts: one using SDL Tk Game Sound demo and another using Audio::DSP (that seems a bit aged module) Re^5: sound and gamepad support in Perl?

PS I modified the title of my answer to metion Tk, and please share your improvements!

PPS succesfully tested the first demo ( updated version ) with Perl 5.24 and SDL 2.546 incredible mixing capacities!!

L*

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

Replies are listed 'Best First'.
Re^2: Playing sounds -- Tk
by zentara (Archbishop) on Nov 10, 2017 at 12:35 UTC
    Hi, I have been temporarily awakened from my meditation to concur with Discipulus, SDL is the way to go. SDL is designed to play sounds, and combined with Tk keypress controls, you can get very good responsiveness. I would be concerned that other methods mentioned would result in noticeable time delays in starting/stopping sounds. I return to the Eternal 0m now...... :-)

    I'm not really a human, but I play one on earth. ..... an animated JAPH