Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | RSS feed

  1. /*
  2.  * OpenTyrian: A modern cross-platform port of Tyrian
  3.  * Copyright (C) 2007-2009  The OpenTyrian Development Team
  4.  *
  5.  * This program is free software; you can redistribute it and/or
  6.  * modify it under the terms of the GNU General Public License
  7.  * as published by the Free Software Foundation; either version 2
  8.  * of the License, or (at your option) any later version.
  9.  *
  10.  * This program is distributed in the hope that it will be useful,
  11.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.  * GNU General Public License for more details.
  14.  *
  15.  * You should have received a copy of the GNU General Public License
  16.  * along with this program; if not, write to the Free Software
  17.  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  18.  */
  19. #ifndef NORTSONG_H
  20. #define NORTSONG_H
  21.  
  22. #include "opentyr.h"
  23.  
  24. #include "musmast.h"
  25. #include "sndmast.h"
  26.  
  27. #include "SDL.h"
  28.  
  29. extern Uint32 target, target2;
  30.  
  31. extern JE_word frameCount, frameCount2, frameCountMax;
  32.  
  33. extern JE_byte *digiFx[SAMPLE_COUNT];
  34. extern JE_word fxSize[SAMPLE_COUNT];
  35.  
  36. extern JE_word tyrMusicVolume, fxVolume;
  37. extern JE_word fxPlayVol;
  38. extern JE_word tempVolume;
  39.  
  40. extern JE_word speed;
  41.  
  42. extern float jasondelay;
  43.  
  44. void setdelay( JE_byte delay );
  45. void setjasondelay( int delay );
  46. void setjasondelay2( int delay );
  47. int delaycount( void );
  48. int delaycount2( void );
  49.  
  50. void wait_delay( void );
  51. void service_wait_delay( void );
  52. void wait_delayorinput( JE_boolean keyboard, JE_boolean mouse, JE_boolean joystick );
  53.  
  54. void JE_resetTimerInt( void );
  55. void JE_setTimerInt( void );
  56.  
  57. void JE_calcFXVol( void );
  58. void JE_changeVolume( JE_word *music, int music_delta, JE_word *sample, int sample_delta );
  59.  
  60. void JE_loadSndFile( const char *effects_sndfile, const char *voices_sndfile );
  61. void JE_playSampleNum( JE_byte samplenum );
  62.  
  63. #endif /* NORTSONG_H */
  64.  
  65.