File: fmfconv_types.h

package info (click to toggle)
fuse-emulator-utils 1.4.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 2,592 kB
  • sloc: sh: 11,498; ansic: 11,083; cpp: 1,121; makefile: 167
file content (68 lines) | stat: -rw-r--r-- 1,860 bytes parent folder | download | duplicates (2)
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
/* fmfconv_types.h: .fmf movie file types
   Copyright (c) 2017 Fredrick Meunier

   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.,
   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

   Author contact information:

   E-mail: fredm@spamcop.net
*/

#ifndef FMFCONV_TYPES_H
#define FMFCONV_TYPES_H

#include <stdio.h>

#include <libspectrum.h>

typedef enum {
  STANDARD,	/* screen type $ -> normal Spectrum */
  HIRES,	/* R -> Timex HighRes */
  HICOLOR,	/* C -> Timex HiColor */
  STANDARD_TIMEX	/* X -> Timex normal */
} fmf_screen_type;

fmf_screen_type get_screen_type( libspectrum_byte screen_type );

typedef enum {
  PCM,
  ALW,
  ULW
} fmf_sound_type;

fmf_sound_type get_sound_type( int sound_type );
const char* get_sound_type_string( fmf_sound_type sound_type );

typedef enum {
  STEREO,
  MONO
} fmf_sound_channels_type;

fmf_sound_channels_type get_sound_channels_type( int sound_channels_type );
int get_sound_channels_count( int sound_channels_type );

typedef enum {
  SPECTRUM_48K_LIKE,
  SPECTRUM_128K_LIKE,
  TS2068_LIKE,
  PENTAGON_LIKE,
  SPECTRUM_NTSC_LIKE
} fmf_machine_type;

fmf_machine_type get_machine_type( char machine_type );

const char* get_machine_type_string(fmf_machine_type type);

#endif	/* FMFCONV_TYPES_H */