hello / c++ / test.cpp

#include <config.h>
#include <wave.h>
#include <message.h>
#include <iostream>

using namespace std;

int main(int args, char** argv){
  cout << "hello wave!" << endl;
  for( int i =0; i< args; i++)
    cout << " : " << *(argv+i);
  cout << endl;
  string file;

  message m;
  m.print(2);
  message::print( 1 );
  //myprintt("hoge--");
  
//  m.print<const char*>( "hoge " );
  /*  message::print<char*>( "hoge  char" );
  message::print<int>( 1 );
  message::print<double>( 1.02309 );
  message::print( 10e-5 );
*/
  
/** test for wave.c
  if(args < 2) file = "/home/csj/vol03/R00F0028/R00F0028.wav";
  else file = argv[1];
  cout << file << endl;

  wave w(file);

  vector<short> speech;
  vector<short>::iterator its;
  //  do{

  ofstream fout( "tmp.txt" );
  speech = w.read(23989897);
  speech = w.read(23989897);
  for(its = speech.begin(); its != speech.end(); its++){
    fout << its - speech.begin() << "\t" << *its << endl;
  }
  fout.close();
    
    //  }while(!speech.empty());
*/

}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.