Hinzufügen eines Informations chunk
Wenn Sie neben Audio und Video weitere Informationen in Ihre Anwendung aufnehmen müssen, können Sie Informations chunks erstellen und in eine Erfassungsdatei einfügen. Informations chunks können verschiedene Arten von Informationen enthalten, einschließlich der Details eines Urheberrechtshinweises, der Identifizierung der Videoquelle oder externer Zeitsteuerungsinformationen. Im folgenden Beispiel werden externe Zeitsteuerungsinformationen in einem SMPTE-Zeitcode (Society of Motion Picture and Engineers) in einem Informations chunk gespeichert und mithilfe des Makros capFileSetInfoChunk einer Erfassungsdatei addiert.
// This example assumes the application controls
// the video source for preroll and postroll.
CAPINFOCHUNK cic;
// .
// .
// .
cic.fccInfoID = infotypeSMPTE_TIME;
cic.lpData = "00:20:30:12";
cic.cbData = strlen (cic.lpData) + 1;
capFileSetInfoChunk (hwndC, &cic);