| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "jni/sound_service.h" | 5 #include "embedders/android/sound_service.h" |
| 6 | 6 |
| 7 #include "jni/log.h" | 7 #include "embedders/android/log.h" |
| 8 #include "jni/resource.h" | 8 #include "embedders/android/resource.h" |
| 9 | 9 |
| 10 SoundService::SoundService(android_app* application) | 10 SoundService::SoundService(android_app* application) |
| 11 : application_(application), | 11 : application_(application), |
| 12 engine_(NULL), | 12 engine_(NULL), |
| 13 engine_if_(NULL), | 13 engine_if_(NULL), |
| 14 output_mix_(NULL), | 14 output_mix_(NULL), |
| 15 background_player_(NULL), | 15 background_player_(NULL), |
| 16 background_player_if_(NULL), | 16 background_player_if_(NULL), |
| 17 background_player_seek_if_(NULL) { | 17 background_player_seek_if_(NULL) { |
| 18 } | 18 } |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 (*background_player_if_)->SetPlayState(background_player_if_, | 148 (*background_player_if_)->SetPlayState(background_player_if_, |
| 149 SL_PLAYSTATE_PAUSED); | 149 SL_PLAYSTATE_PAUSED); |
| 150 | 150 |
| 151 (*background_player_)->Destroy(background_player_); | 151 (*background_player_)->Destroy(background_player_); |
| 152 background_player_ = NULL; | 152 background_player_ = NULL; |
| 153 background_player_if_ = NULL; | 153 background_player_if_ = NULL; |
| 154 background_player_seek_if_ = NULL; | 154 background_player_seek_if_ = NULL; |
| 155 } | 155 } |
| 156 } | 156 } |
| 157 } | 157 } |
| OLD | NEW |