Skip to content

Commit

Permalink
Reverting class name change (#327)
Browse files Browse the repository at this point in the history
***NO_CI***
  • Loading branch information
CoryCharlton authored Oct 23, 2023
1 parent 46b251e commit b7c273f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions samples/I2S/Output/I2sWavPlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace AudioPlayer
/// You have to provide pin configuration for I2S communication and a full path to the
/// WAV file you want to play.
/// </summary>
public class I2SWavPlayer : IDisposable
public class I2sWavPlayer : IDisposable
{
public enum Bus
{
Expand All @@ -28,15 +28,15 @@ public enum Bus
private readonly FileStream _stream;

/// <summary>
/// Creating a new instance of <see cref="I2SWavPlayer" />.
/// Creating a new instance of <see cref="I2sWavPlayer" />.
/// </summary>
/// <param name="bus">The I2S bus ID on ESP32 platforms.</param>
/// <param name="audioFile">Full path to WAV file.</param>
/// <param name="bckPin">The Pin ID of the BCK pin. (32 for <see cref="Bus.One" />).</param>
/// <param name="dataPin">The Pin ID of the Data Out pin. (33 for <see cref="Bus.One" />).</param>
/// <param name="wsPin">The Pin ID of the WS pin. (25 for <see cref="Bus.One" />).</param>
/// <exception cref="IOException">Throws an IOException if the WAV file provided does not have at least 44 bytes (header).</exception>
public I2SWavPlayer(Bus bus, string audioFile, int bckPin = 32, int dataPin = 33, int wsPin = 25)
public I2sWavPlayer(Bus bus, string audioFile, int bckPin = 32, int dataPin = 33, int wsPin = 25)
{
switch (bus)
{
Expand Down
2 changes: 1 addition & 1 deletion samples/I2S/Output/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
// I2sWavPlayer to add the I2sMode.Pdm flag when configuring I2sConnectionSettings

const string audioFile = "D:\\Variation-CLJ013901.wav";
var player = new I2SWavPlayer(I2SWavPlayer.Bus.One, audioFile);
var player = new I2sWavPlayer(I2sWavPlayer.Bus.One, audioFile);
player.Play();
player.Dispose();

Expand Down

0 comments on commit b7c273f

Please sign in to comment.