Click here to Skip to main content
15,923,389 members
Home / Discussions / C#
   

C#

 
AnswerRe: AutoSize property in textbox Pin
dan!sh 26-Mar-09 5:20
professional dan!sh 26-Mar-09 5:20 
Questionimage slideshow by extracting images from a specified directory Pin
mist_psycho26-Mar-09 0:57
mist_psycho26-Mar-09 0:57 
AnswerRe: image slideshow by extracting images from a specified directory Pin
SeMartens26-Mar-09 1:12
SeMartens26-Mar-09 1:12 
AnswerRe: image slideshow by extracting images from a specified directory [modified] Pin
Henry Minute26-Mar-09 1:20
Henry Minute26-Mar-09 1:20 
GeneralRe: image slideshow by extracting images from a specified directory Pin
mist_psycho30-Mar-09 19:10
mist_psycho30-Mar-09 19:10 
GeneralRe: image slideshow by extracting images from a specified directory Pin
mist_psycho30-Mar-09 22:59
mist_psycho30-Mar-09 22:59 
GeneralRe: image slideshow by extracting images from a specified directory Pin
Henry Minute31-Mar-09 0:29
Henry Minute31-Mar-09 0:29 
QuestionProblems with directsound notify Pin
grarup26-Mar-09 0:01
grarup26-Mar-09 0:01 
I'm getting a NullReferenceException from the line "notify.SetNotificationPositions(bpnArray,3);" in the code below anyone got any idears.

code:
buffer = new Microsoft.DirectX.DirectSound.Buffer(bufferDescription, playbackDevice);<br />
		<br />
bufferHalfEmptyEvent = new AutoResetEvent(false);<br />
<br />
bufferSize = buffer.Caps.BufferBytes;<br />
<br />
sinusBuffer = new MemoryStream(waveFormat.BlockAlign * waveFormat.SamplesPerSecond);<br />
<br />
BufferPositionNotify bufferOneThridPointNotify = new BufferPositionNotify();<br />
bufferOneThridPointNotify.Offset = bufferSize / 3 - 1;<br />
bufferOneThridPointNotify.EventNotifyHandle = bufferHalfEmptyEvent.Handle;<br />
BufferPositionNotify bufferTwoThridPointNotify = new BufferPositionNotify();<br />
bufferTwoThridPointNotify.Offset = (2*bufferSize / 3) - 1;<br />
bufferTwoThridPointNotify.EventNotifyHandle = bufferHalfEmptyEvent.Handle;<br />
BufferPositionNotify bufferEndPointNotify = new BufferPositionNotify();<br />
bufferEndPointNotify.Offset = bufferSize - 1;<br />
bufferEndPointNotify.EventNotifyHandle = bufferHalfEmptyEvent.Handle;<br />
<br />
BufferPositionNotify[] bpnArray = new BufferPositionNotify[3];<br />
bpnArray[0] = bufferOneThridPointNotify;<br />
bpnArray[1] = bufferTwoThridPointNotify;<br />
bpnArray[2] = bufferEndPointNotify;<br />
Notify notify = new Notify(buffer);<br />
notify.SetNotificationPositions(bpnArray, 3);

AnswerRe: Problems with directsound notify Pin
DaveyM6926-Mar-09 0:53
professionalDaveyM6926-Mar-09 0:53 
GeneralRe: Problems with directsound notify Pin
grarup26-Mar-09 1:28
grarup26-Mar-09 1:28 
GeneralRe: Problems with directsound notify Pin
DaveyM6926-Mar-09 2:17
professionalDaveyM6926-Mar-09 2:17 
GeneralRe: Problems with directsound notify Pin
grarup26-Mar-09 3:03
grarup26-Mar-09 3:03 
AnswerRe: Problems with directsound notify Pin
Henry Minute26-Mar-09 3:20
Henry Minute26-Mar-09 3:20 
GeneralRe: Problems with directsound notify Pin
DaveyM6926-Mar-09 3:25
professionalDaveyM6926-Mar-09 3:25 
GeneralRe: Problems with directsound notify Pin
Henry Minute26-Mar-09 3:33
Henry Minute26-Mar-09 3:33 
QuestionSend and Recive files using Socket Pin
yesu prakash25-Mar-09 23:27
yesu prakash25-Mar-09 23:27 
AnswerRe: Send and Recive files using Socket Pin
annapurna.tiwari25-Mar-09 23:48
annapurna.tiwari25-Mar-09 23:48 
Questionabout database Pin
dcyuhi25-Mar-09 23:26
dcyuhi25-Mar-09 23:26 
AnswerRe: about database Pin
Tom Deketelaere25-Mar-09 23:36
professionalTom Deketelaere25-Mar-09 23:36 
AnswerRe: about database Pin
Deresen26-Mar-09 0:00
Deresen26-Mar-09 0:00 
GeneralRe: about database Pin
dcyuhi26-Mar-09 0:26
dcyuhi26-Mar-09 0:26 
GeneralRe: about database Pin
Deresen26-Mar-09 0:56
Deresen26-Mar-09 0:56 
GeneralRe: about database Pin
Tom Deketelaere26-Mar-09 1:14
professionalTom Deketelaere26-Mar-09 1:14 
GeneralRe: about database Pin
Deresen26-Mar-09 1:18
Deresen26-Mar-09 1:18 
GeneralRe: about database Pin
Tom Deketelaere26-Mar-09 1:32
professionalTom Deketelaere26-Mar-09 1:32 

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.