| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2010 The Native Client Authors. All rights reserved. | 2 * Copyright 2010 The Native Client Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can | 3 * Use of this source code is governed by a BSD-style license that can |
| 4 * be found in the LICENSE file. | 4 * be found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 #include "native_client/src/shared/ppapi_proxy/plugin_audio.h" | 7 #include "native_client/src/shared/ppapi_proxy/plugin_audio.h" |
| 8 | 8 |
| 9 #include <stdio.h> | 9 #include <stdio.h> |
| 10 #include <string.h> | 10 #include <string.h> |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 PP_Resource config, | 22 PP_Resource config, |
| 23 PPB_Audio_Callback audio_callback, | 23 PPB_Audio_Callback audio_callback, |
| 24 void* user_data) { | 24 void* user_data) { |
| 25 UNREFERENCED_PARAMETER(instance); | 25 UNREFERENCED_PARAMETER(instance); |
| 26 UNREFERENCED_PARAMETER(config); | 26 UNREFERENCED_PARAMETER(config); |
| 27 UNREFERENCED_PARAMETER(audio_callback); | 27 UNREFERENCED_PARAMETER(audio_callback); |
| 28 UNREFERENCED_PARAMETER(user_data); | 28 UNREFERENCED_PARAMETER(user_data); |
| 29 return kInvalidResourceId; | 29 return kInvalidResourceId; |
| 30 } | 30 } |
| 31 | 31 |
| 32 PP_Bool IsAudio(PP_Resource audio) { | 32 PP_Bool IsAudio(PP_Resource resource) { |
| 33 UNREFERENCED_PARAMETER(audio); | 33 return PluginResource::GetAs<PluginAudio>(resource).get() |
| 34 return PP_FALSE; | 34 ? PP_TRUE : PP_FALSE; |
| 35 } | 35 } |
| 36 | 36 |
| 37 PP_Resource GetCurrentConfig(PP_Resource audio) { | 37 PP_Resource GetCurrentConfig(PP_Resource audio) { |
| 38 UNREFERENCED_PARAMETER(audio); | 38 UNREFERENCED_PARAMETER(audio); |
| 39 return kInvalidResourceId; | 39 return kInvalidResourceId; |
| 40 } | 40 } |
| 41 | 41 |
| 42 PP_Bool StartPlayback(PP_Resource audio) { | 42 PP_Bool StartPlayback(PP_Resource audio) { |
| 43 UNREFERENCED_PARAMETER(audio); | 43 UNREFERENCED_PARAMETER(audio); |
| 44 return PP_FALSE; | 44 return PP_FALSE; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 55 Create, | 55 Create, |
| 56 IsAudio, | 56 IsAudio, |
| 57 GetCurrentConfig, | 57 GetCurrentConfig, |
| 58 StartPlayback, | 58 StartPlayback, |
| 59 StopPlayback, | 59 StopPlayback, |
| 60 }; | 60 }; |
| 61 return &intf; | 61 return &intf; |
| 62 } | 62 } |
| 63 | 63 |
| 64 } // namespace ppapi_proxy | 64 } // namespace ppapi_proxy |
| OLD | NEW |