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

Side by Side Diff: ppapi/cpp/dev/audio_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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/cpp/dev/audio_dev.h ('k') | ppapi/ppapi.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2010 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.
4
5 #include "ppapi/cpp/dev/audio_dev.h"
6
7 #include "ppapi/cpp/module_impl.h"
8
9 namespace pp {
10
11 namespace {
12
13 template <> const char* interface_name<PPB_Audio_Dev>() {
14 return PPB_AUDIO_DEV_INTERFACE;
15 }
16
17 } // namespace
18
19 Audio_Dev::Audio_Dev(Instance* instance,
20 const AudioConfig_Dev& config,
21 PPB_Audio_Callback callback,
22 void* user_data)
23 : config_(config) {
24 if (has_interface<PPB_Audio_Dev>()) {
25 PassRefFromConstructor(get_interface<PPB_Audio_Dev>()->Create(
26 instance->pp_instance(), config.pp_resource(), callback, user_data));
27 }
28 }
29
30 bool Audio_Dev::StartPlayback() {
31 return has_interface<PPB_Audio_Dev>() &&
32 get_interface<PPB_Audio_Dev>()->StartPlayback(pp_resource());
33 }
34
35 bool Audio_Dev::StopPlayback() {
36 return has_interface<PPB_Audio_Dev>() &&
37 get_interface<PPB_Audio_Dev>()->StopPlayback(pp_resource());
38 }
39
40 } // namespace pp
41
OLDNEW
« no previous file with comments | « ppapi/cpp/dev/audio_dev.h ('k') | ppapi/ppapi.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698