Fixed tutorial 6

This commit is contained in:
Raynaldo Rivera 2010-02-14 23:56:48 +00:00
parent d9d36a8ced
commit 24802ec8e9
1 changed files with 6 additions and 2 deletions

View File

@ -1,6 +1,6 @@
//****************************************************************
//cAudio 2.0.0 Tutorial 7
//Custom log receiver
//cAudio 2.0.0 Tutorial 6
//Custom Event Handler
//****************************************************************
#include <iostream>
@ -9,6 +9,9 @@
//Include cAudio.h so we can work wtih cAudio
#include "../../include/cAudio.h"
//Include the custom handler
#include "cTestHandler.h"
using namespace std;
int main(int argc, char* argv[])
@ -47,6 +50,7 @@ int main(int argc, char* argv[])
//Create a IAudio object and load a sound from a file
cAudio::IAudioSource* mysound = manager->create("bling","../../media/cAudioTheme1.ogg",true);
mysound->registerEventHandler(handle);
if(mysound)
{