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

C / C++ / MFC

 
GeneralRe: Time format conversion question Pin
monsieur_jj13-Apr-08 14:29
monsieur_jj13-Apr-08 14:29 
GeneralRe: Time format conversion question Pin
monsieur_jj13-Apr-08 22:19
monsieur_jj13-Apr-08 22:19 
QuestionRe: Time format conversion question Pin
David Crow14-Apr-08 3:40
David Crow14-Apr-08 3:40 
GeneralRe: Time format conversion question Pin
monsieur_jj14-Apr-08 14:52
monsieur_jj14-Apr-08 14:52 
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 
Hello

I want to build an audio processing application using ISampleGrabber interface.

1. How can I learn sampling rates of audio streams ? Its callback function gives me "SampleTime"s and
size of buffers. I guess I can get sampling rate as kbps. By the way after I get sampling rate as kbps
how can I express in Hz\kHz ?

2. I know that your buffer size must be power of 2 to implement FFT algorithm ( at least Radix2 , I'm new on that area).
So size of buffers ISamplegrabber gives are not always (almost never) powers of 2. So how should I handle
this problem ?

3.Callback function gives a buffer of samples as BYTE* (array of unsigned chars).

So to make an audio process , how should I get double or float values instead of unsigned chars ?

For example should it be like this ? :

double realSampleValue -> pBuffer[0].......pBuffer[7] ( Here I mean to make this programtically using bit operators)

Thank you very much...
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 
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 

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.