Changeset 709


Ignore:
Timestamp:
Jan 4, 2017, 12:29:45 AM (5 years ago)
Author:
roman
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Utilities/MediaFoundation/SinkWriterSetInputMediaType02/Application.cpp

    r708 r709  
    4141                CComPtr<IMFMediaType> pMediaTypeIn;
    4242                __C(MFCreateMediaType(&pMediaTypeIn));
    43 
    4443                __C(pMediaTypeIn->SetGUID(MF_MT_MAJOR_TYPE, MFMediaType_Audio));   
    4544                __C(pMediaTypeIn->SetGUID(MF_MT_SUBTYPE, MFAudioFormat_PCM));
    46 
    4745                __C(pMediaTypeIn->SetUINT32(MF_MT_AUDIO_NUM_CHANNELS, 2));
    4846                __C(pMediaTypeIn->SetUINT32(MF_MT_AUDIO_SAMPLES_PER_SECOND, 44100));
     
    5048                //__C(pMediaTypeIn->SetUINT32(MF_MT_AUDIO_AVG_BYTES_PER_SECOND, 44100 * 4));
    5149                __C(pMediaTypeIn->SetUINT32(MF_MT_AUDIO_BITS_PER_SAMPLE, 16));
    52                 __C(pMediaTypeIn->SetUINT32(MF_MT_ALL_SAMPLES_INDEPENDENT, 1));
     50                //__C(pMediaTypeIn->SetUINT32(MF_MT_ALL_SAMPLES_INDEPENDENT, 1));
    5351
    5452                __C(pSinkWriter->SetInputMediaType(streamIndex, pMediaTypeIn, NULL));   
Note: See TracChangeset for help on using the changeset viewer.