JunkBox_Win_Lib 1.5.3
Loading...
Searching...
No Matches
WinMediaBuffer.cpp
Go to the documentation of this file.
1
9#include "WinMediaBuffer.h"
10
11
12using namespace jbxwl;
13
14
16{
17 m_pBuffer = NULL;
18 init(len);
19}
20
21
22
23void CWinMediaBuffer::init(DWORD len)
24{
25 free();
26
27 m_pBuffer = new_Buffer(0);
28 if (len>0) *m_pBuffer = make_Buffer(len);
29}
30
31
32
34{
35 if (m_pBuffer!=NULL) {
36 del_Buffer(&m_pBuffer);
37 }
38 m_pBuffer = NULL;
39}
40
41
メディアバッファ ヘッダ