AudRecordLib
|
#include <InterfaceWrap.h>
Public Member Functions | |
virtual bool | IsRealTime ()=0 |
virtual IDataBuffer^ | AllocateDataUnit (DWORD dataSize)=0 |
Package Functions | |
void | RaiseOnHeader (IDataBuffer^ pBuffer) |
void | RaiseOnDataUnit (IDataBuffer^ pBuffer) |
void | RaiseOnEndWriting () |
Events | |
OnHeaderHandler^ | OnHeader |
OnDataUnitHandler^ | OnDataUnit |
OnEndWritingHandler^ | OnEndWriting |
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.
virtual IDataBuffer ^ AudRecordCLI::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
dataSize | The size of data buffer to allocate |
virtual bool AudRecordCLI::ITargetSink::IsRealTime | ( | ) | [pure virtual] |
Called by Windows Media runtime to ascertain whether the target needs data samples to be delivered in real time
void AudRecordCLI::ITargetSink::RaiseOnDataUnit | ( | IDataBuffer^ | pBuffer | ) | [package] |
Internal function which raises the OnDataUnit event
pBuffer | The data packet containing the data to be passed |
void AudRecordCLI::ITargetSink::RaiseOnEndWriting | ( | ) | [package] |
Internal function which raises the OnEndWriting event
void AudRecordCLI::ITargetSink::RaiseOnHeader | ( | IDataBuffer^ | pBuffer | ) | [package] |
Internal function which raises the OnHeader event
pBuffer | The data packet to be passed to the event |
OnDataUnitHandler^ AudRecordCLI::ITargetSink::OnDataUnit |
Event raised when a buffer has been filled with data and is ready to be written in whatever way is desired
OnEndWritingHandler^ AudRecordCLI::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^ AudRecordCLI::ITargetSink::OnHeader |
Event raised when the ASF header is ready to write headerBuffer contains the data. Can be raised more than once