Archive for April, 2013

WPF C# html view

Posted: April 30, 2013 in WPF/C#
Tags: , ,

this was very easy. worked right away.

http://pavzav.blogspot.co.il/2010/11/how-to-show-html-content-in-wpf-window.html

I used this projects as my reference to how record from the microhphone in Windows with c++:

http://www.relisoft.com/freeware/recorder.html

http://www.dreamincode.net/forums/topic/208153-sound-recorder-using-the-low-level-windows-api-in-c/

my WAVEFORMATEX values are:

wFormatTag 1 unsigned short (WAVE_FORMAT_PCM)
nChannels 1 unsigned short
nSamplesPerSec 11025 unsigned long
nAvgBytesPerSec 11025 unsigned long
nBlockAlign 1 unsigned short
wBitsPerSample 8 unsigned short
cbSize 0 unsigned short

In the event of PCM buffer input I call a callback function that uses this data from lpData in the given WAVEHDR .

The trick to get real useful values from this data (0 means silence) is to do a static cast to unsigend char * (reinterpret) and decrement 128 which is the biased zero.

unsigned char * lpData = reinterpret_cast<unsigned char *> (_lpData); 

for (int i=0;i<buffLen;i++)
{
       value + = abs(lpData[i]-128);
}

found a working answer here:

http://stackoverflow.com/questions/10245771/sharing-a-c-solution-between-visual-studio-2010-and-11

Capture

when searching this ribbon tab appears. Go to “Advanced options” and check “Files Content”.

This worked immediatly no problems

http://learneveryday.net/php/framework/codeigniter/ci_series/sending-email-in-codeigniter-with-gmail-series-2/

found this great plugin.

worked with no problems

 

http://paulirish.com/2009/jquery-idletimer-plugin/

http://www.vogella.com/tutorials.html