Subversion Repositories Kolibri OS

Rev

Rev 5235 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. #ifndef RS_KOS_H
  2. #define RS_KOS_H
  3.  
  4. // KolibriOS Stuff
  5. // by Roman Shuvalov
  6.  
  7. unsigned int rskos_get_time();
  8.  
  9. #define RSKOS_BGRA      32
  10. #define RSKOS_BGR       24
  11.  
  12. void rskos_draw_area(int x, int y, int w, int h, int k_scale, unsigned char *data, unsigned char *scaled_buffer, int image_format);
  13.  
  14. void rskos_resize_window(int w, int h);
  15. void rskos_get_screen_size(unsigned int *pw, unsigned int *ph);
  16.  
  17. void rskos_exit();
  18.  
  19. // sound
  20.  
  21. #ifndef SNDBUF
  22.     #ifndef RS_KOS
  23.         #include "rs/rsaudio.h"
  24.         typedef rs_sound_t* SNDBUF;
  25.     #else
  26.         typedef unsigned int SNDBUF;
  27.     #endif
  28. #endif
  29.  
  30. //void rskos_snd_init();
  31. void rskos_snd_create_buffer(SNDBUF *phbuf, signed short *buffer, unsigned int length_samples);
  32. void rskos_snd_update_buffer(SNDBUF *phbuf, signed short *buffer, unsigned int length_samples);
  33. void rskos_snd_play(SNDBUF *phbuf, unsigned int mode);
  34. void rskos_snd_stop(SNDBUF *phbuf);
  35.  
  36. #endif
  37.