Click here to Skip to main content
15,949,686 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Selection is gray in a CListCtrl Pin
Joel Lucsy24-Jan-06 5:20
Joel Lucsy24-Jan-06 5:20 
GeneralRe: Selection is gray in a CListCtrl Pin
RoyceF24-Jan-06 5:22
RoyceF24-Jan-06 5:22 
GeneralRe: Selection is gray in a CListCtrl Pin
RoyceF24-Jan-06 10:49
RoyceF24-Jan-06 10:49 
QuestionJava c++ integration Pin
pplshero5423-Jan-06 6:33
pplshero5423-Jan-06 6:33 
AnswerRe: Java c++ integration Pin
jhwurmbach23-Jan-06 7:05
jhwurmbach23-Jan-06 7:05 
QuestionIs it possible to serialize a SAFEARRAY to a buffer? Pin
domehead23-Jan-06 6:23
domehead23-Jan-06 6:23 
Questionrecord wave using visual c++ (real time) Pin
mohahhh23-Jan-06 6:20
mohahhh23-Jan-06 6:20 
AnswerRe: record wave using visual c++ (real time) Pin
normanS23-Jan-06 19:22
normanS23-Jan-06 19:22 
By "record", do you mean "write to hard disk" or "capture in memory"?

The standard C WaveIn functions can be used to capture audio to blocks of memory, where each "block" is a series of samples. Each sample is a value (0 to 255 for 8-bit or 0 to 65535 for 16-bit.)

You could capture (say) blocks of 50 milliseconds, then a simple check for "silence" would be to calculate the sum of the difference of each sample from 128 or 32768. If this sum is below some threshold (determined by trial-and-error), it is "silence", i.e. the break between words.

As far as I remember, the FISTER http://www.codeproject.com/audio/fister.asp[^] application was a good starting point.
Questionedit box vector Pin
francescot23-Jan-06 5:28
francescot23-Jan-06 5:28 
AnswerRe: edit box vector Pin
Chris Losinger23-Jan-06 5:40
professionalChris Losinger23-Jan-06 5:40 
GeneralRe: edit box vector Pin
francescot23-Jan-06 5:50
francescot23-Jan-06 5:50 
GeneralRe: edit box vector Pin
francescot23-Jan-06 5:55
francescot23-Jan-06 5:55 
GeneralRe: edit box vector Pin
francescot23-Jan-06 6:36
francescot23-Jan-06 6:36 
GeneralRe: edit box vector Pin
David Crow23-Jan-06 7:50
David Crow23-Jan-06 7:50 
GeneralRe: edit box vector Pin
Chris Losinger23-Jan-06 5:55
professionalChris Losinger23-Jan-06 5:55 
GeneralRe: edit box vector Pin
jhwurmbach23-Jan-06 6:15
jhwurmbach23-Jan-06 6:15 
GeneralRe: edit box vector Pin
francescot23-Jan-06 6:42
francescot23-Jan-06 6:42 
GeneralRe: edit box vector Pin
jhwurmbach23-Jan-06 7:00
jhwurmbach23-Jan-06 7:00 
GeneralRe: edit box vector Pin
francescot23-Jan-06 7:29
francescot23-Jan-06 7:29 
GeneralRe: edit box vector Pin
jhwurmbach23-Jan-06 21:41
jhwurmbach23-Jan-06 21:41 
GeneralRe: edit box vector Pin
francescot23-Jan-06 9:17
francescot23-Jan-06 9:17 
GeneralRe: edit box vector Pin
Chris Losinger23-Jan-06 9:30
professionalChris Losinger23-Jan-06 9:30 
GeneralRe: edit box vector Pin
francescot23-Jan-06 11:16
francescot23-Jan-06 11:16 
GeneralRe: edit box vector Pin
Chris Losinger23-Jan-06 12:23
professionalChris Losinger23-Jan-06 12:23 
GeneralRe: edit box vector Pin
francescot24-Jan-06 9:23
francescot24-Jan-06 9:23 

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.