Prevent NaNs for orientation too
This commit is contained in:
@@ -31,6 +31,7 @@ int main( int argc, char *argv[] ) {
|
|||||||
|
|
||||||
// prevent NaNs
|
// prevent NaNs
|
||||||
smgr->set_position( SGVec3d(0, 0, 0), SGGeod::fromDegFt(0, 0, 0) );
|
smgr->set_position( SGVec3d(0, 0, 0), SGGeod::fromDegFt(0, 0, 0) );
|
||||||
|
smgr->set_orientation( SGQuatd::fromYawPitchRollDeg(0, 0, 0) );
|
||||||
|
|
||||||
SGPath srcDir(SRC_DIR);
|
SGPath srcDir(SRC_DIR);
|
||||||
|
|
||||||
@@ -52,6 +53,7 @@ int main( int argc, char *argv[] ) {
|
|||||||
printf("playing sample2\n");
|
printf("playing sample2\n");
|
||||||
sleep(1);
|
sleep(1);
|
||||||
|
|
||||||
|
printf("Note: OpenAL-Soft does not have native support for IMA4 encoded audio.\n");
|
||||||
SGSoundSample *sample3 = new SGSoundSample("jet_ima4.wav", srcDir);
|
SGSoundSample *sample3 = new SGSoundSample("jet_ima4.wav", srcDir);
|
||||||
sample3->set_volume(0.5);
|
sample3->set_volume(0.5);
|
||||||
sample3->set_pitch(0.8);
|
sample3->set_pitch(0.8);
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ int main( int argc, char *argv[] ) {
|
|||||||
|
|
||||||
// prevent NaNs
|
// prevent NaNs
|
||||||
smgr->set_position( SGVec3d(0, 0, 0), SGGeod::fromDegFt(0, 0, 0) );
|
smgr->set_position( SGVec3d(0, 0, 0), SGGeod::fromDegFt(0, 0, 0) );
|
||||||
|
smgr->set_orientation( SGQuatd::fromYawPitchRollDeg(0, 0, 0) );
|
||||||
|
|
||||||
printf("default position and orientation\n");
|
printf("default position and orientation\n");
|
||||||
SGSoundSample *sample1 = new SGSoundSample("jet.wav", srcDir);
|
SGSoundSample *sample1 = new SGSoundSample("jet.wav", srcDir);
|
||||||
|
|||||||
Reference in New Issue
Block a user