Click here to Skip to main content
15,904,500 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
General3D window update call injection Pin
Fabricio Miranda9-Apr-08 15:33
Fabricio Miranda9-Apr-08 15:33 
GeneralRe: 3D window update call injection Pin
Fabricio Miranda10-Apr-08 2:11
Fabricio Miranda10-Apr-08 2:11 
QuestionLatest version of VC++ & SDK to target Windows 98 and above ? Pin
Defenestration9-Apr-08 13:56
Defenestration9-Apr-08 13:56 
GeneralAudio Signal Processing using Directshow(ISampleGrabber) Pin
Akin Ocal9-Apr-08 12:08
Akin Ocal9-Apr-08 12:08 
GeneralRe: Audio Signal Processing using Directshow(ISampleGrabber) Pin
Mark Salsbery9-Apr-08 12:40
Mark Salsbery9-Apr-08 12:40 
GeneralRe: Audio Signal Processing using Directshow(ISampleGrabber) Pin
Mark Salsbery9-Apr-08 12:56
Mark Salsbery9-Apr-08 12:56 
GeneralRe: Audio Signal Processing using Directshow(ISampleGrabber) Pin
Akin Ocal9-Apr-08 12:58
Akin Ocal9-Apr-08 12:58 
GeneralRe: Audio Signal Processing using Directshow(ISampleGrabber) Pin
Akin Ocal12-Apr-08 11:15
Akin Ocal12-Apr-08 11:15 
Thank you very much for your answers. But I have some questions again :

1. I can succesfully get AM_MEDIA_TYPE from output pin of my source filter (I use audio files as sources
in my case ) But unfotunately I cannot get pbFormat even formattype of AM_MEDIA_TYPE
(pbFormat -> bad pointer, formattype-> GUID_NULL )

I use the code below to get AM_MEDIA_TYPE , I can get other parameters succesfully Frown | :(

BOOL MyClass::GetMediaTypeOfConnectedPin (IBaseFilter* pFilter,PIN_DIRECTION pDir,AM_MEDIA_TYPE* pMediaType,int index)
{
HRESULT hr ;
IPin* fPin ;

hr = this->GetPin(pFilter,pDir,index,&fPin);
if(hr != S_OK ) return FALSE ;


if ( (fPin->ConnectionMediaType(pMediaType)) != S_OK) return FALSE ;

if ( pMediaType->formattype == FORMAT_WaveFormatEx)
{
WAVEFORMATEX* temp = (WAVEFORMATEX*) malloc(sizeof(WAVEFORMATEX));
temp = ( WAVEFORMATEX *)pMediaType->pbFormat;
...
free(temp);
}

return TRUE ;

}

2. What is the order of samples if there are 2 channels. For example is it something like :

Left Channel -> pBuffer[0] ... pBuffer[n/2]
Right Channel -> pBuffer[n/2+1] .... pBuffer[n]

or

Left Channel-> pBuffer[even_indexes]
Right Channel -> pBuffer[odd_indexes]

3. After I get my samples as WORDs(unsigned shorts) , what should I do to get floats from them ?

Thank you very much
Regards
GeneralPassing datas from an editbox in the toolbar to the view.cpp Pin
CrocodileBuck9-Apr-08 9:28
CrocodileBuck9-Apr-08 9:28 
GeneralRe: Passing datas from an editbox in the toolbar to the view.cpp Pin
Mark Salsbery9-Apr-08 9:41
Mark Salsbery9-Apr-08 9:41 
GeneralRe: Passing datas from an editbox in the toolbar to the view.cpp Pin
CrocodileBuck9-Apr-08 9:55
CrocodileBuck9-Apr-08 9:55 
GeneralRe: Passing datas from an editbox in the toolbar to the view.cpp Pin
CrocodileBuck9-Apr-08 10:21
CrocodileBuck9-Apr-08 10:21 
GeneralRe: Passing datas from an editbox in the toolbar to the view.cpp Pin
CrocodileBuck9-Apr-08 22:47
CrocodileBuck9-Apr-08 22:47 
GeneralRe: Passing datas from an editbox in the toolbar to the view.cpp Pin
CrocodileBuck10-Apr-08 3:34
CrocodileBuck10-Apr-08 3:34 
GeneralRe: Passing datas from an editbox in the toolbar to the view.cpp Pin
Nelek10-Apr-08 4:49
protectorNelek10-Apr-08 4:49 
GeneralRe: Passing datas from an editbox in the toolbar to the view.cpp Pin
Mark Salsbery10-Apr-08 6:11
Mark Salsbery10-Apr-08 6:11 
GeneralRe: Passing datas from an editbox in the toolbar to the view.cpp Pin
CrocodileBuck10-Apr-08 23:29
CrocodileBuck10-Apr-08 23:29 
GeneralRe: Passing datas from an editbox in the toolbar to the view.cpp Pin
CrocodileBuck11-Apr-08 0:04
CrocodileBuck11-Apr-08 0:04 
GeneralRe: Passing datas from an editbox in the toolbar to the view.cpp Pin
Mark Salsbery12-Apr-08 5:58
Mark Salsbery12-Apr-08 5:58 
GeneralDLL Thread_attach Pin
ForNow9-Apr-08 6:46
ForNow9-Apr-08 6:46 
GeneralRe: DLL Thread_attach Pin
CPallini9-Apr-08 7:55
mveCPallini9-Apr-08 7:55 
GeneralRe: DLL Thread_attach Pin
ForNow9-Apr-08 12:46
ForNow9-Apr-08 12:46 
GeneralRe: DLL Thread_attach Pin
Mark Salsbery9-Apr-08 12:58
Mark Salsbery9-Apr-08 12:58 
GeneralRe: DLL Thread_attach Pin
ForNow9-Apr-08 13:09
ForNow9-Apr-08 13:09 
GeneralRe: DLL Thread_attach Pin
Mark Salsbery9-Apr-08 13:11
Mark Salsbery9-Apr-08 13:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.