Audio Compression Manager "unvollständig"



  • hi@all.

    ich versuche mit folgendem Quelltext den acm zu verwenden:

    WAVEFORMATEX* m_pWaveFormat;
    		DWORD dwSize;
    		UINT          m_nWaveFormatSize;
    
    		dwSize=(DWORD)capGetAudioFormat(m_hVidWin,NULL,NULL);
      if (dwSize)
      {
        m_pWaveFormat = (WAVEFORMATEX*) new BYTE[dwSize];
        capGetAudioFormat(m_hVidWin,dwSize, m_pWaveFormat != 0);
      }
    
    		m_nWaveFormatSize = dwSize;
    		ACMFORMATCHOOSE cfmt;
    
    		ZeroMemory(&cfmt, sizeof(ACMFORMATCHOOSE));
    
    		cfmt.cbStruct    = sizeof(cfmt); 
                      cfmt.fdwStyle    = 0L;
                      cfmt.pszTitle    = TEXT("Any Filter Selection");
    		cfmt.cbStruct = sizeof(ACMFORMATCHOOSE);
    		cfmt.fdwStyle =  ACMFORMATCHOOSE_STYLEF_INITTOWFXSTRUCT;
    		cfmt.fdwEnum =   ACM_FORMATENUMF_HARDWARE | ACM_FORMATENUMF_INPUT;
    		cfmt.hwndOwner = AfxGetMainWnd()->GetSafeHwnd();
    		cfmt.pwfx = m_pWaveFormat;
    		cfmt.cbwfx = m_nWaveFormatSize;
    		if (acmFormatChoose(&cfmt) == MMSYSERR_NOERROR)
    			capSetAudioFormat(m_hVidWin,m_pWaveFormat,dwSize);
    

    mein problem bei der sache ist, bei format wird ausschließlich PCM angezeigt 😞
    die anderen die ich dort habe (z.b. MP3 oder auch die anderen die man bei den anderen programmen sieht) sind nicht vorhanden. nur PCM steht da drin. liegt das am quelltext oder geht da was nich??

    thx für eure hilfe!
    -bunti



  • MSDN schrieb:

    fdwEnum
    Optional flags for restricting the type of formats listed in the dialog box. These flags are identical to the fdwEnum flags for the acmFormatEnum function. If pwfxEnum is NULL, this member should be zero.



  • hach meine doofheit^^

    danke ich werde gleich mal "rumbasteln" 🙂

    cya


Anmelden zum Antworten