+++ /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
-#include "SoundBuffer.h"\r
-\r
-namespace SlimDX\r
-{\r
- namespace DirectSound\r
- {\r
- /// <summary>\r
- /// The Listener3D object is used to retrieve and set parameters that describe a listener's position, orientation, and listening environment in 3-D space.\r
- /// </summary>\r
- /// <unmanaged>IDirectSound3DListener</unmanaged>\r
- public ref class SoundListener3D : public ComObject\r
- {\r
- COMOBJECT(IDirectSound3DListener, SoundListener3D);\r
-\r
- public:\r
- /// <summary>\r
- /// Initializes a new instance of the <see cref="SlimDX::DirectSound::SoundListener3D"/> class\r
- /// with a previously created sound buffer.\r
- /// </summary>\r
- /// <param name="soundBuffer">The SlimDX::DirectSound::SoundBuffer object.</param>\r
- SoundListener3D( SoundBuffer^ soundBuffer );\r
-\r
- /// <summary>\r
- /// Commits any deferred settings made since the last call to this method.\r
- /// </summary>\r
- Result CommitDeferredSettings();\r
-\r
- /// <summary>\r
- /// Describes the listener's front orientation.\r
- /// </summary>\r
- property Vector3 FrontOrientation\r
- {\r
- Vector3 get();\r
- void set( Vector3 value );\r
- }\r
-\r
- /// <summary>\r
- /// Describes the listener's top orientation.\r
- /// </summary>\r
- property Vector3 TopOrientation\r
- {\r
- Vector3 get();\r
- void set( Vector3 value );\r
- }\r
-\r
- /// <summary>\r
- /// Determines if settings are set immediately or deferred.\r
- /// </summary>\r
- property bool Deferred;\r
-\r
- /// <summary>\r
- /// Gets or sets the distance factor, which is the number of meters in a vector unit.\r
- /// </summary>\r
- property float DistanceFactor\r
- {\r
- float get();\r
- void set( float value );\r
- }\r
-\r
- /// <summary>\r
- /// Gets or sets the multiplier for the Doppler effect.\r
- /// </summary>\r
- property float DopplerFactor\r
- {\r
- float get();\r
- void set( float value );\r
- }\r
-\r
- /// <summary>\r
- /// Gets or sets the rolloff factor, which determines the rate of attenuation over distance.\r
- /// </summary>\r
- property float RolloffFactor\r
- {\r
- float get();\r
- void set( float value );\r
- }\r
-\r
- /// <summary>\r
- /// Gets or sets the listener's position.\r
- /// </summary>\r
- property Vector3 Position\r
- {\r
- Vector3 get();\r
- void set( Vector3 value );\r
- }\r
-\r
- /// <summary>\r
- /// Gets or sets the listener's velocity.\r
- /// </summary>\r
- property Vector3 Velocity\r
- {\r
- Vector3 get();\r
- void set( Vector3 value );\r
- }\r
-\r
- /// <summary>\r
- /// Default distance factor. The default value is (1.0).\r
- /// </summary>\r
- literal float DefaultDistanceFactor = DS3D_DEFAULTDISTANCEFACTOR;\r
-\r
- /// <summary>\r
- /// Default Doppler factor. The default value is (1.0).\r
- /// </summary>\r
- literal float DefaultDopplerFactor = DS3D_DEFAULTDOPPLERFACTOR;\r
-\r
- /// <summary>\r
- /// Default rolloff factor. The default value is (1.0).\r
- /// </summary>\r
- literal float DefaultRolloffFactor = DS3D_DEFAULTROLLOFFFACTOR;\r
-\r
- /// <summary>\r
- /// Minimum distance factor. The default value is (1.0).\r
- /// </summary>\r
- literal float MinDistanceFactor = DS3D_MINDISTANCEFACTOR;\r
-\r
- /// <summary>\r
- /// Minimum Doppler factor. The default value is (1.0).\r
- /// </summary>\r
- literal float MinDopplerFactor = DS3D_MINDOPPLERFACTOR;\r
-\r
- /// <summary>\r
- /// Minimum rolloff factor. The default value is (1.0).\r
- /// </summary>\r
- literal float MinRolloffFactor = DS3D_MINROLLOFFFACTOR;\r
-\r
- /// <summary>\r
- /// Maximum distance factor. The default value is (1.0).\r
- /// </summary>\r
- literal float MaxDistanceFactor = DS3D_MAXDISTANCEFACTOR;\r
-\r
- /// <summary>\r
- /// Maximum Doppler factor. The default value is (1.0).\r
- /// </summary>\r
- literal float MaxDopplerFactor = DS3D_MAXDOPPLERFACTOR;\r
-\r
- /// <summary>\r
- /// Maximum rolloff factor. The default value is (1.0).\r
- /// </summary>\r
- literal float MaxRolloffFactor = DS3D_MAXROLLOFFFACTOR;\r
- };\r
- }\r
-}
\ No newline at end of file