+++ /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
-#include "Buffer3DSettings.h"\r
-\r
-namespace SlimDX\r
-{\r
- namespace DirectSound\r
- {\r
- /// <summary>\r
- /// The SoundBuffer3D object is used to retrieve and set parameters that describe the position, orientation, and environment of a sound buffer in 3-D space.\r
- /// </summary>\r
- /// <unmanaged>IDirectSound3DBuffer</unmanaged>\r
- public ref class SoundBuffer3D : public ComObject\r
- {\r
- COMOBJECT(IDirectSound3DBuffer, SoundBuffer3D);\r
-\r
- public:\r
- /// <summary>\r
- /// Initializes a new instance of the <see cref="SlimDX::DirectSound::SoundBuffer3D"/> class.\r
- /// </summary>\r
- /// <param name="soundBuffer"></param>\r
- /// <returns></returns>\r
- SoundBuffer3D( SoundBuffer^ soundBuffer );\r
-\r
- /// <summary>\r
- /// Gets or sets all the parameters of a buffer\r
- /// </summary>\r
- property Buffer3DSettings AllParameters\r
- {\r
- Buffer3DSettings get();\r
- void set( Buffer3DSettings value );\r
- }\r
-\r
- /// <summary>\r
- /// The inside angle of the sound projection cone.\r
- /// </summary>\r
- property int InsideConeAngle\r
- {\r
- int get();\r
- void set( int value );\r
- }\r
-\r
- /// <summary>\r
- /// The outside angle of the sound projection cone.\r
- /// </summary>\r
- property int OutsideConeAngle\r
- {\r
- int get();\r
- void set( int value );\r
- }\r
-\r
- /// <summary>\r
- /// The orientation of the sound projection cone.\r
- /// </summary>\r
- property Vector3 ConeOrientation\r
- {\r
- Vector3 get();\r
- void set( Vector3 value );\r
- }\r
-\r
- /// <summary>\r
- /// The volume of the sound outside the outside angle of the sound projection cone.\r
- /// </summary>\r
- property int ConeOutsideVolume\r
- {\r
- int get();\r
- void set( int value );\r
- }\r
-\r
- /// <summary>\r
- /// Settings are not applied until the application calls the SoundListener3D.CommitDeferredSettings() if true.\r
- /// </summary>\r
- property bool Deferred;\r
-\r
- /// <summary>\r
- /// The maximum distance, which is the distance from the listener beyond which sounds in this buffer are no longer attenuated.\r
- /// </summary>\r
- property float MaxDistance\r
- {\r
- float get();\r
- void set( float value );\r
- }\r
-\r
- /// <summary>\r
- /// The minimum distance, which is the distance from the listener at which sounds in this buffer begin to be attenuated.\r
- /// </summary>\r
- property float MinDistance\r
- {\r
- float get();\r
- void set( float value );\r
- }\r
-\r
- /// <summary>\r
- /// The operation mode for 3-D sound processing.\r
- /// </summary>\r
- property Mode3D Mode\r
- {\r
- Mode3D get();\r
- void set( Mode3D value );\r
- }\r
-\r
- /// <summary>\r
- /// The position of the sound source.\r
- /// </summary>\r
- property Vector3 Position\r
- {\r
- Vector3 get();\r
- void set( Vector3 value );\r
- }\r
-\r
- /// <summary>\r
- /// The velocity of the sound source.\r
- /// </summary>\r
- property Vector3 Velocity\r
- {\r
- Vector3 get();\r
- void set( Vector3 value );\r
- }\r
-\r
- /// <summary>\r
- /// Default minimum distance, in meters.\r
- /// </summary>\r
- literal float DefaultMinDistance = DS3D_DEFAULTMINDISTANCE;\r
-\r
- /// <summary>\r
- /// Default maximum distance, in meters.\r
- /// </summary>\r
- literal float DefaultMaxDistance = DS3D_DEFAULTMAXDISTANCE;\r
-\r
- /// <summary>\r
- /// Default cone angle, in degrees.\r
- /// </summary>\r
- literal float DefaultConeAngle = DS3D_DEFAULTCONEANGLE;\r
-\r
- /// <summary>\r
- /// Default outside cone volume. Volume levels are expressed as attenuation, in hundredths of a decibel.\r
- /// </summary>\r
- literal int DefaultConeOutsideVolume = DS3D_DEFAULTCONEOUTSIDEVOLUME;\r
-\r
- /// <summary>\r
- /// Minimum cone angle, in degrees.\r
- /// </summary>\r
- literal float MinConeAngle = DS3D_MINCONEANGLE;\r
-\r
- /// <summary>\r
- /// Maximum cone angle, in degrees.\r
- /// </summary>\r
- literal float MaxConeAngle = DS3D_MAXCONEANGLE;\r
- };\r
- }\r
-}
\ No newline at end of file