62 |
try { |
try { |
63 |
RIFF::File* riff = new RIFF::File(argv[1]); |
RIFF::File* riff = new RIFF::File(argv[1]); |
64 |
DLS::File* dls = new DLS::File(riff); |
DLS::File* dls = new DLS::File(riff); |
65 |
if (dls->pInfo->Name != "") cout << "File Name: " << dls->pInfo->Name << endl; |
if (dls->pInfo->Name != "") cout << "File Name: \"" << dls->pInfo->Name << "\"\n"; |
66 |
PrintSamples(dls); |
PrintSamples(dls); |
67 |
cout << endl; |
cout << endl; |
68 |
PrintInstruments(dls); |
PrintInstruments(dls); |
123 |
cout << " Region " << regions << ") "; |
cout << " Region " << regions << ") "; |
124 |
DLS::Sample* pSample = pRegion->GetSample(); |
DLS::Sample* pSample = pRegion->GetSample(); |
125 |
if (pSample) { |
if (pSample) { |
126 |
cout << "Sample: " << pSample->SamplesPerSecond << "Hz, "; |
cout << "Sample: "; |
127 |
|
if (pSample->pInfo->Name != "") { |
128 |
|
cout << "\"" << pSample->pInfo->Name << "\", "; |
129 |
|
} |
130 |
|
cout << pSample->SamplesPerSecond << "Hz, "; |
131 |
} |
} |
132 |
else { |
else { |
133 |
cout << "<NO_VALID_SAMPLE_REFERENCE> "; |
cout << "<NO_VALID_SAMPLE_REFERENCE> "; |
141 |
} |
} |
142 |
|
|
143 |
string Revision() { |
string Revision() { |
144 |
string s = "$Revision: 1.3 $"; |
string s = "$Revision: 1.4 $"; |
145 |
return s.substr(11, s.size() - 13); // cut dollar signs, spaces and CVS macro keyword |
return s.substr(11, s.size() - 13); // cut dollar signs, spaces and CVS macro keyword |
146 |
} |
} |
147 |
|
|