Rev 5243 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
5225 | alpine | 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 | void rskos_draw_area(int x, int y, int w, int h, int k_scale, unsigned char *data, unsigned char *scaled_buffer); |
||
10 | |||
11 | void rskos_resize_window(int w, int h); |
||
12 | void rskos_get_screen_size(unsigned int *pw, unsigned int *ph); |
||
13 | |||
14 | void rskos_exit(); |
||
15 | |||
16 | // sound |
||
17 | |||
18 | #ifndef SNDBUF |
||
5243 | alpine | 19 | #ifndef RS_KOS |
5225 | alpine | 20 | #include "rs/rsaudio.h" |
21 | typedef rs_sound_t* SNDBUF; |
||
22 | #else |
||
23 | typedef unsigned int SNDBUF; |
||
24 | #endif |
||
25 | #endif |
||
26 | |||
5302 | alpine | 27 | #define SND_MODE_LOOP 1 |
28 | |||
5225 | alpine | 29 | //void rskos_snd_init(); |
30 | void rskos_snd_create_buffer(SNDBUF *phbuf, signed short *buffer, unsigned int length_samples); |
||
31 | void rskos_snd_update_buffer(SNDBUF *phbuf, signed short *buffer, unsigned int length_samples); |
||
32 | void rskos_snd_play(SNDBUF *phbuf, unsigned int mode); |
||
33 | void rskos_snd_stop(SNDBUF *phbuf); |
||
5302 | alpine | 34 | void rskos_snd_check_loop(SNDBUF *phbuf); |
5225 | alpine | 35 | |
36 | #endif |