Click here to Skip to main content
15,886,110 members
Home / Discussions / Windows Forms
   

Windows Forms

 
GeneralRe: My clients requirement is Pin
indian14326-Jul-07 20:27
indian14326-Jul-07 20:27 
GeneralRe: My clients requirement is Pin
Colin Angus Mackay28-Jul-07 7:32
Colin Angus Mackay28-Jul-07 7:32 
GeneralRe: My clients requirement is Pin
Paul Conrad26-Jul-07 9:55
professionalPaul Conrad26-Jul-07 9:55 
GeneralRe: My clients requirement is Pin
indian14326-Jul-07 20:20
indian14326-Jul-07 20:20 
AnswerRe: My clients requirement is Pin
Christian Graus26-Jul-07 23:14
protectorChristian Graus26-Jul-07 23:14 
GeneralRe: My clients requirement is Pin
indian14327-Jul-07 0:19
indian14327-Jul-07 0:19 
GeneralRe: My clients requirement is Pin
Christian Graus27-Jul-07 0:49
protectorChristian Graus27-Jul-07 0:49 
QuestionUsing Forms with Managed DirectX Pin
Leslie Sanford25-Jul-07 19:48
Leslie Sanford25-Jul-07 19:48 
I've recently posted an article here about my C# SynthToolkit[^]. This toolkit is for creating "softsynths" in C# (or any .NET language).

I'm pleased with the toolkit except for one thing: The output occassionally glitches. I will be playing a synthesizer created with the toolkit and everything will be fine. But then it suddenly begins to glitch. The sound is almost like static.

The problem isn't with the synth engine. I've recorded the output to a wave file when this has happened, and the glitching doesn't show up. I believe the problem is somehow in the interaction between Managed DirectX and Windows Forms. The glitching begins somtetimes when the focus changes from one Form to another. The environment in which the synth is run is an MDI application. If I click on, say, a button on one Form when another previously had the focus, the focus changes to the new Form (goes without saying). A small percentage of the time, this causes the sound to begin glitching. It's strange because if I move a window around or click on another window, it sometimes stops and playback continues normally.

My conclusion is that changing focus somehow interferes with the performance of either the SecondaryBuffer I'm feeding wave data to or the waveform output Device responsible for playing the waveform data. When I use a Device object, I have to call its SetCooperation method, passing it a Form. I simply pass the Form in which the Device was created. So somehow in the background I'm assuming there's some kind of interaction between the Device and Form.

Any thoughts or ideas on a possible solution will be welcome.

The only thing I can think of now is hooking into the focus event of each Form in my application and doing something in response like stopping and restarting playback in hopes of clearing whatever problem is occuring.
Questionpop up form to capture reason Pin
jpk42025-Jul-07 4:52
jpk42025-Jul-07 4:52 
AnswerRe: pop up form to capture reason [modified] Pin
Luc Pattyn25-Jul-07 5:12
sitebuilderLuc Pattyn25-Jul-07 5:12 
GeneralRe: pop up form to capture reason Pin
jpk42025-Jul-07 6:23
jpk42025-Jul-07 6:23 
GeneralRe: pop up form to capture reason Pin
Luc Pattyn25-Jul-07 6:36
sitebuilderLuc Pattyn25-Jul-07 6:36 
GeneralRe: pop up form to capture reason Pin
jpk42025-Jul-07 6:45
jpk42025-Jul-07 6:45 
GeneralRe: pop up form to capture reason Pin
Luc Pattyn25-Jul-07 7:12
sitebuilderLuc Pattyn25-Jul-07 7:12 
QuestionWebbrowser and encoding Pin
hoonzis24-Jul-07 22:38
hoonzis24-Jul-07 22:38 
QuestionProblems adding dynamically a custon-control to a panel Pin
J. Holzer24-Jul-07 11:40
J. Holzer24-Jul-07 11:40 
QuestionHow to run a dll on system reboot Pin
rockyl24-Jul-07 4:46
rockyl24-Jul-07 4:46 
AnswerRe: How to run a dll on system reboot Pin
Christian Graus24-Jul-07 13:31
protectorChristian Graus24-Jul-07 13:31 
GeneralRe: How to run a dll on system reboot Pin
rockyl24-Jul-07 21:02
rockyl24-Jul-07 21:02 
GeneralRe: How to run a dll on system reboot Pin
Christian Graus24-Jul-07 22:05
protectorChristian Graus24-Jul-07 22:05 
GeneralRe: How to run a dll on system reboot Pin
rockyl24-Jul-07 22:39
rockyl24-Jul-07 22:39 
GeneralRe: How to run a dll on system reboot Pin
Jonathan [Darka]26-Jul-07 4:27
professionalJonathan [Darka]26-Jul-07 4:27 
QuestionDrag and drop pictureBox bitmap is overwritten by repaint (C#) Pin
charles92223-Jul-07 18:57
charles92223-Jul-07 18:57 
AnswerRe: Drag and drop pictureBox bitmap is overwritten by repaint (C#) Pin
Christian Graus23-Jul-07 19:11
protectorChristian Graus23-Jul-07 19:11 
GeneralRe: Drag and drop pictureBox bitmap is overwritten by repaint (C#) Pin
Paul Conrad23-Jul-07 19:48
professionalPaul Conrad23-Jul-07 19:48 

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.