|
|
@ -5,7 +5,7 @@ using NUnit.Framework; |
|
|
|
using NAudio.CoreAudioApi; |
|
|
|
using NAudio.Wave; |
|
|
|
|
|
|
|
namespace NAudioTests |
|
|
|
namespace NAudioTests.Wasapi |
|
|
|
{ |
|
|
|
[TestFixture] |
|
|
|
public class AudioClientTests |
|
|
@ -80,13 +80,15 @@ namespace NAudioTests |
|
|
|
Assert.IsTrue(client.IsFormatSupported(AudioClientShareMode.Shared, defaultFormat), "Is Format Supported"); |
|
|
|
} |
|
|
|
|
|
|
|
/* strange as this may seem, WASAPI doesn't seem to like the default format in exclusive mode |
|
|
|
* it prefers 16 bit (presumably 24 bit on some devices) |
|
|
|
[Test] |
|
|
|
public void DefaultFormatIsSupportedInExclusiveMode() |
|
|
|
{ |
|
|
|
AudioClient client = GetAudioClient(); |
|
|
|
WaveFormat defaultFormat = client.MixFormat; |
|
|
|
Assert.IsTrue(client.IsFormatSupported(AudioClientShareMode.Exclusive, defaultFormat), "Is Format Supported"); |
|
|
|
} |
|
|
|
}*/ |
|
|
|
|
|
|
|
|
|
|
|
[Test] |