1 /* fmfconv_types.h: .fmf movie file types 2 Copyright (c) 2017 Fredrick Meunier 3 4 This program is free software; you can redistribute it and/or modify 5 it under the terms of the GNU General Public License as published by 6 the Free Software Foundation; either version 2 of the License, or 7 (at your option) any later version. 8 9 This program is distributed in the hope that it will be useful, 10 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 GNU General Public License for more details. 13 14 You should have received a copy of the GNU General Public License along 15 with this program; if not, write to the Free Software Foundation, Inc., 16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 17 18 Author contact information: 19 20 E-mail: fredm@spamcop.net 21 */ 22 23 #ifndef FMFCONV_TYPES_H 24 #define FMFCONV_TYPES_H 25 26 #include <stdio.h> 27 28 #include <libspectrum.h> 29 30 typedef enum { 31 STANDARD, /* screen type $ -> normal Spectrum */ 32 HIRES, /* R -> Timex HighRes */ 33 HICOLOR, /* C -> Timex HiColor */ 34 STANDARD_TIMEX /* X -> Timex normal */ 35 } fmf_screen_type; 36 37 fmf_screen_type get_screen_type( libspectrum_byte screen_type ); 38 39 typedef enum { 40 PCM, 41 ALW, 42 ULW 43 } fmf_sound_type; 44 45 fmf_sound_type get_sound_type( int sound_type ); 46 const char* get_sound_type_string( fmf_sound_type sound_type ); 47 48 typedef enum { 49 STEREO, 50 MONO 51 } fmf_sound_channels_type; 52 53 fmf_sound_channels_type get_sound_channels_type( int sound_channels_type ); 54 int get_sound_channels_count( int sound_channels_type ); 55 56 typedef enum { 57 SPECTRUM_48K_LIKE, 58 SPECTRUM_128K_LIKE, 59 TS2068_LIKE, 60 PENTAGON_LIKE, 61 SPECTRUM_NTSC_LIKE 62 } fmf_machine_type; 63 64 fmf_machine_type get_machine_type( char machine_type ); 65 66 const char* get_machine_type_string(fmf_machine_type type); 67 68 #endif /* FMFCONV_TYPES_H */ 69