-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed waveOut since it is already in Sharpex2D
- Loading branch information
ThuCommix
committed
Jul 2, 2014
1 parent
1cbb70d
commit 78566e8
Showing
16 changed files
with
176 additions
and
290 deletions.
There are no files selected for viewing
43 changes: 43 additions & 0 deletions
43
External/Sharpex2D.CSCore/Framework/Audio/DirectSound/DirectSoundInitializer.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// Copyright (c) 2012-2014 Sharpex2D - Kevin Scholz (ThuCommix) | ||
// | ||
// Permission is hereby granted, free of charge, to any person obtaining a copy | ||
// of this software and associated documentation files (the 'Software'), to deal | ||
// in the Software without restriction, including without limitation the rights | ||
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
// copies of the Software, and to permit persons to whom the Software is | ||
// furnished to do so, subject to the following conditions: | ||
// | ||
// The above copyright notice and this permission notice shall be included in | ||
// all copies or substantial portions of the Software. | ||
// | ||
// THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
// THE SOFTWARE. | ||
|
||
|
||
namespace Sharpex2D.Framework.Audio.DirectSound | ||
{ | ||
[Developer("ThuCommix", "developer@sharpex2d.de")] | ||
[TestState(TestState.Tested)] | ||
public class DirectSoundInitializer : ISoundInitializer | ||
{ | ||
/// <summary> | ||
/// Creates the ISoundProvider. | ||
/// </summary> | ||
/// <returns>ISoundProvider</returns> | ||
public ISoundProvider CreateProvider() | ||
{ | ||
return new DirectSoundProvider(this); | ||
} | ||
|
||
/// <summary> | ||
/// A value indicating whether the ISoundInitializer is supported. | ||
/// </summary> | ||
/// <remarks>CSCore dont provide any info about that, so we return true.</remarks> | ||
public bool IsSupported { get { return true; } } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
External/Sharpex2D.CSCore/Framework/Audio/Wasapi/WasapiSoundInitializer.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// Copyright (c) 2012-2014 Sharpex2D - Kevin Scholz (ThuCommix) | ||
// | ||
// Permission is hereby granted, free of charge, to any person obtaining a copy | ||
// of this software and associated documentation files (the 'Software'), to deal | ||
// in the Software without restriction, including without limitation the rights | ||
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
// copies of the Software, and to permit persons to whom the Software is | ||
// furnished to do so, subject to the following conditions: | ||
// | ||
// The above copyright notice and this permission notice shall be included in | ||
// all copies or substantial portions of the Software. | ||
// | ||
// THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
// THE SOFTWARE. | ||
|
||
using System; | ||
using CSCore.SoundOut; | ||
|
||
namespace Sharpex2D.Framework.Audio.Wasapi | ||
{ | ||
[Developer("ThuCommix", "developer@sharpex2d.de")] | ||
[TestState(TestState.Tested)] | ||
public class WasapiSoundInitializer : ISoundInitializer | ||
{ | ||
/// <summary> | ||
/// Creates a new SoundProvider class. | ||
/// </summary> | ||
/// <returns>SoundProvider</returns> | ||
public ISoundProvider CreateProvider() | ||
{ | ||
if (!WasapiOut.IsSupportedOnCurrentPlatform) | ||
throw new InvalidOperationException("Wasapi is not supported for your system. (Vista and higher)"); | ||
return new WasapiSoundProvider(this); | ||
} | ||
|
||
/// <summary> | ||
/// A value indicating whether the ISoundInitializer is supported. | ||
/// </summary> | ||
public bool IsSupported { get { return WasapiOut.IsSupportedOnCurrentPlatform; } } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 21 additions & 1 deletion
22
...arpex2D.CSCore/Properties/AssemblyInfo.cs → ...arpex2D.CSCore/Properties/AssemblyInfo.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Binary file not shown.
Binary file renamed
BIN
+148 KB
...x2D.CSCore/bin/Debug/Sharpex2D.CSCore.zip → ...x2D.CSCore/bin/Debug/Sharpex2D.CSCore.zip
Binary file not shown.
Binary file not shown.
17 changes: 0 additions & 17 deletions
17
Plugins/Sharpex2D.CSCore/Framework/Media/Sound/DirectSound/DirectSoundInitializer.cs
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
Plugins/Sharpex2D.CSCore/Framework/Media/Sound/Wasapi/WasapiSoundInitializer.cs
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
Plugins/Sharpex2D.CSCore/Framework/Media/Sound/WaveOut/WaveOutSoundInitializer.cs
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.