Home
last modified time | relevance | path

Searched refs:wavFile (Results 1 - 2 of 2) sorted by relevance

/base/telephony/call_manager/services/audio/src/
H A Daudio_player.cpp127 FILE *wavFile = fopen(realPath.c_str(), "rb"); in Play() local
128 if (wavFile == nullptr) { in Play()
132 (void)fread(&wavHeader, READ_SIZE, sizeof(wav_hdr), wavFile); in Play()
136 (void)fclose(wavFile); in Play()
142 (void)fclose(wavFile); in Play()
150 } else if (feof(wavFile)) { in Play()
151 fseek(wavFile, 0, SEEK_SET); // jump back to the beginning of the file in Play()
152 fread(&wavHeader, READ_SIZE, sizeof(wav_hdr), wavFile); // skip the wav header in Play()
154 bytesToWrite = fread(buffer, READ_SIZE, bufferLen, wavFile); in Play()
165 (void)fclose(wavFile); in Play()
[all...]
/base/telephony/call_manager/test/unittest/ui_client/
H A Dui_client_test.cpp957 FILE *wavFile = fopen(path, "rb"); in PlayRingtone() local
958 if (wavFile == nullptr) { in PlayRingtone()
962 (void)fread(&wavHeader, READ_SIZE, sizeof(wav_hdr), wavFile); in PlayRingtone()
966 (void)fclose(wavFile); in PlayRingtone()
971 (void)fclose(wavFile); in PlayRingtone()
977 (void)fclose(wavFile); in PlayRingtone()
980 while (!feof(wavFile)) { in PlayRingtone()
981 bytesToWrite = fread(buffer.get(), READ_SIZE, bufferLen, wavFile); in PlayRingtone()
991 (void)fclose(wavFile); in PlayRingtone()

Completed in 5 milliseconds