DirectSound.inl
资源名称:DXGuide.zip [点击查看]
上传用户:wymy58
上传日期:2007-01-07
资源大小:2086k
文件大小:1k
源码类别:
DirextX编程
开发平台:
Visual C++
- // Copyright (C) 1999 DXGuide. All Rights Reserved.
- // File: DirectSound.inl
- // Inlines for CDirectSound
- #include "DSBuffer.h"
- inline bool CDirectSound::SetFormat(CDirectSound::WAVEFORMATCODE waveFormatCode)
- {
- ASSERT(m_pPrimaryDSB != NULL);
- return m_pPrimaryDSB->SetFormat(waveFormatCode);
- }
- inline bool CDirectSound::SetFormat(CDSBuffer* pDSB)
- {
- ASSERT(m_pPrimaryDSB != NULL && pDSB != NULL);
- return m_pPrimaryDSB->SetFormat(pDSB->CalcWaveFormatCode(NULL));
- }
- inline CDS3DListener* CDirectSound::GetDS3DListener(void)
- {
- ASSERT(m_pPrimaryDSB != NULL && ((m_dwDSInitFlags & DSIF_3D) != 0));
- return m_pPrimaryDSB->m_pDS3DListener;
- }