Last change
on this file since 2793 was
2793,
checked in by simon, 20 years ago
|
in branches/sound: made a tester, which is not finished yet
|
File size:
792 bytes
|
Rev | Line | |
---|
[2793] | 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 | |
---|
| 24 | SoundTest::SoundTest () { |
---|
| 25 | |
---|
| 26 | } |
---|
| 27 | |
---|
| 28 | |
---|
| 29 | SoundTest::~SoundTest () { |
---|
| 30 | |
---|
| 31 | } |
---|
| 32 | |
---|
| 33 | |
---|
| 34 | void main (void){ |
---|
| 35 | SDL_Surface *screen; |
---|
| 36 | SDL_Init(SDL_INIT_VIDEO); |
---|
| 37 | screen = SDL_SetVideoMode(320, 240, 0, 0); |
---|
| 38 | SoundControl* sound = new SoundControl; |
---|
| 39 | sound.SoundControl(); |
---|
| 40 | sound->playOgg(music.ogg); |
---|
| 41 | sound.~SoundControl(); |
---|
| 42 | } |
---|
| 43 | |
---|
Note: See
TracBrowser
for help on using the repository browser.