WaveFile.inl
资源名称:DXGuide.zip [点击查看]
上传用户:wymy58
上传日期:2007-01-07
资源大小:2086k
文件大小:1k
源码类别:
DirextX编程
开发平台:
Visual C++
- // Copyright (C) 1999 DXGuide. All Rights Reserved.
- // File: WaveFile.inl
- // Inlines for CWaveFile
- inline UINT CWaveFile::GetNumBytesRemaining(void) const
- {
- return GetDataSize() - m_nBytesPlayed;
- }
- inline UINT CWaveFile::GetAvgDataRate(void) const
- {
- return m_pwfmt->nAvgBytesPerSec; // average wave data rate
- }
- inline UINT CWaveFile::GetBlockAlign(void) const
- {
- return m_pwfmt->nBlockAlign; // wave data block alignment spec
- }
- inline UINT CWaveFile::GetDataSize(void) const // size of data chunk
- {
- return m_mmckiData.cksize;
- }
- inline UINT CWaveFile::GetNumBytesPlayed(void) const
- {
- return m_nBytesPlayed;
- }
- inline UINT CWaveFile::GetDuration(void) const
- {
- return m_nDuration;
- }
- inline WAVEFORMATEX* CWaveFile::GetWaveFormat(void) const
- {
- return m_pwfmt;
- }