HRESULT Add(LPCWSTR pszFile, DWORD dwID);
Adds a file onto the end of the audio queue. When the file audio-source gets to reading this file, it will send a notification to the application with the dwID. IAudioFile::Add is not supported by the file audio-destination.
pszFile
[in] Unicode file name to read from. This must be a valid .WAV file with the same format as the speech recognition engine uses.
dwID
[in] Identifier that is passed to the application when the file is read, and when all of the data is finished.
· Returns NOERROR if successful, or one of these error values:
E_INVALIDARG
AUDERR_NOTSUPPORTED