Click here to Skip to main content
15,888,521 members
Home / Discussions / C#
   

C#

 
GeneralRe: How do I cast a LPARAM? Pin
Dan Neely20-Mar-09 9:24
Dan Neely20-Mar-09 9:24 
GeneralRe: How do I cast a LPARAM? Pin
led mike20-Mar-09 11:04
led mike20-Mar-09 11:04 
AnswerRe: How do I cast a LPARAM? Pin
Eslam Afifi20-Mar-09 8:59
Eslam Afifi20-Mar-09 8:59 
QuestionIntegrate MS Project into .net Application Pin
kcadella20-Mar-09 7:12
kcadella20-Mar-09 7:12 
AnswerRe: Integrate MS Project into .net Application Pin
led mike20-Mar-09 8:48
led mike20-Mar-09 8:48 
GeneralRe: Integrate MS Project into .net Application Pin
kcadella20-Mar-09 10:12
kcadella20-Mar-09 10:12 
GeneralRe: Integrate MS Project into .net Application Pin
kcadella23-Mar-09 14:57
kcadella23-Mar-09 14:57 
QuestionSound Recording in C# Pin
Emre Gürbüz20-Mar-09 5:41
Emre Gürbüz20-Mar-09 5:41 
Hello,

For my senior project, I need to make voice records from the microphone by using C#. I have made a research, but could not find a solution. What I want the program to accomplish is:

- It must periodicially record the sounds to any folder. For example, if the period is 5 seconds, the audio files can be such this:

* C:\MySounds\20090320172902.vaw -- (5 seconds)
* C:\MySounds\20090320172907.vaw -- (5 seconds)
* C:\MySounds\20090320172912.vaw -- (5 seconds)

(Naming the files is easy, it is not a problem).

- I have found a good example in this site:

http://www.codeproject.com/KB/audio-video/Mp3SoundCapture.aspx[^]

I wanted to use this program, but as I know, despite they are free source codes these kind of programs require a licence when we want to use in senior projects. Namely, we cannot use them in any project that can be sold in the future.

- I have made a research about sndrec32.exe . Some people had tried this like the following:

string strFilePath = @"C:\" + "file1001" + ".wav";
FileStream waveFile = File.Create(strFilePath);
waveFile.Close();
Process.Start("sndrec32", strFilePath);

But it didn't work. sndrec32.exe needs somebody to push its "RECORD" button and after five seconds, to push its "STOP" button, and then click "SAVE".

Is there any solution for my problem? Will I be able to record sounds from my microphone in periods of 5 seconds without paying for licence; namely with my "own" program?

Thanks...
AnswerRe: Sound Recording in C# Pin
led mike20-Mar-09 8:45
led mike20-Mar-09 8:45 
GeneralRe: Sound Recording in C# Pin
Emre Gürbüz20-Mar-09 8:55
Emre Gürbüz20-Mar-09 8:55 
GeneralRe: Sound Recording in C# Pin
Dan Neely20-Mar-09 9:28
Dan Neely20-Mar-09 9:28 
GeneralRe: Sound Recording in C# Pin
led mike20-Mar-09 10:53
led mike20-Mar-09 10:53 
GeneralRe: Sound Recording in C# Pin
led mike20-Mar-09 10:52
led mike20-Mar-09 10:52 
AnswerRe: Sound Recording in C# Pin
Ravadre20-Mar-09 8:48
Ravadre20-Mar-09 8:48 
QuestionAttachng Database Pin
Paresh Soni20-Mar-09 4:05
Paresh Soni20-Mar-09 4:05 
AnswerRe: Attachng Database Pin
Yusuf20-Mar-09 4:42
Yusuf20-Mar-09 4:42 
AnswerRe: Attachng Database Pin
Colin Angus Mackay20-Mar-09 5:13
Colin Angus Mackay20-Mar-09 5:13 
GeneralRe: Attachng Database Pin
Paresh Soni25-Mar-09 2:29
Paresh Soni25-Mar-09 2:29 
AnswerRe: Attachng Database Pin
Pete O'Hanlon20-Mar-09 5:22
mvePete O'Hanlon20-Mar-09 5:22 
GeneralRe: Attachng Database Pin
Colin Angus Mackay20-Mar-09 5:28
Colin Angus Mackay20-Mar-09 5:28 
AnswerRe: Attachng Database Pin
Michael Schubert20-Mar-09 5:49
Michael Schubert20-Mar-09 5:49 
GeneralRe: Attachng Database Pin
Pete O'Hanlon20-Mar-09 6:21
mvePete O'Hanlon20-Mar-09 6:21 
GeneralRe: Attachng Database Pin
Pete O'Hanlon20-Mar-09 6:24
mvePete O'Hanlon20-Mar-09 6:24 
GeneralRe: Attachng Database Pin
MumbleB20-Mar-09 6:53
MumbleB20-Mar-09 6:53 
GeneralRe: Attachng Database Pin
Michael Schubert20-Mar-09 7:11
Michael Schubert20-Mar-09 7: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.