| 6 |
| 7 | #ifndef LIBTGVOIP_OPENSLENGINEWRAPPER_H |
| 8 | #define LIBTGVOIP_OPENSLENGINEWRAPPER_H |
| 9 |
| 10 | #include <SLES/OpenSLES.h> |
| 11 | #include <SLES/OpenSLES_Android.h> |
| 12 |
| 13 | namespace tgvoip{ namespace audio{ |
| 14 | class OpenSLEngineWrapper{ |
| 15 | public: |
| 16 | static SLEngineItf CreateEngine(); |
| 17 | static void DestroyEngine(); |
| 18 |
| 19 | private: |
| 20 | static SLObjectItf sharedEngineObj; |
| 21 | static SLEngineItf sharedEngine; |
| 22 | static int count; |
| 23 | }; |
| 24 | }} |
| 25 |
| 26 | #endif //LIBTGVOIP_OPENSLENGINEWRAPPER_H |
| 27 |