blob: ce72173e76203b49e66399626ac96ec201d0a9aa (
plain)
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
|
#include "utils.h"
#if UNITTEST
#include <iostream>
#include <stdio.h>
#include <fstream>
#include "../audio/sdl/source.h"
#include "../audio/sdl/audio.h"
using namespace jin::audio;
using namespace std;
int main(int argc, char* argv[])
{
Audio* audio = SDLAudio::get();
audio->init(0);
SDLSource* source = SDLSource::createSource("a.ogg");
SDLSource* source2 = SDLSource::createSource("a.wav");
//source->play();
source2->play();
source->setLoop(true);
source2->setLoop(true);
int i = 0;
while (true)
{
SDL_Delay(1000);
}
audio->quit();
return 0;
}
#endif
|