+++ /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 "CueProperties.h"\r
-#include "Enums.h"\r
-#include "Cue.h"\r
-\r
-namespace SlimDX\r
-{\r
- namespace XACT3\r
- {\r
- /// <summary>\r
- /// Instantiate and manipulate XACT sound bank objects.\r
- /// </summary>\r
- /// <unmanaged>IXACT3SoundBank</unmanaged>\r
- public ref class SoundBank\r
- {\r
- private:\r
- IXACT3SoundBank* InternalPointer;\r
-\r
- internal:\r
- SoundBank( IXACT3SoundBank* pointer );\r
-\r
- public:\r
- Result Destroy();\r
-\r
- /// <summary>\r
- /// Get a sound cue index based on a string that represents the friendly name of the cue.\r
- /// </summary>\r
- /// <param name="friendlyName">A string that contains the friendly name of the cue.</param>\r
- /// <returns>The index for the cue if it exists, otherwise -1.</returns>\r
- int GetCueIndex(System::String^ friendlyName);\r
-\r
- /// <summary>\r
- /// Get the properties of a cue.\r
- /// </summary>\r
- /// <param name="cueIndex">The index of the cue to get the properties of.</param>\r
- /// <returns>A <see cref="CueProperties"/> object containing the properties of the cue.</returns>\r
- CueProperties GetCueProperties(int cueIndex);\r
-\r
- /// <summary>\r
- /// Play a cue.\r
- /// </summary>\r
- /// <param name="cueIndex">The index of the cue to play.</param>\r
- /// <param name="timeOffset">The time offset into the cue to start from, in milliseconds.</param>\r
- /// <returns>A <see cref="Cue"/> object containing the newly playing cue.</returns>\r
- Cue^ Play(int cueIndex, int timeOffset);\r
-\r
- /// <summary>\r
- /// Prepare a cue for playback.\r
- /// </summary>\r
- /// <param name="cueIndex">The index of the cue to prepare.</param>\r
- /// <param name="timeOffset">The time offset into the cue to start from, in milliseconds.</param>\r
- /// <returns>A <see cref="Cue"/> object containing the newly prepared cue.</returns>\r
- Cue^ Prepare(int cueIndex, int timeOffset);\r
-\r
- /// <summary>\r
- /// Stop playback of a cue.\r
- /// </summary>\r
- /// <param name="cueIndex">The index of the cue to stop.</param>\r
- /// <param name="flags"><see cref="StopFlags"/> that specify how the cue is stopped.</param>\r
- Result Stop(int cueIndex, StopFlags flags);\r
-\r
- /// <summary>\r
- /// Get a <see cref="SoundBankState"/> value representing the current state of the sound bank.\r
- /// </summary>\r
- property SoundBankState State\r
- {\r
- SoundBankState get();\r
- }\r
-\r
- /// <summary>\r
- /// Get the number of sound cues in the sound bank.\r
- /// </summary>\r
- property int CueCount\r
- {\r
- int get();\r
- }\r
- };\r
- }\r
-}\r