Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Playing sounds -- Tk

by Discipulus (Monsignor)
on Nov 09, 2017 at 17:43 UTC ( #1203073=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1203073]
help
Chatterbox?
LanX likes Swedish clogs

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (10)
As of 2017-12-15 16:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (439 votes). Check out past polls.

    Notices?