ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/SIDPlayer/src/main.h
Revision: 1.1
Committed: 2000-07-28T12:42:30Z (24 years, 2 months ago) by cebix
Content type: text/plain
Branch: MAIN
Branch point for: cebix
Log Message:
Initial revision

File Contents

# Content
1 /*
2 * main.h - SIDPlayer main program
3 *
4 * SIDPlayer (C) Copyright 1996-2000 Christian Bauer
5 *
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 *
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.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 */
20
21 #ifndef MAIN_H
22 #define MAIN_H
23
24 #include "types.h"
25
26
27 /*
28 * Definitions
29 */
30
31 // C64 replay routine address (set by LoadPSIDFile(), used by sid.cpp)
32 extern uint16 play_adr;
33
34 // Module name, author name, copyright info in UTF8 charset (set by LoadPSIDFile())
35 extern char module_name[64], author_name[64], copyright_info[64];
36
37
38 /*
39 * Functions
40 */
41
42 // Init everything
43 extern void InitAll(void);
44
45 // Exit everything
46 extern void ExitAll(void);
47
48 // Read PSID file header to buffer
49 extern bool LoadPSIDHeader(const char *file, uint8 *p);
50
51 // Check for PSID header
52 extern bool IsPSIDHeader(const uint8 *p);
53
54 // Check whether file is a PSID file
55 extern bool IsPSIDFile(const char *file);
56
57 // Load PSID file for playing
58 extern bool LoadPSIDFile(const char *file);
59
60 // Select song for playing
61 extern void SelectSong(int num);
62
63 // Adjust replay speed
64 extern void AdjustSpeed(int percent);
65
66 // Show About window
67 extern void AboutWindow(void);
68
69 // Fast pseudo-random number generator
70 extern uint32 f_rand_seed;
71
72 inline static uint8 f_rand(void)
73 {
74 f_rand_seed = f_rand_seed * 1103515245 + 12345;
75 return f_rand_seed >> 16;
76 }
77
78 #endif