+++ /dev/null
-/*\r
-* Copyright (c) 2007-2010 SlimDX Group\r
-* \r
-* Permission is hereby granted, free of charge, to any person obtaining a copy\r
-* of this software and associated documentation files (the "Software"), to deal\r
-* in the Software without restriction, including without limitation the rights\r
-* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r
-* copies of the Software, and to permit persons to whom the Software is\r
-* furnished to do so, subject to the following conditions:\r
-* \r
-* The above copyright notice and this permission notice shall be included in\r
-* all copies or substantial portions of the Software.\r
-* \r
-* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r
-* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r
-* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r
-* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r
-* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r
-* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\r
-* THE SOFTWARE.\r
-*/\r
-#pragma once\r
-\r
-namespace SlimDX\r
-{\r
- namespace DirectSound\r
- {\r
- /// <summary>\r
- /// The SoundEffectCompressor object is used to set and retrieve effect parameters on a buffer that supports compression.\r
- /// </summary>\r
- /// <unmanaged>IDirectSoundFXCompressor</unmanaged>\r
- public ref class CompressorEffect : public ComObject\r
- {\r
- COMOBJECT(IDirectSoundFXCompressor, CompressorEffect);\r
-\r
- public:\r
- /// <summary>\r
- /// Time before compression reaches its full value.\r
- /// </summary>\r
- property float Attack\r
- {\r
- float get();\r
- void set( float value );\r
- }\r
-\r
- /// <summary>\r
- /// Output gain of signal after compression.\r
- /// </summary>\r
- property float Gain\r
- {\r
- float get();\r
- void set( float value );\r
- }\r
-\r
- /// <summary>\r
- /// Speed at which compression is stopped after input drops below Threshold.\r
- /// </summary>\r
- property float Release\r
- {\r
- float get();\r
- void set( float value );\r
- }\r
-\r
- /// <summary>\r
- /// Time after Threshold is reached before attack phase is started, in milliseconds.\r
- /// </summary>\r
- property float PreDelay\r
- {\r
- float get();\r
- void set( float value );\r
- }\r
-\r
- /// <summary>\r
- /// Compression ratio. The default value is 3, which means 3:1 compression.\r
- /// </summary>\r
- property float Ratio\r
- {\r
- float get();\r
- void set( float value );\r
- }\r
-\r
- /// <summary>\r
- /// Point at which compression begins, in decibels.\r
- /// </summary>\r
- property float Threshold\r
- {\r
- float get();\r
- void set( float value );\r
- }\r
-\r
- /// <summary>\r
- /// Default time before compression reaches its full value, in decibels (dB). The default value is 10 ms.\r
- /// </summary>\r
- literal float AttackDefault = 10.0f;\r
-\r
- /// <summary>\r
- /// Maximum time before compression reaches its full value, in decibels (dB).\r
- /// </summary>\r
- literal float AttackMax = DSFXCOMPRESSOR_ATTACK_MAX;\r
-\r
- /// <summary>\r
- /// Minimum time before compression reaches its full value, in decibels (dB).\r
- /// </summary>\r
- literal float AttackMin = DSFXCOMPRESSOR_ATTACK_MIN;\r
-\r
- /// <summary>\r
- /// Default output gain of signal after compression, in decibels (dB). The default value is 0 dB. \r
- /// </summary>\r
- literal float GainDefault = 0.0f;\r
-\r
- /// <summary>\r
- /// Maximum output gain of signal after compression, in decibels (dB). \r
- /// </summary>\r
- literal float GainMax = DSFXCOMPRESSOR_GAIN_MAX;\r
-\r
- /// <summary>\r
- /// Minimum output gain of signal after compression, in decibels (dB). \r
- /// </summary>\r
- literal float GainMin = DSFXCOMPRESSOR_GAIN_MIN;\r
-\r
- /// <summary>\r
- /// Default time after threshold is reached before attack phase is started, in milliseconds. The default value is 4 ms. \r
- /// </summary>\r
- literal float PreDelayDefault = 4.0f;\r
-\r
- /// <summary>\r
- /// Maximum time after threshold is reached before attack phase is started, in milliseconds. \r
- /// </summary>\r
- literal float PreDelayMax = DSFXCOMPRESSOR_PREDELAY_MAX;\r
-\r
- /// <summary>\r
- /// Minimum time after threshold is reached before attack phase is started, in milliseconds. \r
- /// </summary>\r
- literal float PreDelayMin = DSFXCOMPRESSOR_PREDELAY_MIN;\r
-\r
- /// <summary>\r
- /// Default compression ratio. The default value is 3, which means 3:1 compression. \r
- /// </summary>\r
- literal float RatioDefault = 3.0f;\r
-\r
- /// <summary>\r
- /// Maximum compression ratio. \r
- /// </summary>\r
- literal float RatioMax = DSFXCOMPRESSOR_RATIO_MAX;\r
-\r
- /// <summary>\r
- /// Minimum compression ratio. \r
- /// </summary>\r
- literal float RatioMin = DSFXCOMPRESSOR_RATIO_MIN;\r
-\r
- /// <summary>\r
- /// Default speed at which compression is stopped after input drops below Threshold, in miliseconds. The default value is 200 ms.\r
- /// </summary>\r
- literal float ReleaseDefault = 200.0f;\r
-\r
- /// <summary>\r
- /// Maximum speed at which compression is stopped after input drops below Threshold, in miliseconds. \r
- /// </summary>\r
- literal float ReleaseMax = DSFXCOMPRESSOR_RELEASE_MAX;\r
-\r
- /// <summary>\r
- /// Minimum speed at which compression is stopped after input drops below Threshold, in miliseconds. \r
- /// </summary>\r
- literal float ReleaseMin = DSFXCOMPRESSOR_RELEASE_MIN;\r
-\r
- /// <summary>\r
- /// Default point at which compression begins, in decibels, in decibels (dB). The default value is -20 dB.\r
- /// </summary>\r
- literal float ThresholdDefault = -20.0f;\r
-\r
- /// <summary>\r
- /// Maximum point at which compression begins, in decibels, in decibels (dB). \r
- /// </summary>\r
- literal float ThresholdMax = DSFXCOMPRESSOR_THRESHOLD_MAX;\r
-\r
- /// <summary>\r
- /// Minimum point at which compression begins, in decibels, in decibels (dB).\r
- /// </summary>\r
- literal float ThresholdMin = DSFXCOMPRESSOR_THRESHOLD_MIN;\r
- };\r
- }\r
-}
\ No newline at end of file