-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patha_blast.h
73 lines (57 loc) · 2.11 KB
/
a_blast.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/*
Copyright (C) 1994-1995 Apogee Software, Ltd.
Copyright (C) 2023 Frenkel Smeijers
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/**********************************************************************
module: BLASTER.H
author: James R. Dose
date: February 4, 1994
Public header for BLASTER.C
(c) Copyright 1994 James R. Dose. All Rights Reserved.
**********************************************************************/
#ifndef __BLASTER_H
#define __BLASTER_H
typedef struct
{
uint32_t Address;
uint32_t Interrupt;
uint32_t Dma8;
uint32_t Dma16;
uint32_t Type;
uint32_t MinSamplingRate;
uint32_t MaxSamplingRate;
uint32_t MaxMixMode;
} BLASTER_CONFIG;
enum BLASTER_ERRORS
{
BLASTER_Error = -1,
BLASTER_Ok = 0
};
#define STEREO 1
#define SIXTEEN_BIT 2
#define MONO_8BIT 0
#define STEREO_8BIT ( STEREO )
#define STEREO_16BIT ( STEREO | SIXTEEN_BIT )
uint32_t BLASTER_GetPlaybackRate(void);
int32_t BLASTER_GetDMAChannel(void);
int32_t BLASTER_SetMixMode(int32_t mode);
void BLASTER_StopPlayback(void);
int32_t BLASTER_BeginBufferedPlayback(uint8_t *BufferStart, int32_t BufferSize, int32_t NumDivisions, uint32_t SampleRate, int32_t MixMode, void (*CallBackFunc)(void));
void BLASTER_GetEnv(int32_t *sbPort, int32_t *sbIrq, int32_t *sbDma8, int32_t *sbDma16);
void BLASTER_SetCardSettings(BLASTER_CONFIG Config);
void BLASTER_SetupWaveBlaster(void);
boolean BLASTER_IsSwapLeftRight(void);
void BLASTER_Init(void);
void BLASTER_Shutdown(void);
#endif