File: CSoundSystem.h

package info (click to toggle)
blocks-of-the-undead 1.0-7
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 4,084 kB
  • sloc: cpp: 6,224; sh: 3,356; makefile: 171
file content (19 lines) | stat: -rw-r--r-- 380 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef _CSOUNDSYSTEM_
#define _CSOUNDSYSTEM_

#include "CSound.h"
#include "SDL_mixer.h"

class CSoundSystem
{
public:
	CSoundSystem(int chunksize = 2048, int frequency = MIX_DEFAULT_FREQUENCY, int channels = 2, Uint16 format = AUDIO_S16);
	~CSoundSystem();

	void playSound(CSound &snd) const;
	void stopSound(const CSound &snd) const;
private:
	bool soundAvailable;
};

#endif