ImageGear for C and C++ on Windows v20.3 - Updated
LPFNIG_TWAIN_AFTER_AUDIO_SNIPPET
API Reference Guide > TWAIN Component API Reference > TWAIN Component Callback Functions Reference > LPFNIG_TWAIN_AFTER_AUDIO_SNIPPET

This callback function, if registered, will be called by ImageGear after each audio snippet has been acquired using the IG_TWAIN_file_get_image() function.

Declaration:

 
Copy Code
typedef LONG (LPACCUAPI LPFNIG_TWAIN_AFTER_AUDIO_SNIPPET)(
        LONG nSnippetNum,
        LPCSTR lpszAudioDataName,
        LPCVOID lpAudioData,
        LONG nPendCount,
        LPCSTR lpszFileName,
        LPVOID lpData
);

Arguments:

Name Type Description
nSnippetNum LONG The number of the audio snippet just acquired; the first snippet is 1.
lpszAudioDataName LPCSTR The name of audio data.
lpAudioData LPCVOID A pointer to the acquired audio snippet.
nPendCount LONG The number of pending audio snippets left to be acquired.
lpszFileName LPCSTR If you are using Native Transfer Syntax, this will be the filename given to the snippet that was just acquired. If you are using Disk File Transfer, this was the name given to the snippet that was just acquired.
lpData LPVOID A far pointer to private data, as specified in your call to IG_TWAIN_file_get_image() function.

Return Value:

Return 1 if you want to continue acquisition of audio snippets; return 0 to cancel the acquisition after saving the snippet just acquired.

Supported Raster Image Formats:

This function does not process image pixels.

Is this page helpful?
Yes No
Thanks for your feedback.