main.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. ////////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright 2016 RWS Inc, All Rights Reserved
  4. //
  5. // This program is free software; you can redistribute it and/or modify
  6. // it under the terms of version 2 of the GNU General Public License as published by
  7. // the Free Software Foundation
  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. // main.h
  19. // Project: Nostril (aka Postal)
  20. //
  21. // History:
  22. // 11/19/96 MJR Started.
  23. //
  24. // 01/31/97 BRH Changed MAIN_AUDIO_BUFTIME from 1000 to 100 to decrease
  25. // the sound effect latency. I tried 75 but the sound started
  26. // to break up.
  27. //
  28. // 02/21/97 JMI Changed MAIN_AUDIO_BUFTIME from 100 to 300 to decrease the
  29. // likelihood of audio drop-outs.
  30. //
  31. // 02/21/97 JMI Changed MAIN_AUDIO_BUFTIME back to 100 now that we have new
  32. // SB driver for NT.
  33. //
  34. // 02/21/97 JMI Changed MAIN_AUDIO_RATE to 11025 and MAIN_AUDIO_BITS to 16.
  35. //
  36. // 07/13/97 JMI Added MAIN_VANILLA_AUDIO_* macro overrides to MAIN_AUDIO_*
  37. // defaults. These should be used when the INI or default
  38. // audio mode fails.
  39. //
  40. ////////////////////////////////////////////////////////////////////////////////
  41. #ifndef MAIN_H
  42. #define MAIN_H
  43. extern int wideScreenWidth;
  44. #define MAIN_SCREEN_DEPTH 8
  45. #define MAIN_SCREEN_MIN_WIDTH 640
  46. #define MAIN_SCREEN_MIN_HEIGHT 480
  47. #define MAIN_SCREEN_PAGES 1
  48. #define MAIN_SCREEN_SCALING 0
  49. #define MAIN_WINDOW_WIDTH wideScreenWidth
  50. #define MAIN_WINDOW_HEIGHT 480
  51. // This is our default mode.
  52. #define MAIN_AUDIO_RATE 11025
  53. #define MAIN_AUDIO_BITS 16
  54. #define MAIN_AUDIO_CHANNELS 1
  55. #define MAIN_AUDIO_BUFTIME 100
  56. #define MAIN_AUDIO_MAXBUFTIME 2000
  57. // This is our vanilla mode which contains just a couple
  58. // overrides to the default mode. These should be used when the INI
  59. // or default audio specs fail.
  60. #define MAIN_VANILLA_AUDIO_RATE 22050
  61. #define MAIN_VANILLA_AUDIO_BITS 8
  62. #endif // MAIN_H
  63. ////////////////////////////////////////////////////////////////////////////////
  64. // EOF
  65. ////////////////////////////////////////////////////////////////////////////////