AudRecordLib
Public Member Functions | Package Functions | Events
AudRecord::ITargetSink Struct Reference

#include <InterfaceWrap.h>

List of all members.

Public Member Functions

virtual bool IsRealTime ()=0
virtual IDataBufferAllocateDataUnit (DWORD dataSize)=0

Package Functions

void RaiseOnHeader (IDataBuffer^ pBuffer)
void RaiseOnDataUnit (IDataBuffer^ pBuffer)
void RaiseOnEndWriting ()

Events

OnHeaderHandler^  OnHeader
OnDataUnitHandler^  OnDataUnit
OnEndWritingHandler^  OnEndWriting

Detailed Description

The base interface for a custom target. This is a ref struct rather than an ref interface because we need to have the event raising methods as members.


Member Function Documentation

virtual IDataBuffer ^ AudRecord::ITargetSink::AllocateDataUnit ( DWORD  dataSize) [pure virtual]

Called by Windows Media runtime to ascertain whether the target needs data samples to be delivered in real time

Parameters:
dataSizeThe size of data buffer to allocate
Returns:
The new data buffer object
virtual bool AudRecord::ITargetSink::IsRealTime ( ) [pure virtual]

Called by Windows Media runtime to ascertain whether the target needs data samples to be delivered in real time

Returns:
true if the sink needs realtime data, false if it can live without
void AudRecord::ITargetSink::RaiseOnDataUnit ( IDataBuffer pBuffer) [package]

Internal function which raises the OnDataUnit event

Parameters:
pBufferThe data packet containing the data to be passed
void AudRecord::ITargetSink::RaiseOnEndWriting ( ) [package]

Internal function which raises the OnEndWriting event

void AudRecord::ITargetSink::RaiseOnHeader ( IDataBuffer pBuffer) [package]

Internal function which raises the OnHeader event

Parameters:
pBufferThe data packet to be passed to the event

Event Documentation

OnDataUnitHandler^ AudRecord::ITargetSink::OnDataUnit

Event raised when a buffer has been filled with data and is ready to be written in whatever way is desired

OnEndWritingHandler^ AudRecord::ITargetSink::OnEndWriting

Event raised when all writing to a target has finished. If the target is still present in the Recorder when Record() is called again, it will start receiving calls again

OnHeaderHandler^ AudRecord::ITargetSink::OnHeader

Event raised when the ASF header is ready to write headerBuffer contains the data. Can be raised more than once


The documentation for this struct was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Defines