blob: 81c58aa4a3acbda0af1a0ed6aa95a624a8d05ce3 [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "media/audio/audio_system.h"
#include <utility>
#include "base/bind.h"
#include "base/callback.h"
#include "media/audio/audio_device_description.h"
namespace media {
// static
AudioSystem::OnDeviceDescriptionsCallback
AudioSystem::WrapCallbackWithDeviceNameLocalization(
OnDeviceDescriptionsCallback callback) {
return base::BindOnce(
[](OnDeviceDescriptionsCallback cb,
media::AudioDeviceDescriptions descriptions) {
media::AudioDeviceDescription::LocalizeDeviceDescriptions(
&descriptions);
std::move(cb).Run(std::move(descriptions));
},
std::move(callback));
}
} // namespace media