Rev 228 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 228 | Rev 376 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | // |
1 | #ifdef __cplusplus |
2 | // This file is part of the AC97 mp3 player. |
2 | extern "C" |
3 | // (C) copyright Serge 2006 |
3 | { |
4 | // email: infinity_sound@mail.ru |
- | |
5 | // |
4 | #endif |
6 | // This program is free software; you can redistribute it and/or modify |
- | |
7 | // it under the terms of the GNU General Public License as published by |
- | |
8 | // the Free Software Foundation; either version 2 of the License, or |
- | |
9 | // (at your option) any later version. |
- | |
10 | // |
5 | |
11 | // This program is distributed in the hope that it will be useful, |
- | |
12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
- | |
13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
- | |
14 | // GNU General Public License for more details. |
- | |
Line 15... | Line 6... | ||
15 | 6 | #define FONT0 0x00000000 |
|
16 | #define FONT0 0x00000000 |
7 | #define FONT1 0x10000000 |
Line 17... | Line 8... | ||
17 | #define FONT1 0x10000000 |
8 | |
Line 29... | Line 20... | ||
29 | #define REL_WINDOW 1 |
20 | |
Line 30... | Line 21... | ||
30 | 21 | #define FILE_NOT_FOUND 5 |
|
31 | #define FILE_NOT_FOUND 5 |
22 | #define FILE_EOF 6 |
Line 32... | Line -... | ||
32 | #define FILE_EOF 6 |
- | |
33 | 23 | ||
34 | 24 | typedef unsigned int DWORD; |
|
- | 25 | typedef unsigned short int WORD; |
|
Line 35... | Line 26... | ||
35 | typedef unsigned int DWORD; |
26 | typedef unsigned int size_t; |
36 | typedef unsigned short int WORD; |
27 | |
37 | 28 | typedef struct |
|
38 | typedef struct |
29 | { DWORD pci_cmd; |
Line 68... | Line 59... | ||
68 | DWORD mod_date; |
59 | DWORD size; |
69 | DWORD size; |
60 | DWORD size_high; |
70 | DWORD size_high; |
61 | } FILEINFO; |
71 | } FILEINFO; |
62 | |
Line 72... | Line 63... | ||
72 | 63 | void _stdcall InitHeap(size_t heap_size); |
|
73 | void _stdcall InitHeap(int heap_size); |
64 | void* _stdcall UserAlloc(size_t size); |
74 | void* _stdcall UserAlloc(int size); |
- | |
Line 75... | Line 65... | ||
75 | void _stdcall GetNotify(DWORD *event); |
65 | |
76 | 66 | void _stdcall CreateThread(void *fn, char *p_stack); |
|
77 | void _stdcall CreateThread(void *fn, char *p_stack); |
- | |
78 | DWORD _stdcall GetMousePos(DWORD rel_type); |
- | |
79 | int _stdcall GetService(char *srv_name); |
- | |
80 | void _stdcall GetDevInfo(DWORD hSrv,CTRL_INFO *pInfo); |
- | |
81 | int _stdcall GetMasterVol(DWORD hSrv,int* vol); |
- | |
82 | int _stdcall SetMasterVol(DWORD hSrv, int vol); |
- | |
83 | DWORD _stdcall CreateBuffer(DWORD hSrv, DWORD format); |
- | |
84 | int _stdcall DestroyBuffer(DWORD hSrv, DWORD hBuff); |
- | |
85 | int _stdcall SetBuffer(DWORD hSrv, DWORD hBuff,char* buff, |
- | |
86 | DWORD offs, int size); |
- | |
Line 87... | Line 67... | ||
87 | int _stdcall PlayBuffer(DWORD hSrv, DWORD hBuff); |
67 | DWORD _stdcall GetMousePos(DWORD rel_type); |
88 | int _stdcall StopBuffer(DWORD hSrv, DWORD hBuff); |
68 | |
Line 89... | Line 69... | ||
89 | 69 | void _stdcall debug_out_hex(DWORD val); |
|
90 | void _stdcall debug_out_hex(DWORD val); |
70 | void debug_out_str(char* str); |
Line 91... | Line 71... | ||
91 | void debug_out_str(char* str); |
71 | |
92 | 72 | int _stdcall get_fileinfo(char *name,FILEINFO* pinfo); |
|
93 | int _stdcall get_fileinfo(char *name,FILEINFO* pinfo); |
73 | int _stdcall read_file (char *name,char*buff,int offset,int count,int *reads); |
94 | int _stdcall read_file (char *name,char*buff,int offset,int count,int *reads); |
74 | |
95 | 75 | void exit(); |
|
96 | void exit(); |
76 | int _stdcall get_key(int *key); |
97 | int _cdecl get_key(void); |
77 | int _cdecl get_button_id(); |
Line 106... | Line 86... | ||
106 | void _stdcall debug_out(int ch); |
86 | void _stdcall make_button(int x, int y, int xsize, int ysize, int id, int color); |
107 | void _stdcall make_button(int x, int y, int xsize, int ysize, int id, int color); |
87 | void _stdcall draw_bar(int x, int y, int xsize, int ysize, int color); |
108 | void _stdcall draw_bar(int x, int y, int xsize, int ysize, int color); |
88 | void _stdcall write_text(int x,int y,int color,char* text,int len); |
109 | void _stdcall write_text(int x,int y,int color,char* text,int len); |
89 | |
Line -... | Line 90... | ||
- | 90 | #ifdef __cplusplus |
|
- | 91 | extern "C" |
|
- | 92 | } |
|
- | 93 | #endif |