MCPcopy Create free account
hub / github.com/AppleWin/AppleWin / RiffPutSamples

Function RiffPutSamples

source/Riff.cpp:121–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121bool RiffPutSamples(const short* buf, unsigned int uSamples)
122{
123 if(g_hRiffFile == INVALID_HANDLE_VALUE)
124 return false;
125
126 //
127
128 DWORD dwNumberOfBytesWritten;
129
130 BOOL bRes = WriteFile(
131 g_hRiffFile,
132 buf,
133 uSamples * sizeof(short) * g_NumChannels,
134 &dwNumberOfBytesWritten,
135 NULL);
136
137 return true;
138}

Callers 4

PadNFramesFunction · 0.85
Spkr_SubmitWaveBufferFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected