SoundPlayerControl 0.9.0.3

Sound Player Control for NAudio

There is a newer version of this package available.
See the version list below for details.
Install-Package SoundPlayerControl -Version 0.9.0.3
dotnet add package SoundPlayerControl --version 0.9.0.3
<PackageReference Include="SoundPlayerControl" Version="0.9.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SoundPlayerControl --version 0.9.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SoundPlayerControl, 0.9.0.3"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install SoundPlayerControl as a Cake Addin
#addin nuget:?package=SoundPlayerControl&version=0.9.0.3

// Install SoundPlayerControl as a Cake Tool
#tool nuget:?package=SoundPlayerControl&version=0.9.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

This control can be used by dragging and dropping it onto a form, or programattically.
Uses Dot NET 4.8
(Check the test code for more examples)

Very simple example:

SoundPlayer sp;
sp = new SoundPlayer(@"C:\Windows\Media\Alarm01.wav", 95);
sp.PlaybackStopped += WaveOutput_PlaybackStopped;
sp.PlaySound();

...

private void WaveOutput_PlaybackStopped(object sender, NAudio.Wave.StoppedEventArgs e)
{
MessageBox.Show("Programmatic sound has finished playing");
sp.Dispose();
}

This control can be used by dragging and dropping it onto a form, or programattically.
Uses Dot NET 4.8
(Check the test code for more examples)

Very simple example:

SoundPlayer sp;
sp = new SoundPlayer(@"C:\Windows\Media\Alarm01.wav", 95);
sp.PlaybackStopped += WaveOutput_PlaybackStopped;
sp.PlaySound();

...

private void WaveOutput_PlaybackStopped(object sender, NAudio.Wave.StoppedEventArgs e)
{
MessageBox.Show("Programmatic sound has finished playing");
sp.Dispose();
}

Release Notes

Added proper enabled/disabled display change (make it clear to users)

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
0.9.0.6 521 8/11/2019
0.9.0.5 223 8/2/2019
0.9.0.4 220 7/28/2019
0.9.0.3 207 7/28/2019
0.9.0.2 214 7/27/2019
0.9.0.1 207 7/27/2019
0.9.0 213 7/27/2019