chromium/third_party/webrtc/common_audio/wav_file.cc

/*
 *  Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
 *
 *  Use of this source code is governed by a BSD-style license
 *  that can be found in the LICENSE file in the root of the source
 *  tree. An additional intellectual property rights grant can be found
 *  in the file PATENTS.  All contributing project authors may
 *  be found in the AUTHORS file in the root of the source tree.
 */

#include "common_audio/wav_file.h"

#include <errno.h>

#include <algorithm>
#include <array>
#include <cstdio>
#include <type_traits>
#include <utility>

#include "common_audio/include/audio_util.h"
#include "rtc_base/checks.h"
#include "rtc_base/system/arch.h"

namespace webrtc {
namespace {

static_assert;

// Checks whether the format is supported or not.
bool FormatSupported(WavFormat format) {}

// Doesn't take ownership of the file handle and won't close it.
class WavHeaderFileReader : public WavHeaderReader {};

constexpr size_t kMaxChunksize =;

}  // namespace

WavReader::WavReader(absl::string_view filename)
    :{}

WavReader::WavReader(FileWrapper file) :{}

void WavReader::Reset() {}

size_t WavReader::ReadSamples(const size_t num_samples,
                              int16_t* const samples) {}

size_t WavReader::ReadSamples(const size_t num_samples, float* const samples) {}

void WavReader::Close() {}

WavWriter::WavWriter(absl::string_view filename,
                     int sample_rate,
                     size_t num_channels,
                     SampleFormat sample_format)
    // Unlike plain fopen, OpenWriteOnly takes care of filename utf8 ->
    // wchar conversion on windows.
    :{}

WavWriter::WavWriter(FileWrapper file,
                     int sample_rate,
                     size_t num_channels,
                     SampleFormat sample_format)
    :{}

void WavWriter::WriteSamples(const int16_t* samples, size_t num_samples) {}

void WavWriter::WriteSamples(const float* samples, size_t num_samples) {}

void WavWriter::Close() {}

}  // namespace webrtc