| 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 #ifndef NATIVE_CLIENT_SRC_TRUSTED_SEL_UNIVERASAL_MULTIMEDIA_H_ | 7 #ifndef NATIVE_CLIENT_SRC_TRUSTED_SEL_UNIVERASAL_PRIMITIVES_H_ |
| 8 #define NATIVE_CLIENT_SRC_TRUSTED_SEL_UNIVERASAL_MULTIMEDIA_H_ | 8 #define NATIVE_CLIENT_SRC_TRUSTED_SEL_UNIVERASAL_PRIMITIVES_H_ |
| 9 | 9 |
| 10 // Abstract multimedia interface | 10 // Abstract multimedia interface |
| 11 // NOTE: currently only video and simple events are supported | 11 // NOTE: currently only video and simple events are supported |
| 12 | 12 |
| 13 class PP_InputEvent; | 13 class PP_InputEvent; |
| 14 | 14 |
| 15 const int MY_EVENT_FLUSH_CALL_BACK = 88; | 15 const int MY_EVENT_FLUSH_CALL_BACK = 88; |
| 16 const int MY_EVENT_INIT_AUDIO = 89; | 16 const int MY_EVENT_INIT_AUDIO = 89; |
| 17 // data1 = callback_id, data2 = result value | 17 // data1 = callback_id, data2 = result value |
| 18 const int MY_EVENT_TIMER_CALL_BACK = 90; | 18 const int MY_EVENT_TIMER_CALL_BACK = 90; |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 int channels, | 57 int channels, |
| 58 int frame_count, | 58 int frame_count, |
| 59 AUDIO_CALLBACK cb) = 0; | 59 AUDIO_CALLBACK cb) = 0; |
| 60 virtual void AudioStart() = 0; | 60 virtual void AudioStart() = 0; |
| 61 virtual void AudioStop() = 0; | 61 virtual void AudioStop() = 0; |
| 62 }; | 62 }; |
| 63 | 63 |
| 64 /* Currently, there is only an SDL implementation */ | 64 /* Currently, there is only an SDL implementation */ |
| 65 IMultimedia* MakeMultimediaSDL(int width, int heigth, const char* title); | 65 IMultimedia* MakeMultimediaSDL(int width, int heigth, const char* title); |
| 66 | 66 |
| 67 #endif /* NATIVE_CLIENT_SRC_TRUSTED_SEL_UNIVERASAL_MULTIMEDIA_H_ */ | 67 #endif /* NATIVE_CLIENT_SRC_TRUSTED_SEL_UNIVERASAL_PRIMITIVES_H_ */ |
| OLD | NEW |