Changeset 9914 for OpenSceneGraph/trunk/examples/osgmovie/osgmovie.cpp
- Timestamp:
- 03/11/09 19:13:58 (4 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/examples/osgmovie/osgmovie.cpp
r9913 r9914 500 500 bool useAudioSink = false; 501 501 while(arguments.read("--audio")) { useAudioSink = true; } 502 503 unsigned int numAudioStreamsEnabled = 0; 502 504 503 505 for(int i=1;i<arguments.argc();++i) … … 515 517 osg::notify(osg::NOTICE)<<"AudioStream read ["<<audioStream->getName()<<"]"<<std::endl; 516 518 #if USE_SDL 517 audioStream->setAudioSink(new SDLAudioSink(audioStream)); 519 520 if (numAudioStreamsEnabled==0) 521 { 522 audioStream->setAudioSink(new SDLAudioSink(audioStream)); 523 524 ++numAudioStreamsEnabled; 525 } 518 526 #endif 519 527 }
