Changeset 3100
- Timestamp:
- 2008-01-08 22:39:42 (1 year ago)
- Location:
- cel/trunk
- Files:
-
- 3 modified
-
docs/history.txt (modified) (1 diff)
-
plugins/propclass/sound/soundfact.cpp (modified) (5 diffs)
-
plugins/propclass/sound/soundfact.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
cel/trunk/docs/history.txt
r3099 r3100 16 16 - caedes added missing comments to some of the functions in linmove 17 17 interface. 18 - Vincent changed pcsound.* to not use software-specific interfaces, 19 so that they're compatible with OpenAL sound renderer. 18 20 4-Jan-2008 19 21 - caedes added some SWIGIMPORTED guards to swig files, and some -
cel/trunk/plugins/propclass/sound/soundfact.cpp
r2700 r3100 47 47 { 48 48 private: 49 csWeakRef<iSndSysSource Software3D> soundsource;49 csWeakRef<iSndSysSource3D> soundsource; 50 50 51 51 public: 52 celSoundSourceMovableListener (iSndSysSource Software3D* soundsource)52 celSoundSourceMovableListener (iSndSysSource3D* soundsource) 53 53 : scfImplementationType (this), soundsource (soundsource) 54 54 { … … 61 61 csReversibleTransform tr = movable->GetFullTransform (); 62 62 soundsource->SetPosition (tr.GetOrigin ()); 63 soundsource->SetDirection (tr.GetFront ()); 63 csRef<iSndSysSource3DDirectionalSimple> ds = 64 scfQueryInterface<iSndSysSource3DDirectionalSimple> (soundsource); 65 ds->SetDirection (tr.GetFront ()); 64 66 } 65 67 } … … 377 379 return true; 378 380 case propid_directionalradiation: 379 if (source3d) source3d->SetDirectionalRadiation (b); 381 if (source3d) 382 { 383 csRef<iSndSysSource3DDirectionalSimple> ds = 384 scfQueryInterface<iSndSysSource3DDirectionalSimple> (source3d); 385 ds->SetDirectionalRadiation (b); 386 } 380 387 return true; 381 388 case propid_minimumdistance: … … 400 407 case propid_directionalradiation: 401 408 if (source3d) 402 b = source3d->GetDirectionalRadiation (); 409 { 410 csRef<iSndSysSource3DDirectionalSimple> ds = 411 scfQueryInterface<iSndSysSource3DDirectionalSimple> (source3d); 412 b = ds->GetDirectionalRadiation (); 413 } 403 414 else 404 415 b = 0.0f; … … 565 576 if (src) 566 577 { 567 source = scfQueryInterface<iSndSysSource Software> (src);568 source3d = scfQueryInterface<iSndSysSource Software3D> (src);578 source = scfQueryInterface<iSndSysSource> (src); 579 source3d = scfQueryInterface<iSndSysSource3D> (src); 569 580 } 570 581 return source != 0; -
cel/trunk/plugins/propclass/sound/soundfact.h
r2686 r3100 116 116 static PropertyHolder propinfo; 117 117 118 csRef<iSndSysSource Software3D> source3d;119 csRef<iSndSysSource Software> source;118 csRef<iSndSysSource3D> source3d; 119 csRef<iSndSysSource> source; 120 120 csRef<iSndSysStream> stream; 121 121 int mode;
