X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=snd_main.h;h=0248a92cf54cd1317da2b082ff08ed08ea54a673;hb=0960e4f6c7b5cd1e00117a67acdebda21b2e95dd;hp=2df365408e323dec050c279c7104eb309d1acea1;hpb=30334016020f54bb93999010bed118f5605b06bd;p=xonotic%2Fdarkplaces.git diff --git a/snd_main.h b/snd_main.h index 2df36540..0248a92c 100644 --- a/snd_main.h +++ b/snd_main.h @@ -26,8 +26,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. typedef struct { - size_t length; - size_t offset; + unsigned int length; + unsigned int offset; qbyte data[4]; // variable sized } sfxbuffer_t; @@ -59,7 +59,7 @@ struct sfx_s unsigned int flags; // cf SFXFLAG_* defines snd_format_t format; int loopstart; - size_t total_length; + unsigned int total_length; const snd_fetcher_t *fetcher; void *fetcher_data; // Per-sfx data for the sound fetching functions }; @@ -80,9 +80,9 @@ typedef struct int master_vol; // 0-255 master volume int leftvol; // 0-255 volume int rightvol; // 0-255 volume - size_t end; // end time in global paintsamples - size_t lastptime; // last time this channel was painted - size_t pos; // sample position in sfx + int end; // end time in global paintsamples + int lastptime; // last time this channel was painted + int pos; // sample position in sfx int entnum; // to allow overriding a specific sound int entchannel; vec3_t origin; // origin of sound effect