Adopt absl::string_view in modules/audio_processing/
Bug: webrtc:13579 Change-Id: Idb05a64cfd16aed68d40cd427a6b516caa5e2077 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/269387 Reviewed-by: Ivo Creusen <ivoc@webrtc.org> Commit-Queue: Ali Tofigh <alito@webrtc.org> Cr-Commit-Position: refs/heads/main@{#37800}
This commit is contained in:
committed by
WebRTC LUCI CQ
parent
13b9f81b23
commit
f3592cb2a2
@ -20,6 +20,7 @@
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include "absl/strings/string_view.h"
|
||||
#include "api/array_view.h"
|
||||
#include "modules/audio_processing/test/conversational_speech/timing.h"
|
||||
#include "modules/audio_processing/test/conversational_speech/wavreader_abstract_factory.h"
|
||||
@ -33,13 +34,13 @@ class MultiEndCall {
|
||||
public:
|
||||
struct SpeakingTurn {
|
||||
// Constructor required in order to use std::vector::emplace_back().
|
||||
SpeakingTurn(std::string new_speaker_name,
|
||||
std::string new_audiotrack_file_name,
|
||||
SpeakingTurn(absl::string_view new_speaker_name,
|
||||
absl::string_view new_audiotrack_file_name,
|
||||
size_t new_begin,
|
||||
size_t new_end,
|
||||
int gain)
|
||||
: speaker_name(std::move(new_speaker_name)),
|
||||
audiotrack_file_name(std::move(new_audiotrack_file_name)),
|
||||
: speaker_name(new_speaker_name),
|
||||
audiotrack_file_name(new_audiotrack_file_name),
|
||||
begin(new_begin),
|
||||
end(new_end),
|
||||
gain(gain) {}
|
||||
@ -52,7 +53,7 @@ class MultiEndCall {
|
||||
|
||||
MultiEndCall(
|
||||
rtc::ArrayView<const Turn> timing,
|
||||
const std::string& audiotracks_path,
|
||||
absl::string_view audiotracks_path,
|
||||
std::unique_ptr<WavReaderAbstractFactory> wavreader_abstract_factory);
|
||||
~MultiEndCall();
|
||||
|
||||
@ -85,7 +86,7 @@ class MultiEndCall {
|
||||
bool CheckTiming();
|
||||
|
||||
rtc::ArrayView<const Turn> timing_;
|
||||
const std::string& audiotracks_path_;
|
||||
std::string audiotracks_path_;
|
||||
std::unique_ptr<WavReaderAbstractFactory> wavreader_abstract_factory_;
|
||||
std::set<std::string> speaker_names_;
|
||||
std::map<std::string, std::unique_ptr<WavReaderInterface>>
|
||||
|
||||
Reference in New Issue
Block a user