Click here to Skip to main content
15,914,594 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: c++ question. Please help Pin
David Crow9-May-05 2:53
David Crow9-May-05 2:53 
GeneralRe: c++ question. Please help Pin
namaskaaram9-May-05 2:55
namaskaaram9-May-05 2:55 
GeneralRe: c++ question. Please help Pin
Ansari A. Halim9-May-05 3:51
Ansari A. Halim9-May-05 3:51 
GeneralRe: c++ question. Please help Pin
Alex_Y9-May-05 4:08
Alex_Y9-May-05 4:08 
GeneralRe: c++ question. Please help Pin
David Crow9-May-05 5:01
David Crow9-May-05 5:01 
GeneralRe: c++ question. Please help Pin
Alex_Y9-May-05 6:58
Alex_Y9-May-05 6:58 
GeneralRe: c++ question. Please help Pin
Bob Stanneveld10-May-05 0:25
Bob Stanneveld10-May-05 0:25 
GeneralDirectShow - Buffer Pushing Techniques Pin
javatheist9-May-05 2:21
javatheist9-May-05 2:21 
hey there !

lately, i wrote kinda framework which every kind of module (dll) can hook to and push its respective data (be it video or audio in bitstream format). this data will then be executed (pushed) through a callback which has been declared by another sink (dll) that connected to the framework before.

before i continue... the bitstream data in the source dll origins at an internal samplegrabber. (ex.g. video-capture.dll delivers video data, audio.dll delivers pcm-samples, etc.) ... so, if video-data from a digital NTSC-cam arrives at its respective filter, the filter informs the framework that i got new data. then the framework calls a method from another module with a pointer to the data-buffer as interface. now the target module can process the new buffer (ex.g. push it to a filter that excepts a bitstream which then pushes it to an avi-mux, whatever...)

to come to the main point: a sink-dll which connected to the framework is ex.g. record.dll. this module accepts both video and audio data. so the record-dll-graph looks like a video-source-filter and an audio source filter both connected to an avi-mux which leads to a file-writer.
to push the video-samples (bufferstream) into the avi-mux, i wrote an own video-filter. the same should happen with the audio-bitstream. now would be the time to write an audio-filter equal to the video-filter to push into the avi-mux. my question is whether there is an already existing filter that accepts bitstream as input or not. i've already jerked around with the running object table (ROT). would this be sorta solution or is there any easier way ?
fact is that copying the video-filter is easy, but the callback would happen about 44100 times per second (at pcm 44.1 kHz). certainly i could buffer the audio data and push it via callback after it reached 50kb for example. then i'd have to care about sync techniques again... moreover i need to delay arriving audio-bit-chunks, i.e. a dll gets an audio-chunk and has to push it again after 100ms without modification, whereas chunks arrive at 44.1kHz.

so, in brief:
* is there a filter that accepts bitstream as input ?
* what's the best way to delay a bitstream-sample ?

thanx in advance for any clues...
peter
GeneralGetting active control in a property page Pin
laiju9-May-05 1:41
laiju9-May-05 1:41 
GeneralRe: Getting active control in a property page Pin
David Crow9-May-05 2:07
David Crow9-May-05 2:07 
GeneralRe: Getting active control in a property page Pin
laiju9-May-05 2:26
laiju9-May-05 2:26 
GeneralRe: Getting active control in a property page Pin
Alex_Y9-May-05 4:00
Alex_Y9-May-05 4:00 
GeneralRe: Getting active control in a property page Pin
laiju9-May-05 16:52
laiju9-May-05 16:52 
GeneralRe: Getting active control in a property page Pin
Alex_Y10-May-05 5:45
Alex_Y10-May-05 5:45 
QuestionHow to create a vertical CEdit Pin
Eugene Pustovoyt9-May-05 0:27
Eugene Pustovoyt9-May-05 0:27 
AnswerRe: How to create a vertical CEdit Pin
toxcct9-May-05 0:57
toxcct9-May-05 0:57 
GeneralRe: How to create a vertical CEdit Pin
Eugene Pustovoyt9-May-05 4:37
Eugene Pustovoyt9-May-05 4:37 
AnswerRe: How to create a vertical CEdit Pin
Ravi Bhavnani9-May-05 6:28
professionalRavi Bhavnani9-May-05 6:28 
GeneralRe: How to create a vertical CEdit Pin
Eugene Pustovoyt9-May-05 20:28
Eugene Pustovoyt9-May-05 20:28 
GeneralRe: How to create a vertical CEdit Pin
Ravi Bhavnani10-May-05 1:57
professionalRavi Bhavnani10-May-05 1:57 
GeneralRe: How to create a vertical CEdit Pin
Eugene Pustovoyt10-May-05 9:10
Eugene Pustovoyt10-May-05 9:10 
GeneralSending Ctrl Alt Del Pin
Richard Hudson8-May-05 23:45
Richard Hudson8-May-05 23:45 
GeneralRe: Sending Ctrl Alt Del Pin
ThatsAlok8-May-05 23:59
ThatsAlok8-May-05 23:59 
GeneralRe: Sending Ctrl Alt Del Pin
jmkhael9-May-05 0:02
jmkhael9-May-05 0:02 
GeneralRe: Sending Ctrl Alt Del Pin
Richard Hudson9-May-05 0:09
Richard Hudson9-May-05 0:09 

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.