Permalink
Browse files

minor

  • Loading branch information...
1 parent aa3fb44 commit 12610021e1fa57368b83d3faaaa0ad9a18db59d5 @rdp committed Aug 9, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 source_code/acam/directshow_stuff.cpp
@@ -157,7 +157,6 @@ HRESULT CVCamStream::SetMediaType(const CMediaType *pmt)
HRESULT setupPwfex(WAVEFORMATEX *pwfex, AM_MEDIA_TYPE *pmt) {
// TODO match more than just htz...
- // a "normal" audio stream...
pwfex->wFormatTag = WAVE_FORMAT_PCM;
pwfex->cbSize = 0; // apparently should be zero if using WAVE_FORMAT_PCM http://msdn.microsoft.com/en-us/library/ff538799(VS.85).aspx
pwfex->nChannels = 2; // 1 for mono, 2 for stereo..
@@ -167,7 +166,7 @@ HRESULT setupPwfex(WAVEFORMATEX *pwfex, AM_MEDIA_TYPE *pmt) {
pwfex->nAvgBytesPerSec = pwfex->nSamplesPerSec * pwfex->nBlockAlign; // it can't calculate this itself? huh?
// copy this info into the pmt
- return CreateAudioMediaType(pwfex, pmt, FALSE /* dont allocate more memory */); // not ours...
+ return ::CreateAudioMediaType(pwfex, pmt, FALSE /* dont allocate more memory */);
}
HRESULT CVCamStream::setAsNormal(CMediaType *pmt) {

0 comments on commit 1261002

Please sign in to comment.