doom

a minimalistic implementation of doom
git clone git://ssnf.xyz/doom
Log | Files | Refs

i_sound.h (973B)


      1 
      2 
      3 
      4 
      5 
      6 
      7 
      8 
      9 
     10 
     11 
     12 
     13 
     14 
     15 
     16 
     17 
     18 
     19 
     20 
     21 
     22 
     23 #ifndef __I_SOUND__
     24 #define __I_SOUND__
     25 
     26 #include "doomdef.h"
     27 
     28 
     29 #ifdef SNDSERV
     30 #include <stdio.h>
     31 extern FILE* sndserver;
     32 extern char* sndserver_filename;
     33 #endif
     34 
     35 #include "doomstat.h"
     36 #include "sounds.h"
     37 
     38 
     39 
     40 
     41 void I_InitSound();
     42 
     43 
     44 void I_UpdateSound(void);
     45 void I_SubmitSound(void);
     46 
     47 
     48 void I_ShutdownSound(void);
     49 
     50 
     51 
     52 
     53 
     54 
     55 
     56 void I_SetChannels();
     57 
     58 
     59 int I_GetSfxLumpNum (sfxinfo_t* sfxinfo );
     60 
     61 
     62 
     63 int
     64 I_StartSound
     65 ( int		id,
     66   int		vol,
     67   int		sep,
     68   int		pitch,
     69   int		priority );
     70 
     71 
     72 
     73 void I_StopSound(int handle);
     74 
     75 
     76 
     77 
     78 int I_SoundIsPlaying(int handle);
     79 
     80 
     81 
     82 void
     83 I_UpdateSoundParams
     84 ( int		handle,
     85   int		vol,
     86   int		sep,
     87   int		pitch );
     88 
     89 
     90 
     91 
     92 
     93 void I_InitMusic(void);
     94 void I_ShutdownMusic(void);
     95 
     96 void I_SetMusicVolume(int volume);
     97 
     98 void I_PauseSong(int handle);
     99 void I_ResumeSong(int handle);
    100 
    101 int I_RegisterSong(void *data);
    102 
    103 
    104 
    105 
    106 void
    107 I_PlaySong
    108 ( int		handle,
    109   int		looping );
    110 
    111 void I_StopSong(int handle);
    112 
    113 void I_UnRegisterSong(int handle);
    114 
    115 
    116 
    117 #endif
    118 
    119 
    120 
    121 
    122