[Android] Add ps_ext tool for tools-friendly cpu/mem/proc stats.
[chromium-blink-merge.git] / media / audio / audio_output_dispatcher.cc
blob1e78c9d2c369191981c1c96d6596dfc65975aaf0
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "media/audio/audio_output_dispatcher.h"
7 #include "base/single_thread_task_runner.h"
9 namespace media {
11 AudioOutputDispatcher::AudioOutputDispatcher(
12 AudioManager* audio_manager,
13 const AudioParameters& params,
14 const std::string& output_device_id,
15 const std::string& input_device_id)
16 : audio_manager_(audio_manager),
17 task_runner_(audio_manager->GetTaskRunner()),
18 params_(params),
19 output_device_id_(output_device_id),
20 input_device_id_(input_device_id) {
21 // We expect to be instantiated on the audio thread. Otherwise the
22 // |task_runner_| member will point to the wrong message loop!
23 DCHECK(audio_manager->GetTaskRunner()->BelongsToCurrentThread());
26 AudioOutputDispatcher::~AudioOutputDispatcher() {
27 DCHECK(task_runner_->BelongsToCurrentThread());
30 } // namespace media