develooper Front page | perl.beginners | Postings from January 2018

Basic audio playing, keyboard management

From:
Cleverson Casarin Uliana
Date:
January 22, 2018 17:04
Subject:
Basic audio playing, keyboard management
Message ID:
CAMnvY378qjwVUEOgPPTfZz-tmUL7VR9Fjku0xX5gWAACO1tm+Q@mail.gmail.com
Hello all, I know the basics of various languages such as c, java,
Python, and others, and I'm willing to learn some perl. I'd like to
try writing a simple game while learning, and I'd like some modules'
suggestions. I've actually searched Metacpan.org already, but results
are too many, and because I'm just beginning, I have no idea what
modules are the easiest to do what I have in mind exactly...

First, I'd like to play and stop sound wave files assynchronously. I'm
currently on Windows, but in case there is a multiplatform module to
do that which Works also for Linux, it'd be nice.

Secondly, I'd like to detect each key or key combination a user
presses on the keyboard, and be able to assign an action to it (e.g.
play a given sound file on a given key press), prefferably on a
console. I guess that's easy to do on a system like Linux, which
doesn't enforce a GUI by default, but if there is any solution for the
Windows console, would be nice.

Thank you,
Cleverson



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About