Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
1.7 KiB

  1. /*
  2. * File: connobj.cpp
  3. *
  4. * implementation of Internet Audio capability API interface.
  5. *
  6. *
  7. *
  8. * Revision History:
  9. *
  10. * 06/18/96 mikev created
  11. */
  12. #include "precomp.h"
  13. ULONG CImpAppAudioCap ::AddRef()
  14. {
  15. return (m_pCapObject->AddRef());
  16. }
  17. ULONG CImpAppAudioCap ::Release()
  18. {
  19. return (m_pCapObject->Release());
  20. }
  21. HRESULT CImpAppAudioCap::GetNumFormats(UINT *puNumFmtOut)
  22. {
  23. return (m_pCapObject->GetNumFormats(puNumFmtOut));
  24. }
  25. HRESULT CImpAppAudioCap ::GetBasicAudcapInfo (AUDIO_FORMAT_ID Id,
  26. PBASIC_AUDCAP_INFO pFormatPrefsBuf)
  27. {
  28. return (m_pCapObject->GetBasicAudcapInfo (Id, pFormatPrefsBuf));
  29. }
  30. HRESULT CImpAppAudioCap ::EnumFormats(PBASIC_AUDCAP_INFO pFmtBuf, UINT uBufsize,
  31. UINT *uNumFmtOut)
  32. {
  33. return (m_pCapObject->EnumFormats(pFmtBuf, uBufsize, uNumFmtOut));
  34. }
  35. HRESULT CImpAppAudioCap ::EnumCommonFormats(PBASIC_AUDCAP_INFO pFmtBuf, UINT uBufsize,
  36. UINT *uNumFmtOut, BOOL bTXCaps)
  37. {
  38. return (m_pCapObject->EnumCommonFormats(pFmtBuf, uBufsize, uNumFmtOut, bTXCaps));
  39. }
  40. HRESULT CImpAppAudioCap ::ApplyAppFormatPrefs (PBASIC_AUDCAP_INFO pFormatPrefsBuf,
  41. UINT uNumFormatPrefs)
  42. {
  43. return (m_pCapObject->ApplyAppFormatPrefs (pFormatPrefsBuf, uNumFormatPrefs));
  44. }
  45. HRESULT CImpAppAudioCap ::AddACMFormat (LPWAVEFORMATEX lpwfx, PAUDCAP_INFO pAudCapInfo)
  46. {
  47. return (m_pCapObject->AddACMFormat(lpwfx, pAudCapInfo));
  48. }
  49. HRESULT CImpAppAudioCap ::RemoveACMFormat (LPWAVEFORMATEX lpwfx)
  50. {
  51. return (m_pCapObject->RemoveACMFormat(lpwfx));
  52. }
  53. LPVOID CImpAppAudioCap::GetFormatDetails (AUDIO_FORMAT_ID Id)
  54. {
  55. VOID *pFormat;
  56. UINT uSize;
  57. m_pCapObject->GetEncodeFormatDetails(Id, &pFormat, &uSize);
  58. return pFormat;
  59. }