Skip to content

Commit b7c273f

Browse files
authored
Reverting class name change (#327)
***NO_CI***
1 parent 46b251e commit b7c273f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

samples/I2S/Output/I2sWavPlayer.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ namespace AudioPlayer
1616
/// You have to provide pin configuration for I2S communication and a full path to the
1717
/// WAV file you want to play.
1818
/// </summary>
19-
public class I2SWavPlayer : IDisposable
19+
public class I2sWavPlayer : IDisposable
2020
{
2121
public enum Bus
2222
{
@@ -28,15 +28,15 @@ public enum Bus
2828
private readonly FileStream _stream;
2929

3030
/// <summary>
31-
/// Creating a new instance of <see cref="I2SWavPlayer" />.
31+
/// Creating a new instance of <see cref="I2sWavPlayer" />.
3232
/// </summary>
3333
/// <param name="bus">The I2S bus ID on ESP32 platforms.</param>
3434
/// <param name="audioFile">Full path to WAV file.</param>
3535
/// <param name="bckPin">The Pin ID of the BCK pin. (32 for <see cref="Bus.One" />).</param>
3636
/// <param name="dataPin">The Pin ID of the Data Out pin. (33 for <see cref="Bus.One" />).</param>
3737
/// <param name="wsPin">The Pin ID of the WS pin. (25 for <see cref="Bus.One" />).</param>
3838
/// <exception cref="IOException">Throws an IOException if the WAV file provided does not have at least 44 bytes (header).</exception>
39-
public I2SWavPlayer(Bus bus, string audioFile, int bckPin = 32, int dataPin = 33, int wsPin = 25)
39+
public I2sWavPlayer(Bus bus, string audioFile, int bckPin = 32, int dataPin = 33, int wsPin = 25)
4040
{
4141
switch (bus)
4242
{

samples/I2S/Output/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
// I2sWavPlayer to add the I2sMode.Pdm flag when configuring I2sConnectionSettings
4343

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

0 commit comments

Comments
 (0)