Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef _KIT_KMIXERPRIVATE_H
- #define _KIT_KMIXERPRIVATE_H
- #include <SDL2/SDL.h>
- #ifdef __cplusplus
- extern "C" {
- #endif
- //for debugging/testing
- #define _ENABLE_SSE SDL_TRUE
- #define _ENABLE_SSE2 SDL_TRUE
- #define _ENABLE_SSE3 SDL_TRUE
- #define _ENABLE_SSE41 SDL_TRUE
- #define _ENABLE_AVX SDL_TRUE
- #define _ENABLE_AVX2 SDL_TRUE
- struct _kit_kmixerGlobals_t {
- SDL_mutex* lock;
- int threadPoolSize;
- int init;
- };
- extern struct _kit_kmixerGlobals_t _kit_kmixerGlobals;
- typedef union {
- void* ptr;
- Uint8* u_8;
- Sint16* i16;
- Sint32* i32;
- float* f32;
- } _mono_samples;
- //(stores left and right ear components of a stereo stream)
- typedef struct { Uint8 l,r; } _stereo_samples_u_8;
- typedef struct { Sint16 l,r; } _stereo_samples_i16;
- typedef struct { Sint32 l,r; } _stereo_samples_i32;
- typedef struct { float l,r; } _stereo_samples_f32;
- typedef union {
- void* ptr;
- _stereo_samples_u_8* u_8;
- _stereo_samples_i16* i16;
- _stereo_samples_i32* i32;
- _stereo_samples_f32* f32;
- } _stereo_samples;
- #ifdef __cplusplus
- }
- #endif
- #endif /* _KIT_KMIXERPRIVATE_H */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement