/external/aac/libSYS/src/ |
wav_file.cpp | 87 Description: a rudimentary wav file interface 102 * \wav->fp filepointer of type FILE*. 109 HANDLE_WAV wav = (HANDLE_WAV)FDKcalloc(1, sizeof(struct WAV)); local 112 if (wav == NULL) { 113 FDKprintfErr("WAV_InputOpen(): Unable to allocate WAV struct.\n"); 117 wav->fp = FDKfopen(filename, "rb"); 118 if (wav->fp == NULL) { 119 FDKprintfErr("WAV_InputOpen(): Unable to open wav file. %s\n", filename); 124 if (FDKfread(&(wav->header.riffType), 1, 4, wav->fp) != 4) 316 HANDLE_WAV wav = *pWav; local 387 HANDLE_WAV wav = (HANDLE_WAV)FDKcalloc(1, sizeof(struct WAV)); local 528 HANDLE_WAV wav = *pWav; local [all...] |
/external/qemu/audio/ |
wavcapture.c | 33 WAVState *wav = opaque; local 36 uint32_t datalen = wav->bytes; 39 if (wav->f) { 43 qemu_fseek (wav->f, 4, SEEK_SET); 44 qemu_put_buffer (wav->f, rlen, 4); 46 qemu_fseek (wav->f, 32, SEEK_CUR); 47 qemu_put_buffer (wav->f, dlen, 4); 48 qemu_fclose (wav->f); 51 qemu_free (wav->path); 56 WAVState *wav = opaque local 64 WAVState *wav = opaque; local 71 WAVState *wav = opaque; local 88 WAVState *wav; local [all...] |
wavaudio.c | 2 * QEMU WAV audio driver 29 #define AUDIO_CAP "wav" 35 /** VOICE OUT (Saving to a .WAV file) 55 "qemu.wav" 60 WAVVoiceOut *wav = (WAVVoiceOut *) hw; local 65 int64_t ticks = now - wav->old_ticks; 76 wav->old_ticks = now; 85 dst = advance (wav->pcm_buf, rpos << hw->info.shift); 88 qemu_put_buffer (wav->f, dst, convert_samples << hw->info.shift); 92 wav->total_samples += convert_samples 116 WAVVoiceOut *wav = (WAVVoiceOut *) hw; local 179 WAVVoiceOut *wav = (WAVVoiceOut *) hw; local 249 WAVVoiceIn* wav = (WAVVoiceIn *) hw; local 332 WAVVoiceIn *wav = (WAVVoiceIn *) hw; local 347 WAVVoiceIn* wav = (WAVVoiceIn *) hw; local [all...] |
/system/media/audio_utils/ |
tinysndfile.c | 77 unsigned char wav[12]; local 79 actual = fread(wav, sizeof(char), sizeof(wav), stream); 84 if (memcmp(wav, "RIFF", 4)) { 85 fprintf(stderr, "wav != RIFF\n"); 88 unsigned riffSize = little4u(&wav[4]); 93 if (memcmp(&wav[8], "WAVE", 4)) { 254 unsigned char wav[58]; local 255 memset(wav, 0, sizeof(wav)); 332 unsigned char wav[58]; local [all...] |