|
AudRecordLib
|
#include <nullsink.h>
Public Member Functions | |
| NullSink (BOOL realTime) | |
| HRESULT WINAPI | QueryInterface (REFIID iid, LPVOID *ppv) |
| ULONG WINAPI | AddRef () |
| ULONG WINAPI | Release () |
| HRESULT WINAPI | OnHeader (INSSBuffer *pHeader) |
| HRESULT WINAPI | IsRealTime (BOOL *pRealTime) |
| HRESULT WINAPI | AllocateDataUnit (DWORD dataSize, INSSBuffer **ppBuffer) |
| HRESULT WINAPI | OnDataUnit (INSSBuffer *pData) |
| HRESULT WINAPI | OnEndWriting () |
A dummy sink class that can be added to a IWMWriter session mainly to test that the writer can write.
Nothing is done with the data it is given. It is designed to be allocated on the stack, AddRef and Release do nothing.
| NullSink::NullSink | ( | BOOL | realTime | ) |
Constructs either a normal or realtime NullSink instance
| realTime | Whether the sink needs realtime samples for writing or not |
| ULONG WINAPI NullSink::AddRef | ( | ) |
Does nothing, the class is meant to be allocated on the stack
| HRESULT WINAPI NullSink::AllocateDataUnit | ( | DWORD | dataSize, |
| INSSBuffer ** | ppBuffer | ||
| ) |
Creates a new buffer of the requested size
| dataSize | Initial size of the memory buffer | |
| [out] | ppBuffer | Pointer that receives the interface pointer of the wrapper around the new buffer |
| HRESULT WINAPI NullSink::IsRealTime | ( | BOOL * | pRealTime | ) |
Called by the writer to determine if the sink requires realtime packets
| pRealTime | Pointer to a bool that receives the realtime value given to the constructor |
| HRESULT WINAPI NullSink::OnDataUnit | ( | INSSBuffer * | pData | ) |
Does nothing, called when their is a new data to write to the stream
| pData | Buffer containing data to write |
| HRESULT WINAPI NullSink::OnEndWriting | ( | ) |
Does nothing, called when all writing has finishe
| HRESULT WINAPI NullSink::OnHeader | ( | INSSBuffer * | pHeader | ) |
Does nothing, called when their is a new stream header to write
| pHeader | Buffer containing a new header to write |
| ULONG WINAPI NullSink::Release | ( | ) |
Does nothing, the class is meant to be allocated on the stack
1.7.5.1