#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 77 of file WAVAudioFileSource.cpp.
Referenced by get2Bytes(), get4Bytes(), skipBytes(), and WAVAudioFileSource::WAVAudioFileSource().
| static Boolean get2Bytes | ( | FILE * | fid, | |
| unsigned short & | result | |||
| ) | [static] |
Definition at line 87 of file WAVAudioFileSource.cpp.
References False, nextc, and True.
Referenced by WAVAudioFileSource::WAVAudioFileSource().
00087 {//little-endian 00088 int c0, c1; 00089 if ((c0 = nextc) == EOF || (c1 = nextc) == EOF) return False; 00090 result = (c1<<8)|c0; 00091 return True; 00092 }
| static Boolean get4Bytes | ( | FILE * | fid, | |
| unsigned & | result | |||
| ) | [static] |
Definition at line 79 of file WAVAudioFileSource.cpp.
References False, nextc, and True.
Referenced by WAVAudioFileSource::WAVAudioFileSource().
00079 { // little-endian 00080 int c0, c1, c2, c3; 00081 if ((c0 = nextc) == EOF || (c1 = nextc) == EOF || 00082 (c2 = nextc) == EOF || (c3 = nextc) == EOF) return False; 00083 result = (c3<<24)|(c2<<16)|(c1<<8)|c0; 00084 return True; 00085 }
| static Boolean skipBytes | ( | FILE * | fid, | |
| int | num | |||
| ) | [static] |
Definition at line 94 of file WAVAudioFileSource.cpp.
References False, nextc, and True.
Referenced by WAVAudioFileSource::WAVAudioFileSource().
00094 { 00095 while (num-- > 0) { 00096 if (nextc == EOF) return False; 00097 } 00098 return True; 00099 }
1.5.2