/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) 317 HANDLE_WAV wav = *pWav; local 388 HANDLE_WAV wav = (HANDLE_WAV)FDKcalloc(1, sizeof(struct WAV)); local 522 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 | 63 unsigned char wav[44]; local 65 actual = fread(wav, sizeof(char), sizeof(wav), stream); 66 if (actual != sizeof(wav)) 69 if (memcmp(wav, "RIFF", 4)) 71 unsigned riffSize = little4u(&wav[4]); 74 if (memcmp(&wav[8], "WAVEfmt ", 8)) 76 unsigned fmtsize = little4u(&wav[16]); 79 unsigned format = little2u(&wav[20]); 82 unsigned channels = little2u(&wav[22]) 137 unsigned char wav[44]; local 187 unsigned char wav[44]; local [all...] |