IAudioSourceInstumented::WaveFileReadGet

HRESULT WaveFileReadGet(WCHAR *pszFileName, DWORD dwFileNameSize,

DWORD *pdwNeeded);

Retrieves the name of the wave file to read from.

· Returns NOERROR if successful, or one of these error values:

E_INVALIDARG
E_OUTOFMEMORY

pszFileName

[in/out] Address of a buffer that receives the name of the file. If the buffer receives an empty string, then no file will be used.

dwFileNameSize

[in] Size, in bytes, of the buffer specified by pszFileName. If the specified size is too small, the function returns an error and fills pdwNeeded with the number of bytes needed.

pdwNeeded

[out] Address of a variable that receives the number of bytes needed for the key string.

The file name defaults to an empty string unless the registry is used to control the instrumentation and the key is set.