Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(236)

Unified Diff: ppapi/cpp/dev/audio_config_dev.cc

Issue 6281007: Remove dev/audio, dev/audio_config, and dev/audio_trusted... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/cpp/dev/audio_config_dev.h ('k') | ppapi/cpp/dev/audio_dev.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/dev/audio_config_dev.cc
===================================================================
--- ppapi/cpp/dev/audio_config_dev.cc (revision 71865)
+++ ppapi/cpp/dev/audio_config_dev.cc (working copy)
@@ -1,48 +0,0 @@
-// Copyright (c) 2010 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 "ppapi/cpp/dev/audio_config_dev.h"
-
-#include "ppapi/cpp/instance.h"
-#include "ppapi/cpp/module.h"
-#include "ppapi/cpp/module_impl.h"
-
-namespace pp {
-
-namespace {
-
-template <> const char* interface_name<PPB_AudioConfig_Dev>() {
- return PPB_AUDIO_CONFIG_DEV_INTERFACE;
-}
-
-} // namespace
-
-AudioConfig_Dev::AudioConfig_Dev()
- : sample_rate_(PP_AUDIOSAMPLERATE_NONE),
- sample_frame_count_(0) {
-}
-
-AudioConfig_Dev::AudioConfig_Dev(Instance* instance,
- PP_AudioSampleRate_Dev sample_rate,
- uint32_t sample_frame_count)
- : sample_rate_(sample_rate),
- sample_frame_count_(sample_frame_count) {
- if (has_interface<PPB_AudioConfig_Dev>()) {
- PassRefFromConstructor(
- get_interface<PPB_AudioConfig_Dev>()->CreateStereo16Bit(
- instance->pp_instance(), sample_rate, sample_frame_count));
- }
-}
-
-// static
-uint32_t AudioConfig_Dev::RecommendSampleFrameCount(
- uint32_t requested_sample_frame_count) {
- if (!has_interface<PPB_AudioConfig_Dev>())
- return 0;
- return get_interface<PPB_AudioConfig_Dev>()->
- RecommendSampleFrameCount(requested_sample_frame_count);
-}
-
-} // namespace pp
-
« no previous file with comments | « ppapi/cpp/dev/audio_config_dev.h ('k') | ppapi/cpp/dev/audio_dev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698