Last change
on this file since 2838 was
2838,
checked in by simon, 20 years ago
|
branches/sound: instance can now be freed via static deleteInstance()
|
File size:
846 bytes
|
Line | |
---|
1 | /* |
---|
2 | orxonox - the future of 3D-vertical-scrollers |
---|
3 | |
---|
4 | Copyright (C) 2004 orx |
---|
5 | |
---|
6 | This program is free software; you can redistribute it and/or modify |
---|
7 | it under the terms of the GNU General Public License as published by |
---|
8 | the Free Software Foundation; either version 2, or (at your option) |
---|
9 | any later version. |
---|
10 | |
---|
11 | ### File Specific: |
---|
12 | main-programmer: Simon Hofmann |
---|
13 | co-programmer: |
---|
14 | */ |
---|
15 | |
---|
16 | |
---|
17 | #include "sound_test.h" |
---|
18 | #include "SDL.h" |
---|
19 | #include "SDL_mixer.h" |
---|
20 | |
---|
21 | using namespace std; |
---|
22 | |
---|
23 | SoundControl* test; |
---|
24 | |
---|
25 | SoundTest::SoundTest () { |
---|
26 | test = SoundControl::getInstance(); |
---|
27 | } |
---|
28 | |
---|
29 | |
---|
30 | SoundTest::~SoundTest () { |
---|
31 | |
---|
32 | } |
---|
33 | |
---|
34 | |
---|
35 | void main (void) { |
---|
36 | SDL_Surface *screen; |
---|
37 | SDL_Init(SDL_INIT_VIDEO); |
---|
38 | screen = SDL_SetVideoMode(320, 240, 0, 0); |
---|
39 | SoundControl* sound = new SoundControl; |
---|
40 | sound.SoundControl(); |
---|
41 | sound->playOgg(music.ogg); |
---|
42 | sound.~SoundControl(); |
---|
43 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.