Browse Source

updated to the latest version of the BlueWave ASIO library

included the NUnit framework DLL to allow build on PCs without NUnit installed
pull/1/head
markheath 17 years ago
parent
commit
783ecbf79c
  1. BIN
      Lib/ASIO/BlueWave.Interop.Asio.dll
  2. BIN
      Lib/NUnit/nunit.framework.dll
  3. 5
      NAudio/Changes.xml
  4. 4
      NAudio/Properties/AssemblyInfo.cs
  5. 6
      NAudio/Wave/WaveOutputs/AsioOut.cs
  6. 6
      NAudioDemo/AudioPlaybackForm.cs
  7. 7
      NAudioTests/NAudioTests.csproj

BIN
Lib/ASIO/BlueWave.Interop.Asio.dll

BIN
Lib/NUnit/nunit.framework.dll

5
NAudio/Changes.xml

@ -705,4 +705,9 @@
<desc>Updated the NAudioDemo project to do some audio playback</desc>
<desc>Added Rob Philpot's managed ASIO wrapper (http://www.codeproject.com/KB/mcpp/Asio.Net.aspx)</desc>
</change>
<change>
<version>1.1.115.0</version>
<date>17 May 2008</date>
<desc>Updated to latest version of Rob Philpot's managed ASIO wrapper (http://www.codeproject.com/KB/mcpp/Asio.Net.aspx)</desc>
</change>
</changes>

4
NAudio/Properties/AssemblyInfo.cs

@ -31,5 +31,5 @@ using System.Runtime.InteropServices;
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("1.1.114.0")]
[assembly: AssemblyFileVersion("1.1.114.0")]
[assembly: AssemblyVersion("1.1.115.0")]
[assembly: AssemblyFileVersion("1.1.115.0")]

6
NAudio/Wave/WaveOutputs/AsioOut.cs

@ -26,7 +26,7 @@ namespace NAudio.Wave
{
driver = AsioDriver.SelectDriver(
AsioDriver.InstalledDrivers[device]);
driver.CreateBuffers();
driver.CreateBuffers(false);
}
/// <summary>
@ -107,8 +107,8 @@ namespace NAudio.Wave
for (int index = 0; index < leftOutput.BufferSize && readIndex < read; index++)
{
double left = 0.0;
double right = 0.0;
float left = 0.0f;
float right = 0.0f;
if (sourceStream.WaveFormat.BitsPerSample == 16)
{
left = BitConverter.ToInt16(buffer, readIndex) / 32768.0f;

6
NAudioDemo/AudioPlaybackForm.cs

@ -57,6 +57,12 @@ namespace NAudioDemo
inputs.Add(reader);
}
if (inputs.Count == 0)
{
MessageBox.Show("No WAV files found to play in the input folder");
return;
}
WaveMixerStream32 mixer = new WaveMixerStream32(inputs, false);
Wave32To16Stream mixdown = new Wave32To16Stream(mixer);
waveOut.Init(mixdown);

7
NAudioTests/NAudioTests.csproj

@ -2,7 +2,7 @@
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.50727</ProductVersion>
<ProductVersion>9.0.21022</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{5080281A-F9A1-403F-85C7-0DFF6839B07B}</ProjectGuid>
<OutputType>Library</OutputType>
@ -41,7 +41,10 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="nunit.framework, Version=2.4.0.2, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL" />
<Reference Include="nunit.framework, Version=2.4.7.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\Lib\NUnit\nunit.framework.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />

Loading…
Cancel
Save