Click here to Skip to main content
15,920,687 members
Home / Discussions / C#
   

C#

 
AnswerRe: Problem Reading And Writing Registry In C# Pin
Alan N20-Sep-09 8:02
Alan N20-Sep-09 8:02 
GeneralRe: Problem Reading And Writing Registry In C# Pin
Ben Magee20-Sep-09 8:24
Ben Magee20-Sep-09 8:24 
GeneralRe: Problem Reading And Writing Registry In C# Pin
Luc Pattyn20-Sep-09 8:34
sitebuilderLuc Pattyn20-Sep-09 8:34 
GeneralRe: Problem Reading And Writing Registry In C# Pin
Ben Magee20-Sep-09 8:36
Ben Magee20-Sep-09 8:36 
GeneralRe: Problem Reading And Writing Registry In C# Pin
Luc Pattyn20-Sep-09 9:09
sitebuilderLuc Pattyn20-Sep-09 9:09 
GeneralRe: Problem Reading And Writing Registry In C# Pin
Richard MacCutchan20-Sep-09 9:34
mveRichard MacCutchan20-Sep-09 9:34 
QuestionPlaying multiple wav files simultaneously in C# Pin
Zorro00020-Sep-09 3:37
Zorro00020-Sep-09 3:37 
AnswerRe: Playing multiple wav files simultaneously in C# Pin
N a v a n e e t h20-Sep-09 4:36
N a v a n e e t h20-Sep-09 4:36 
I will create a class say WavFile which represents a single wav file. This will have methods like Play() and Stop() and properties like StartAt and EndAt. To control all wav files, a WavController class can be created which maintains a collection of wav files that has to be played.

WavController maintains the start time and in a loop it calculates the elapsed seconds. Each time the wav file collection will be queried to get the wav files that matches to the elapsed seconds. You need to get objects that has to be played and stopped for the elapsed second. Call Play() or Stop() on those objects which will eventually call DirectSound's stop/play methods.

WavController should run the loop on a separate thread and it should exit safely when all files are played rather than aborting the thread.

Smile | :)


GeneralRe: Playing multiple wav files simultaneously in C# Pin
Zorro00020-Sep-09 10:02
Zorro00020-Sep-09 10:02 
GeneralRe: Playing multiple wav files simultaneously in C# Pin
N a v a n e e t h20-Sep-09 16:58
N a v a n e e t h20-Sep-09 16:58 
Questionhelp with udp code snippet... Pin
emperorhere20-Sep-09 3:19
emperorhere20-Sep-09 3:19 
AnswerRe: help with udp code snippet...[CrossPost] Pin
Richard MacCutchan20-Sep-09 3:55
mveRichard MacCutchan20-Sep-09 3:55 
AnswerRe: help with udp code snippet... Pin
EliottA20-Sep-09 3:55
EliottA20-Sep-09 3:55 
AnswerRe: help with udp code snippet... Pin
harold aptroot20-Sep-09 4:28
harold aptroot20-Sep-09 4:28 
Questionhelp with udp code snippet... Pin
emperorhere20-Sep-09 3:17
emperorhere20-Sep-09 3:17 
AnswerRe: help with udp code snippet... Pin
N a v a n e e t h20-Sep-09 3:34
N a v a n e e t h20-Sep-09 3:34 
QuestionProgramatic Font Install Pin
HighCloud20-Sep-09 2:11
HighCloud20-Sep-09 2:11 
AnswerRe: Programatic Font Install Pin
Richard MacCutchan20-Sep-09 2:32
mveRichard MacCutchan20-Sep-09 2:32 
GeneralRe: Programatic Font Install Pin
HighCloud20-Sep-09 3:03
HighCloud20-Sep-09 3:03 
GeneralRe: Programatic Font Install Pin
Luc Pattyn20-Sep-09 3:24
sitebuilderLuc Pattyn20-Sep-09 3:24 
GeneralRe: Programatic Font Install Pin
HighCloud20-Sep-09 3:51
HighCloud20-Sep-09 3:51 
GeneralRe: Programatic Font Install Pin
Richard MacCutchan20-Sep-09 4:05
mveRichard MacCutchan20-Sep-09 4:05 
GeneralRe: Programatic Font Install Pin
HighCloud20-Sep-09 4:37
HighCloud20-Sep-09 4:37 
GeneralRe: Programatic Font Install Pin
Luc Pattyn20-Sep-09 5:03
sitebuilderLuc Pattyn20-Sep-09 5:03 
GeneralRe: Programatic Font Install Pin
Richard MacCutchan20-Sep-09 5:15
mveRichard MacCutchan20-Sep-09 5:15 

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.