Home | History | Annotate | Download | only in sonic

Lines Matching refs:bytes

23     int bytesWritten; /* The number of bytes written so far, including header */
31 void *bytes,
39 bytesWritten = fwrite(bytes, sizeof(char), length, file->soundFile);
60 char bytes[4];
64 bytes[i] = value;
67 writeBytes(file, bytes, 4);
75 char bytes[2];
79 bytes[i] = value;
82 writeBytes(file, bytes, 2);
85 /* Read bytes from the input file. Return the number of bytes actually read. */
88 void *bytes,
94 return fread(bytes, sizeof(char), length, file->soundFile);
97 /* Read an exact number of bytes from the input file. */
100 void *bytes,
108 numRead = fread(bytes, sizeof(char), length, file->soundFile);
110 fprintf(stderr, "Failed to read requested bytes from input file\n");
119 unsigned char bytes[4];
122 readExactBytes(file, bytes, 4);
125 value |= bytes[i];
134 unsigned char bytes[2];
137 readExactBytes(file, bytes, 2);
140 value |= bytes[i];
182 writeInt(file, sampleRate * 2); /* 28 - bytes per second */
183 writeShort(file, 2); /* 32 - # of bytes in one sample, for all channels */
211 readInt(file); /* 28 - bytes per second */
212 readShort(file); /* 32 - # of bytes in one sample, for all channels */
218 if (chunkSize == 18) { /* ffmpeg writes 18, and so has 2 extra bytes here */
332 unsigned char bytes[WAVE_BUF_LEN];
338 bytesRead = readBytes(file, bytes, maxSamples*file->numChannels*2);
341 sample = bytes[bytePos++];
342 sample |= (unsigned int)bytes[bytePos++] << 8;
356 unsigned char bytes[WAVE_BUF_LEN];
362 writeBytes(file, bytes, bytePos);
366 bytes[bytePos++] = sample;
367 bytes[bytePos++] = sample >> 8;
370 writeBytes(file, bytes, bytePos);