| OLD | NEW |
| 1 // Copyright (c) 2010 The Native Client Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_audio.h" | 5 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_audio.h" |
| 6 | 6 |
| 7 #include <pthread.h> | 7 #include <pthread.h> |
| 8 #include <stdio.h> | 8 #include <stdio.h> |
| 9 #include <string.h> | 9 #include <string.h> |
| 10 #include <sys/errno.h> | 10 #include <sys/errno.h> |
| 11 #include <sys/mman.h> | 11 #include <sys/mman.h> |
| (...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 GetAs<ppapi_proxy::PluginAudio>(audio_resource); | 309 GetAs<ppapi_proxy::PluginAudio>(audio_resource); |
| 310 if (NULL == audio.get()) { | 310 if (NULL == audio.get()) { |
| 311 // Ignore if no audio_resource -> audio_instance mapping exists, | 311 // Ignore if no audio_resource -> audio_instance mapping exists, |
| 312 // the app may have shutdown audio before StreamCreated() invoked. | 312 // the app may have shutdown audio before StreamCreated() invoked. |
| 313 rpc->result = NACL_SRPC_RESULT_OK; | 313 rpc->result = NACL_SRPC_RESULT_OK; |
| 314 return; | 314 return; |
| 315 } | 315 } |
| 316 audio->StreamCreated(sync_socket, shm, shm_size); | 316 audio->StreamCreated(sync_socket, shm, shm_size); |
| 317 rpc->result = NACL_SRPC_RESULT_OK; | 317 rpc->result = NACL_SRPC_RESULT_OK; |
| 318 } | 318 } |
| OLD | NEW |