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

C#

 
AnswerRe: Problem Reading And Writing Registry In C# Pin
Richard MacCutchan20-Sep-09 5:30
mveRichard MacCutchan20-Sep-09 5:30 
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 
Hi all,
I am using DirectSound to play wav files, one at a time or several together and it is all ok:

...
Device device = new Device();
device.SetCooperativeLevel(this, CooperativeLevel.Priority);
BufferDescription bDesc = new BufferDescription()
...
SecondaryBuffer sBuffer = new SecondaryBuffer("Wavefile.wav", bDesc , device);
...
sBuffer.SetCurrentPosition(0);
sBuffer.Play(0, PlayFlags);
...
// To Stop
sBuffer.Stop();


If i want to play multiple wav files (very short - max 5 seconds) that each start at a defined time and can overlapp eachothers (Like all mixer applications - Adobe Audition ...)
ex:
Wav1 start at time 0 second and ends at time 4 seconds,
Wav2 start at time 2 sec and ends at 7 sec,
Wav1 start at time 3 sec and ends at 7 sec,
Wav3 start at time 5 sec and ends at 6 sec,
.....

Using several SecondaryBuffers and playing them at the same time will play all the files simultaneously but not in a controled time order (which is very important).
How can i control the SecondaryBuffers to play simultaneously these short wavFiles at a specific time ?

Thanks for your reply
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 
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 

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.