~marcustomlinson/dspatch/2.62

« back to all changes in this revision

Viewing changes to example/DspWaveStreamer.cpp

  • Committer: Marcus Tomlinson
  • Date: 2014-01-19 14:25:56 UTC
  • Revision ID: marcus.tomlinson@canonical.com-20140119142556-08vsi23g1ae4t9kc
DspWaveStreamer fix (don't assume standard type sizes)

Show diffs side-by-side

added added

removed removed

Lines of Context:
80
80
    return false;
81
81
  }
82
82
  inFile.seekg( 4, std::ios::beg ); //get file size
83
 
  inFile.read( reinterpret_cast<char*>( &dwFileSize ), sizeof( dwFileSize ) );
 
83
  inFile.read( reinterpret_cast<char*>( &dwFileSize ), 4 );
84
84
  if( dwFileSize <= 16 )
85
85
  {
86
86
    inFile.close();