SIDtest.pl untested

filter: Statementstmt 0.0% 0 / 23 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 6 MC/DCmcdc 0.0% 0 / 3 Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 0.0% 0 / 35 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
CRAP 2.0
1 eval 'exec perl -w -S $0 ${1+"$@"}'
2 if 0;
3  
4 use Audio::SID;
5  
6 $mySID = new Audio::SID ("Ala.sid") or die "Whoops!";
7  
8 @array = $mySID->getFieldNames();
9 print "Fieldnames = " . join(' ', @array) . "\n";
10  
11 print "Name = " . $mySID->get('name') . "\n";
12  
13 $mySID->set(author => 'LaLa',
14 name => 'Trallalala',
15 copyright => '1999 Hungarian Cracking Crew');
16  
17 $mySID->setSpeed(1,1);
18  
19 my $clock = $mySID->getClockByName();
20 print "Clock (video standard) before = $clock\n";
21  
22 $mySID->setClockByName('PAL');
23  
24 my $SIDModel = $mySID->getSIDModel();
25 print "SIDModel before = $SIDModel\n";
26  
27 $mySID->setSIDModelByName('8580');
28  
29 $mySID->alwaysValidateWrite(1);
30 $mySID->write("Ala2.sid") or die "Couldn't write!";
31  
32 $mySID->read("Ala2.sid") or die "Couldn't open!";
33  
34 $clock = $mySID->getClockByName();
35 print "Clock (video standard) after = $clock\n";
36  
37 $SIDModel = $mySID->getSIDModelByName();
38 print "SIDModel after = $SIDModel\n";