+++ /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 "Enums.h"\r
-#include "WaveProperties.h"\r
-#include "Wave.h"\r
-\r
-namespace SlimDX\r
-{\r
- namespace XACT3\r
- {\r
- /// <summary>\r
- /// Instantiate and manipulate XACT wave bank objects.\r
- /// </summary>\r
- /// <unmanaged>IXACT3WaveBank</unmanaged>\r
- public ref class WaveBank\r
- {\r
- private:\r
- IXACT3WaveBank* InternalPointer;\r
- Microsoft::Win32::SafeHandles::SafeFileHandle^ handle;\r
-\r
- internal:\r
- WaveBank( IXACT3WaveBank *pointer );\r
- WaveBank( IXACT3WaveBank *pointer, Microsoft::Win32::SafeHandles::SafeFileHandle^ handle );\r
-\r
- public:\r
- Result Destroy();\r
-\r
- /// <summary>\r
- /// Get a wave index based on a string that represents the friendly name of the wave.\r
- /// </summary>\r
- /// <param name="friendlyName">A string that contains the friendly name of the wave.</param>\r
- /// <returns>The index for the wave if it exists, otherwise -1.</returns>\r
- int GetWaveIndex(System::String^ friendlyName);\r
-\r
- /// <summary>\r
- /// Get the properties of a wave.\r
- /// </summary>\r
- /// <param name="waveIndex">The index of the wave to get the properties of.</param>\r
- /// <returns>A <see cref="WaveProperties"/> object containing the properties of the wave.</returns>\r
- WaveProperties GetWaveProperties(int waveIndex);\r
-\r
- /// <summary>\r
- /// Play a wave.\r
- /// </summary>\r
- /// <param name="waveIndex">The index of the wave to play.</param>\r
- /// <param name="flags"><see cref="ContentPreparationFlags"/> to indicate how the wave is to be play.</param>\r
- /// <param name="playOffset">Play offset to use as the start of the wave. The offset can be described in milliseconds or in samples. The <paramref name="flags"/> argument determines the offset units.</param>\r
- /// <param name="loopCount">The number of loops for playback.</param>\r
- /// <returns>A <see cref="Wave"/> object containing the newly playing wave.</returns>\r
- Wave^ Play(int waveIndex, ContentPreparationFlags flags, int playOffset, int loopCount);\r
-\r
- /// <summary>\r
- /// Prepare a wave for playback.\r
- /// </summary>\r
- /// <param name="waveIndex">The index of the wave to prepare.</param>\r
- /// <param name="flags"><see cref="ContentPreparationFlags"/> to indicate how the wave is to be prepared.</param>\r
- /// <param name="playOffset">Play offset to use as the start of the wave. The offset can be described in milliseconds or in samples. The <paramref name="flags"/> argument determines the offset units.</param>\r
- /// <param name="loopCount">The number of loops for playback.</param>\r
- /// <returns>A <see cref="Wave"/> object containing the newly prepared wave.</returns>\r
- Wave^ Prepare(int waveIndex, ContentPreparationFlags flags, int playOffset, int loopCount); \r
-\r
- /// <summary>\r
- /// Stop playback of a wave.\r
- /// </summary>\r
- /// <param name="waveIndex">The index of the wave to stop.</param>\r
- /// <param name="flags"><see cref="StopFlags"/> that specify how the wave is stopped.</param>\r
- Result Stop(int waveIndex, StopFlags flags);\r
-\r
- /// <summary>\r
- /// Get a <see cref="WaveBankState"/> value representing the current state of the wave bank.\r
- /// </summary>\r
- property WaveBankState State\r
- {\r
- WaveBankState get();\r
- }\r
-\r
- /// <summary>\r
- /// Get the number of wave entries in the wave bank.\r
- /// </summary>\r
- property int WaveCount\r
- {\r
- int get();\r
- }\r
- };\r
- }\r
-}\r