+++ /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 "Engine.h"\r
-#include "Enums.h"\r
-#include "WaveInstanceProperties.h"\r
-\r
-namespace SlimDX\r
-{\r
- namespace XACT3\r
- {\r
- public ref class Wave\r
- {\r
- private:\r
- IXACT3Wave* InternalPointer;\r
-\r
- internal:\r
- Wave(IXACT3Wave* wave);\r
-\r
- public:\r
- Result Destroy();\r
-\r
- /// <summary>\r
- /// Pause playback of the wave.\r
- /// </summary>\r
- /// <param name="pause">The action to take. If true, playback is paused, if false, playback is resumed.</param>\r
- Result Pause(bool pause);\r
-\r
- /// <summary>\r
- /// Play the wave.\r
- /// </summary>\r
- Result Play();\r
-\r
- Result SetMatrixCoefficients(int sourceChannelCount, int destinationChannelCount, array<float>^ matrixCoefficients);\r
-\r
- /// <summary>\r
- /// Set the pitch of the wave.\r
- /// </summary>\r
- /// <param name="pitch">The value that is used to set the pitch for playback of this wave. This value may be between -1200 and 1200, which is approximately one semitone.</param>\r
- Result SetPitch(int pitch);\r
-\r
- /// <summary>\r
- /// Set the volume of the wave.\r
- /// </summary>\r
- /// <param name="volume">The volume level to set.</param>\r
- Result SetVolume(float volume);\r
-\r
- /// <summary>\r
- /// Stop the wave.\r
- /// </summary>\r
- /// <param name="flags"><see cref="StopFlags"/> that specify how the wave is stopped.</param>\r
- Result Stop(StopFlags flags);\r
-\r
- /// <summary>\r
- /// Gets a <see cref="WaveInstanceProperties"/> object that contains the properties of the wave instance.\r
- /// </summary>\r
- property WaveInstanceProperties Properties\r
- {\r
- WaveInstanceProperties get();\r
- }\r
-\r
- /// <summary>\r
- /// Get a <see cref="WaveState"/> value representing the current state of the wave.\r
- /// </summary>\r
- property WaveState State\r
- {\r
- WaveState get();\r
- }\r
- };\r
- }\r
-}\r