NAME Term::Graille::Audio

Modal hierarchical Menu system

SYNOPSIS

use Term::Graille::Audio;            # TERM::Graille's Audio module

my $beep=Term::Graille::Audio->new();# create object;    
$beep->playSound(undef, "A#1");      # use built-in samples to play a note

DESCRIPTION

Developed to use Audio in Braille Applications. Again the empahsis to try and avoid external libraries. It does neeed some things to connect with sound hardware though. Linux systems need pulseaudio utilities Winodws is as yet untested. Windows systems need Win32::Sound

FUNCTIONS

my $beep=Term::Graille::Audio->new(%params)

Creates a new audio interface object; params are samples samples stored in external files may be loaded allowing different sounds to be played back. These are stored and retrieved as Storable files. This is optional, an if not supplied, Term::Graille::Audio gnerates its own sinwave sample.

my $beep->saveSampleSet($name,$path)

Saves a sample set to file to directory (adds an extenison ".spl)

my $beep->saveSampleSet($name,$path)

loads a sample set from full path, excludes the extension in the name;

my $beep->playSound($name,$soundName)

Plays a note from the samplesset ($name). If sampleset is undefined then the builtin-"default" sample set is used.