File: sound.h

package info (click to toggle)
egoboo-data 2.22-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 44,296 kB
  • ctags: 2,618
  • sloc: ansic: 23,985; makefile: 94
file content (36 lines) | stat: -rw-r--r-- 689 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// sound.h

#ifndef _SOUND_H_
#define _SOUND_H_


#include "egobootypedef.h"

extern SDL_AudioSpec *gHardwareSpec;

typedef struct
{
	BOOL			m_Free;
	SDL_AudioSpec	m_AudioSpec;
	Uint8			*m_AudioBuffer;
	Uint32			m_AudioLen;
} SDLSound;

typedef struct 
{	
	BOOL	m_Active;
	Uint32	m_SoundBufferIdx;
	BOOL	m_IsLooped;
	Uint32	m_CurPlayPos;
	Uint32	m_Volume;
} SDLActiveSound;


extern BOOL InitSound( Uint32 pBufferSize, Uint32 pFreq, Uint32 pMaxSoundChannel );
extern BOOL ShutdownSound( void );

extern Uint32	gSoundOutputSPS; // sample per second
extern Uint32	gSoundOutputMixBufferSize;
extern Uint32	gSoundMaxSoundChannel;

#endif // #ifndef _SOUND_H_