Home
last modified time | relevance | path

Searched refs:file_handle_ (Results 1 – 4 of 4) sorted by relevance

/external/webrtc/webrtc/common_audio/
Dwav_file.cc50 : file_handle_(fopen(filename.c_str(), "rb")) { in WavReader()
51 RTC_CHECK(file_handle_) << "Could not open wav file for reading."; in WavReader()
53 ReadableWavFile readable(file_handle_); in WavReader()
74 fread(samples, sizeof(*samples), num_samples, file_handle_); in ReadSamples()
76 RTC_CHECK(read == num_samples || feof(file_handle_)); in ReadSamples()
97 RTC_CHECK_EQ(0, fclose(file_handle_)); in Close()
98 file_handle_ = NULL; in Close()
106 file_handle_(fopen(filename.c_str(), "wb")) { in WavWriter()
107 RTC_CHECK(file_handle_) << "Could not open wav file for writing."; in WavWriter()
114 RTC_CHECK_EQ(1u, fwrite(blank_header, kWavHeaderSize, 1, file_handle_)); in WavWriter()
[all …]
Dwav_file.h62 FILE* file_handle_; // Output file, owned by this class variable
91 FILE* file_handle_; // Input file, owned by this class. variable
/external/webrtc/webrtc/modules/audio_processing/test/
Dtest_utils.cc19 : file_handle_(fopen(filename.c_str(), "wb")) {} in RawFile()
22 fclose(file_handle_); in ~RawFile()
29 fwrite(samples, sizeof(*samples), num_samples, file_handle_); in WriteSamples()
33 fwrite(samples, sizeof(*samples), num_samples, file_handle_); in WriteSamples()
Dtest_utils.h41 FILE* file_handle_;