/[svn]/libgig/trunk/src/dlsdump.cpp
ViewVC logotype

Diff of /libgig/trunk/src/dlsdump.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 518 by schoenebeck, Sun May 8 16:19:34 2005 UTC revision 804 by schoenebeck, Sat Nov 12 19:16:01 2005 UTC
# Line 62  int main(int argc, char *argv[]) Line 62  int main(int argc, char *argv[])
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);
# Line 123  void PrintRegions(DLS::Instrument* instr Line 123  void PrintRegions(DLS::Instrument* instr
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> ";
# Line 137  void PrintRegions(DLS::Instrument* instr Line 141  void PrintRegions(DLS::Instrument* instr
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    

Legend:
Removed from v.518  
changed lines
  Added in v.804

  ViewVC Help
Powered by ViewVC