MMDSETYP.INT 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. {========================================================================}
  2. {= (c) 1995-98 SwiftSoft Ronald Dittrich =}
  3. {========================================================================}
  4. {= All Rights Reserved =}
  5. {========================================================================}
  6. {= D 01099 Dresden = Tel.: +0351-8012255 =}
  7. {= Loewenstr.7a = info@swiftsoft.de =}
  8. {========================================================================}
  9. {= Actual versions on http://www.swiftsoft.de/mmtools.html =}
  10. {========================================================================}
  11. {= This code is for reference purposes only and may not be copied or =}
  12. {= distributed in any format electronic or otherwise except one copy =}
  13. {= for backup purposes. =}
  14. {= =}
  15. {= No Delphi Component Kit or Component individually or in a collection=}
  16. {= subclassed or otherwise from the code in this unit, or associated =}
  17. {= .pas, .dfm, .dcu, .asm or .obj files may be sold or distributed =}
  18. {= without express permission from SwiftSoft. =}
  19. {= =}
  20. {= For more licence informations please refer to the associated =}
  21. {= HelpFile. =}
  22. {========================================================================}
  23. {= $Date: 20.01.1998 - 18:00:00 $ =}
  24. {========================================================================}
  25. unit MMDSETyp;
  26. interface
  27. uses
  28. MMDSMix,
  29. MMUtils,
  30. MMWave,
  31. MM3D;
  32. type
  33. PMMDSEDMixerParams = ^TMMDSEDMixerParams;
  34. TMMDSEDMixerParams = record
  35. BitLength : TMMBits;
  36. DeviceId : Integer;
  37. Level : TMMDSLevel;
  38. SampleRate : LongInt;
  39. SpeakerConfig : TMMDSSpeakerConfig
  40. end;
  41. PMMDSEDListenerParams = ^TMMDSEDListenerParams;
  42. TMMDSEDListenerParams = record
  43. DistanceFactor : TMM3DValue;
  44. DopplerFactor : TMM3DValue;
  45. OrientFront : TMM3DVector;
  46. OrientTop : TMM3DVector;
  47. Position : TMM3DVector;
  48. RollOffFactor : TMM3DValue;
  49. Velocity : TMM3DVector;
  50. end;
  51. PMMDSEDSourceParams = ^TMMDSEDSourceParams;
  52. TMMDSEDSourceParams = record
  53. ConeOrientation : TMM3DVector;
  54. ConeOutsideVolume : LongInt;
  55. InsideConeAngle : LongInt;
  56. MaxDistance : TMM3DValue;
  57. MinDistance : TMM3DValue;
  58. Mode : TMMDS3DBufferMode;
  59. OutsideConeAngle : LongInt;
  60. Position : TMM3DVector;
  61. Velocity : TMM3DVector;
  62. end;
  63. PMMDSEDBufferParams = ^TMMDSEDBufferParams;
  64. TMMDSEDBufferParams = record
  65. Frequency : LongInt;
  66. Panning : LongInt;
  67. Volume : LongInt;
  68. end;
  69. PMMDSEDWaveRecord = ^TMMDSEDWaveRecord;
  70. TMMDSEDWaveRecord = record
  71. Data : Pointer;
  72. Size : LongInt;
  73. end;
  74. procedure MMDSEDRecordFromMixer(Mix: TMMDSWaveMixer; var MixPar: TMMDSEDMixerParams);
  75. procedure MMDSEDRecordFromBuffer(Ch: TMMDSMixChannel; var BufPar: TMMDSEDBufferParams);
  76. procedure MMDSEDMixerFromRecord(Mix: TMMDSWaveMixer; const MixPar: TMMDSEDMixerParams);
  77. procedure MMDSEDBufferFromRecord(Ch: TMMDSMixChannel; const BufPar: TMMDSEDBufferParams);
  78. procedure MMDSEDRecordFromListener(Mix: TMMDSWaveMixer; var ListPar: TMMDSEDListenerParams);
  79. procedure MMDSEDRecordFromSource(Ch: TMMDSMixChannel; var SrcPar: TMMDSEDSourceParams);
  80. procedure MMDSEDListenerFromRecord(Mix: TMMDSWaveMixer; const ListPar: TMMDSEDListenerParams);
  81. procedure MMDSEDSourceFromRecord(Ch: TMMDSMixChannel; const SrcPar: TMMDSEDSourceParams);
  82. function MMDSEDCreateWaveRecord(Wave: TMMWave): TMMDSEDWaveRecord;
  83. procedure MMDSEDFreeWaveRecord(R: TMMDSEDWaveRecord);
  84. procedure MMDSEDLoadWaveFromRecord(R: TMMDSEDWaveRecord; Wave: TMMWave);
  85. implementation