7 writes to _streamData
System.Windows.Extensions (7)
System\Media\SoundPlayer.cs (7)
158
_streamData
= null;
177
_streamData
= null;
316
_streamData
= new byte[streamLen];
400
_streamData
= null;
417
_streamData
= null;
500
_streamData
= new byte[BlockSize];
513
_streamData
= newData;
11 references to _streamData
System.Windows.Extensions (11)
System\Media\SoundPlayer.cs (11)
232
Debug.Assert(
_streamData
!= null);
233
ValidateSoundData(
_streamData
);
234
Interop.WinMM.PlaySound(
_streamData
, IntPtr.Zero, Interop.WinMM.SND_MEMORY | Interop.WinMM.SND_NODEFAULT | flags);
257
if (
_streamData
!= null)
317
_stream.ReadExactly(
_streamData
);
503
int readBytes = await _stream.ReadAsync(
_streamData
.AsMemory(_currentPos, BlockSize), cancellationToken).ConfigureAwait(false);
509
if (
_streamData
.Length < _currentPos + BlockSize)
511
byte[] newData = new byte[
_streamData
.Length * 2];
512
Array.Copy(
_streamData
, newData,
_streamData
.Length);
515
readBytes = await _stream.ReadAsync(
_streamData
.AsMemory(_currentPos, BlockSize), cancellationToken).ConfigureAwait(false);