~ubuntu-branches/ubuntu/saucy/dosbox/saucy

« back to all changes in this revision

Viewing changes to src/hardware/ymf262.h

  • Committer: Bazaar Package Importer
  • Author(s): Jan Dittberner
  • Date: 2009-12-05 19:37:29 UTC
  • mfrom: (1.1.7 upstream) (4.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091205193729-aa7a0joau2x907p8
Tags: 0.73+dfsg1-1
* remove src/hardware/ymf262.c, src/hardware/ymf262.h, add
  debian/patches/remove_ymf262_code.patch to remove dependencies on
  ymf262.{c,h}, update debian/patches/series and debian/README.source
  (Closes: #559443)
* debian/copyright: refer to GPL-2 explicitly
* debian/watch: add opts=dversionmangle to calculate correct upstream
  version
* incorporate upstream suggestions:
  - remove debian/patches/bios_keyboard.cpp.patch, upstream uses
    putenv("SDL_DISABLE_LOCK_KEYS=1") in src/gui/sdlmain.cpp, update
    debian/patches/series
  - remove debian/dosbox.conf.example because dosbox creates a
    configuration file automatically if it does not exist, update
    debian/docs and debian/README.Debian

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef YMF262_H
2
 
#define YMF262_H
3
 
 
4
 
 
5
 
#define BUILD_YMF262 (HAS_YMF262)
6
 
 
7
 
 
8
 
/* select number of output bits: 8 or 16 */
9
 
#define OPL3_SAMPLE_BITS 16
10
 
 
11
 
/* compiler dependence */
12
 
#ifndef OSD_CPU_H
13
 
#define OSD_CPU_H
14
 
typedef unsigned char   UINT8;   /* unsigned  8bit */
15
 
typedef unsigned short  UINT16;  /* unsigned 16bit */
16
 
typedef unsigned int    UINT32;  /* unsigned 32bit */
17
 
typedef signed char             INT8;    /* signed  8bit   */
18
 
typedef signed short    INT16;   /* signed 16bit   */
19
 
typedef signed int              INT32;   /* signed 32bit   */
20
 
#endif
21
 
 
22
 
#if (OPL3_SAMPLE_BITS==16)
23
 
typedef INT16 OPL3SAMPLE;
24
 
#endif
25
 
#if (OPL3_SAMPLE_BITS==8)
26
 
typedef INT8 OPL3SAMPLE;
27
 
#endif
28
 
 
29
 
 
30
 
typedef void (*OPL3_TIMERHANDLER)(int channel,double interval_Sec);
31
 
typedef void (*OPL3_IRQHANDLER)(int param,int irq);
32
 
typedef void (*OPL3_UPDATEHANDLER)(int param,int min_interval_us);
33
 
 
34
 
 
35
 
 
36
 
#if BUILD_YMF262
37
 
 
38
 
int  YMF262Init(int num, int clock, int rate);
39
 
void YMF262Shutdown(void);
40
 
void YMF262ResetChip(int which);
41
 
int  YMF262Write(int which, int a, int v);
42
 
unsigned char YMF262Read(int which, int a);
43
 
int  YMF262TimerOver(int which, int c);
44
 
void YMF262UpdateOne(int which, INT16 **buffers, int length);
45
 
 
46
 
void YMF262SetTimerHandler(int which, OPL3_TIMERHANDLER TimerHandler, int channelOffset);
47
 
void YMF262SetIRQHandler(int which, OPL3_IRQHANDLER IRQHandler, int param);
48
 
void YMF262SetUpdateHandler(int which, OPL3_UPDATEHANDLER UpdateHandler, int param);
49
 
 
50
 
#endif
51
 
 
52
 
 
53
 
#endif /* YMF262_H */