blob: f0c4705cad306b5d6a51d4e19dc0fd9f89200652 (
plain) (
blame)
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
|
/*
* File: sound.cpp
* ---------------
* Implementation of the Sound class.
*/
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include "gevents.h"
#include "gtypes.h"
#include "sound.h"
#include "vector.h"
#include "platform.h"
using namespace std;
static Platform *pp = getPlatform();
Sound::Sound(string filename) {
pp->createSound(this, filename);
}
Sound::~Sound() {
pp->deleteSound(this);
}
void Sound::play() {
pp->playSound(this);
}
|