#include "WAVAudioFileSource.hh"#include "InputFile.hh"#include "GroupsockHelper.hh"Include dependency graph for WAVAudioFileSource.cpp:

Go to the source code of this file.
Defines | |
| #define | nextc fgetc(fid) |
Functions | |
| static Boolean | get4Bytes (FILE *fid, unsigned &result) |
| static Boolean | get2Bytes (FILE *fid, unsigned short &result) |
| static Boolean | skipBytes (FILE *fid, int num) |
| #define nextc fgetc(fid) |
Definition at line 81 of file WAVAudioFileSource.cpp.
Referenced by get2Bytes(), get4Bytes(), skipBytes(), and WAVAudioFileSource::WAVAudioFileSource().
| static Boolean get2Bytes | ( | FILE * | fid, | |
| unsigned short & | result | |||
| ) | [static] |
Definition at line 91 of file WAVAudioFileSource.cpp.
References False, nextc, and True.
Referenced by WAVAudioFileSource::WAVAudioFileSource().
00091 {//little-endian 00092 int c0, c1; 00093 if ((c0 = nextc) == EOF || (c1 = nextc) == EOF) return False; 00094 result = (c1<<8)|c0; 00095 return True; 00096 }
| static Boolean get4Bytes | ( | FILE * | fid, | |
| unsigned & | result | |||
| ) | [static] |
Definition at line 83 of file WAVAudioFileSource.cpp.
References False, nextc, and True.
Referenced by WAVAudioFileSource::WAVAudioFileSource().
00083 { // little-endian 00084 int c0, c1, c2, c3; 00085 if ((c0 = nextc) == EOF || (c1 = nextc) == EOF || 00086 (c2 = nextc) == EOF || (c3 = nextc) == EOF) return False; 00087 result = (c3<<24)|(c2<<16)|(c1<<8)|c0; 00088 return True; 00089 }
| static Boolean skipBytes | ( | FILE * | fid, | |
| int | num | |||
| ) | [static] |
Definition at line 98 of file WAVAudioFileSource.cpp.
References False, nextc, and True.
Referenced by WAVAudioFileSource::WAVAudioFileSource().
00098 { 00099 while (num-- > 0) { 00100 if (nextc == EOF) return False; 00101 } 00102 return True; 00103 }
1.5.2