fork of PCE focusing on macplus, supporting DaynaPort SCSI network emulation
1/*****************************************************************************
2 * pce *
3 *****************************************************************************/
4
5/*****************************************************************************
6 * File name: src/utils/aym/main.h *
7 * Created: 2015-05-21 by Hampa Hug <hampa@hampa.ch> *
8 * Copyright: (C) 2015-2016 Hampa Hug <hampa@hampa.ch> *
9 *****************************************************************************/
10
11/*****************************************************************************
12 * This program is free software. You can redistribute it and / or modify it *
13 * under the terms of the GNU General Public License version 2 as published *
14 * by the Free Software Foundation. *
15 * *
16 * This program is distributed in the hope that it will be useful, but *
17 * WITHOUT ANY WARRANTY, without even the implied warranty of *
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General *
19 * Public License for more details. *
20 *****************************************************************************/
21
22
23#ifndef AYM_MAIN_H
24#define AYM_MAIN_H 1
25
26
27#include <config.h>
28
29#include <drivers/sound/sound.h>
30
31
32#define AYM_MAGIC 0x41594d1a
33
34
35extern const char *arg0;
36
37extern char par_verbose;
38
39extern unsigned long par_srate;
40
41
42unsigned long aym_get_uint32_be (const void *buf, unsigned i);
43void aym_set_uint32_be (void *buf, unsigned i, unsigned long val);
44
45int aym_decode (const char *inp, const char *out, unsigned long th, unsigned long mark);
46
47int aym_encode (const char *inp, const char *out, unsigned long th);
48
49int aym_play (const char *fname, const char *snddrv, unsigned long lp, int hp);
50
51
52#endif