File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -398,3 +398,4 @@ FodyWeavers.xsd
398398
399399# JetBrains Rider
400400* .sln.iml
401+ CLAUDE.md
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ DRIVER_DISPATCH PnpHandler;
4949// DoNotCreateDataFiles (DWORD) = 0 to override this default.
5050//
5151DWORD g_DoNotCreateDataFiles = 1 ; // default is off.
52- DWORD g_DisableToneGenerator = 0 ; // default is to generate tones.
52+ DWORD g_DisableToneGenerator = 1 ; // default is to not generate tones.
5353UNICODE_STRING g_RegistryPath; // This is used to store the registry settings path for the driver
5454
5555// -----------------------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -1397,7 +1397,7 @@ VOID CMiniportWaveRTStream::WriteBytes
13971397
13981398Routine Description:
13991399
1400- This function writes the audio buffer using a sine wave generator
1400+ This function writes the audio buffer using silence instead of a tone generator
14011401
14021402Arguments:
14031403
@@ -1413,7 +1413,8 @@ ByteDisplacement - # of bytes to process.
14131413 {
14141414 ULONG runWrite = min (ByteDisplacement, m_ulDmaBufferSize - bufferOffset);
14151415
1416- m_ToneGenerator.GenerateSine (m_pDmaBuffer + bufferOffset, runWrite);
1416+ // Instead of generating a tone, just output silence
1417+ RtlZeroMemory (m_pDmaBuffer + bufferOffset, runWrite);
14171418
14181419 bufferOffset = (bufferOffset + runWrite) % m_ulDmaBufferSize;
14191420 ByteDisplacement -= runWrite;
You can’t perform that action at this time.
0 commit comments