rename CallableFunc to CallableLambda
This commit is contained in:
parent
ee8ff11712
commit
aa7189dd25
8 changed files with 43 additions and 19 deletions
|
|
@ -11,25 +11,14 @@ static void cleanup(int sig){
|
|||
#endif
|
||||
|
||||
int main(){
|
||||
fishbone::SoundDriver* drv;
|
||||
fishbone::Sound* snd;
|
||||
|
||||
fishbone::Window* wnd;
|
||||
|
||||
#ifndef _WIN32
|
||||
signal(SIGINT, cleanup);
|
||||
signal(SIGTERM, cleanup);
|
||||
#endif
|
||||
|
||||
drv = new fishbone::SoundDriver();
|
||||
|
||||
snd = drv->mixer.open("shanghai.mp3");
|
||||
snd->setLoop(true);
|
||||
snd->position[0] = -1;
|
||||
snd->position[1] = 0;
|
||||
snd->position[2] = 0;
|
||||
snd->is3d = true;
|
||||
snd->resume();
|
||||
wnd = new fishbone::Window("Fishbowl", 640, 480);
|
||||
|
||||
while(!quit);
|
||||
|
||||
delete drv;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue