ugBASIC 1.18
An isomorphic BASIC language compiler for retrocomputers
Loading...
Searching...
No Matches
sid_file.h
Go to the documentation of this file.
1#ifndef __SID_FILE__
2#define __SID_FILE__
3
4/*****************************************************************************
5 * ugBASIC - an isomorphic BASIC language compiler for retrocomputers *
6 *****************************************************************************
7 * Copyright 2021-2024 Marco Spedaletti (asimov@mclink.it)
8 *
9 * Licensed under the Apache License, Version 2.0 (the "License");
10 * you may not use this file except in compliance with the License.
11 * You may obtain a copy of the License at
12 *
13 * http://www.apache.org/licenses/LICENSE-2.0
14 *
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
20 *----------------------------------------------------------------------------
21 * Concesso in licenza secondo i termini della Licenza Apache, versione 2.0
22 * (la "Licenza"); è proibito usare questo file se non in conformità alla
23 * Licenza. Una copia della Licenza è disponibile all'indirizzo:
24 *
25 * http://www.apache.org/licenses/LICENSE-2.0
26 *
27 * Se non richiesto dalla legislazione vigente o concordato per iscritto,
28 * il software distribuito nei termini della Licenza è distribuito
29 * "COSÌ COM'È", SENZA GARANZIE O CONDIZIONI DI ALCUN TIPO, esplicite o
30 * implicite. Consultare la Licenza per il testo specifico che regola le
31 * autorizzazioni e le limitazioni previste dalla medesima.
32 ****************************************************************************/
33
34
35typedef struct _SIDFILE {
39 int songs;
41 unsigned char * data;
42 int size;
43
44 struct _SIDFILE * next;
45
47
48SIDFILE * sid_file_read( char * _filename, int _reloc_address );
49int sid_file_size( SIDFILE * _sid_file );
50unsigned char * sid_file_data( SIDFILE * _sid_file );
51void sid_file_free( SIDFILE * _sid_file );
53
54 #endif
SIDFILE * sid_file_read(char *_filename, int _reloc_address)
Definition sid_file.c:94
struct _SIDFILE SIDFILE
char * sid_file_get_lasterror_string()
Definition sid_file.c:376
unsigned char * sid_file_data(SIDFILE *_sid_file)
Definition sid_file.c:365
void sid_file_free(SIDFILE *_sid_file)
Definition sid_file.c:369
int sid_file_size(SIDFILE *_sid_file)
Definition sid_file.c:361
int initAddress
Definition sid_file.h:37
int loadAddress
Definition sid_file.h:36
int size
Definition sid_file.h:42
int startSong
Definition sid_file.h:40
int playAddress
Definition sid_file.h:38
unsigned char * data
Definition sid_file.h:41
int songs
Definition sid_file.h:39
struct _SIDFILE * next
Definition sid_file.h:44