Advertisement
Kitomas

kit_sdl2_kmixerDevice.c as of 8-18-23

Aug 18th, 2023
1,124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.68 KB | None | 0 0
  1. #include "../include/kit_sdl2/kit_kmixer.h"
  2. #include "../_private/include/_kit_privmacro.h"
  3. #include "../_private/include/_kit_kmixerPrivate.h"
  4.  
  5.  
  6.  
  7. int kit_kmixerDeviceClose(kit_kmixerDevice** device_p){
  8.   //TBD
  9.   return 0;
  10. }
  11.  
  12.  
  13.  
  14. kit_kmixerDevice* kit_kmixerDeviceOpen(SDL_AudioSpec* spec, SDL_AudioDeviceID devID,
  15.                                        int isCapture, int allowed_changes, int* returnStatus_p)
  16. {
  17.   kit_kmixerDevice* device=NULL;
  18.   int returnStatus=0;
  19.   //checks todo:
  20.   //error when channels is not mono or stereo
  21.   //also 64-bit samples of any kind are not allowed
  22.  
  23.   //_error_:
  24.   if(returnStatus_p != NULL) *returnStatus_p=returnStatus;
  25.   return device;
  26. }
  27.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement