Changeset 3100

Show
Ignore:
Timestamp:
2008-01-08 22:39:42 (1 year ago)
Author:
vknecht
Message:
  • Vincent changed pcsound.* to not use software-specific interfaces,
    so that they're compatible with OpenAL sound renderer.
Location:
cel/trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • cel/trunk/docs/history.txt

    r3099 r3100  
    1616        - caedes added missing comments to some of the functions in linmove  
    1717          interface. 
     18        - Vincent changed pcsound.* to not use software-specific interfaces, 
     19          so that they're compatible with OpenAL sound renderer. 
    18204-Jan-2008 
    1921        - caedes added some SWIGIMPORTED guards to swig files, and some 
  • cel/trunk/plugins/propclass/sound/soundfact.cpp

    r2700 r3100  
    4747{ 
    4848private: 
    49   csWeakRef<iSndSysSourceSoftware3D> soundsource; 
     49  csWeakRef<iSndSysSource3D> soundsource; 
    5050 
    5151public: 
    52   celSoundSourceMovableListener (iSndSysSourceSoftware3D* soundsource) 
     52  celSoundSourceMovableListener (iSndSysSource3D* soundsource) 
    5353        : scfImplementationType (this), soundsource (soundsource) 
    5454  { 
     
    6161      csReversibleTransform tr = movable->GetFullTransform (); 
    6262      soundsource->SetPosition (tr.GetOrigin ()); 
    63       soundsource->SetDirection (tr.GetFront ()); 
     63      csRef<iSndSysSource3DDirectionalSimple> ds = 
     64            scfQueryInterface<iSndSysSource3DDirectionalSimple> (soundsource); 
     65      ds->SetDirection (tr.GetFront ()); 
    6466    } 
    6567  } 
     
    377379      return true; 
    378380    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      } 
    380387      return true; 
    381388    case propid_minimumdistance: 
     
    400407    case propid_directionalradiation: 
    401408      if (source3d) 
    402         b = source3d->GetDirectionalRadiation (); 
     409      { 
     410        csRef<iSndSysSource3DDirectionalSimple> ds = 
     411          scfQueryInterface<iSndSysSource3DDirectionalSimple> (source3d); 
     412        b = ds->GetDirectionalRadiation (); 
     413      } 
    403414      else 
    404415        b = 0.0f; 
     
    565576  if (src) 
    566577  { 
    567     source = scfQueryInterface<iSndSysSourceSoftware> (src); 
    568     source3d = scfQueryInterface<iSndSysSourceSoftware3D> (src); 
     578    source = scfQueryInterface<iSndSysSource> (src); 
     579    source3d = scfQueryInterface<iSndSysSource3D> (src); 
    569580  } 
    570581  return source != 0; 
  • cel/trunk/plugins/propclass/sound/soundfact.h

    r2686 r3100  
    116116  static PropertyHolder propinfo; 
    117117 
    118   csRef<iSndSysSourceSoftware3D> source3d; 
    119   csRef<iSndSysSourceSoftware> source; 
     118  csRef<iSndSysSource3D> source3d; 
     119  csRef<iSndSysSource> source; 
    120120  csRef<iSndSysStream> stream; 
    121121  int mode;