Click here to Skip to main content
15,891,184 members
Home / Discussions / C#
   

C#

 
QuestionWeb Services Pin
AnithaArvind2-May-07 10:46
AnithaArvind2-May-07 10:46 
AnswerRe: Web Services Pin
Christian Graus2-May-07 11:20
protectorChristian Graus2-May-07 11:20 
GeneralRe: Web Services Pin
AnithaArvind2-May-07 13:49
AnithaArvind2-May-07 13:49 
GeneralRe: Web Services Pin
Dave Kreskowiak2-May-07 16:15
mveDave Kreskowiak2-May-07 16:15 
QuestionSend print file to printer, C# Pin
T.Willey2-May-07 10:06
T.Willey2-May-07 10:06 
AnswerRe: Send print file to printer, C# Pin
DarthDub2-May-07 18:29
DarthDub2-May-07 18:29 
GeneralRe: Send print file to printer, C# Pin
T.Willey3-May-07 5:10
T.Willey3-May-07 5:10 
QuestionDirectSound Secondary Buffer problem Pin
Andrei Ungureanu2-May-07 9:59
Andrei Ungureanu2-May-07 9:59 
Hi,

I want to create an application that plays the sound recorded from the microphone. I succeeded in capturing the sound from the mic using CaptureBuffer....my problem is when using the data from this buffer to play it with SecondaryBuffer.
I'm using a memory stream to get the data from the capture buffer to a stream. When I capture the data from the mic I use the following code.
CaptureData is a byte array.
<br />
memStream.Write(CaptureData, 0, CaptureData.Length);<br />
secBuffer = new SecondaryBuffer(memStream, appDevice);<br />
secBuffer.Play(0, BufferPlayFlags.Default);<br />

When i run my application it gives me System.ArgumentException was unhandled - Value does not fall within the expected range.
Even if I use a different constructor, it always gives me this exception. I think it' because of the device object...This object is instantiated like this:
<br />
appDevice = new Device();<br />
appDevice.SetCooperativeLevel(this, CooperativeLevel.Priority);<br />


If any of you have a suggestion it will be most welcomed because I ran out of ideas.
Thanks.

Do your best to be the best

AnswerRe: DirectSound Secondary Buffer problem Pin
Leslie Sanford2-May-07 10:28
Leslie Sanford2-May-07 10:28 
QuestionWeb Service & Directories Pin
royk1232-May-07 9:26
royk1232-May-07 9:26 
AnswerRe: Web Service & Directories Pin
Tarakeshwar Reddy2-May-07 9:37
professionalTarakeshwar Reddy2-May-07 9:37 
GeneralRe: Web Service & Directories Pin
royk1232-May-07 17:27
royk1232-May-07 17:27 
QuestionProject Reference Not Updating Pin
ATCsharp2-May-07 9:13
ATCsharp2-May-07 9:13 
QuestionProgramattically add user or group to folder Pin
Aaron VanWieren2-May-07 8:48
Aaron VanWieren2-May-07 8:48 
QuestionDrawing bits to a window handle Pin
Symbul2-May-07 8:05
Symbul2-May-07 8:05 
AnswerRe: Drawing bits to a window handle Pin
AFSEKI7-May-07 6:12
AFSEKI7-May-07 6:12 
QuestionHow to Pin
Askalo2-May-07 7:54
Askalo2-May-07 7:54 
QuestionOutlook 2003 Pin
Askalo2-May-07 7:53
Askalo2-May-07 7:53 
AnswerRe: Outlook 2003 Pin
Paul Conrad2-May-07 10:59
professionalPaul Conrad2-May-07 10:59 
QuestionApp.Config Pin
Tauseef A2-May-07 7:47
Tauseef A2-May-07 7:47 
AnswerRe: App.Config Pin
kubben2-May-07 7:58
kubben2-May-07 7:58 
AnswerRe: App.Config Pin
AFSEKI7-May-07 6:06
AFSEKI7-May-07 6:06 
QuestionHow to maximize automaticly Pin
sinosoidal2-May-07 6:09
sinosoidal2-May-07 6:09 
AnswerRe: How to maximize automaticly Pin
PIEBALDconsult3-May-07 8:14
mvePIEBALDconsult3-May-07 8:14 
GeneralRe: How to maximize automaticly Pin
sinosoidal6-May-07 21:47
sinosoidal6-May-07 21:47 

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.