Click here to Skip to main content
15,877,591 members
Home / Discussions / C#
   

C#

 
GeneralRe: DirectSound Error Pin
Ravi Bhavnani24-Nov-07 12:44
professionalRavi Bhavnani24-Nov-07 12:44 
GeneralRe: DirectSound Error Pin
MasterSharp24-Nov-07 12:51
MasterSharp24-Nov-07 12:51 
GeneralRe: DirectSound Error Pin
Ravi Bhavnani24-Nov-07 12:54
professionalRavi Bhavnani24-Nov-07 12:54 
GeneralRe: DirectSound Error Pin
MasterSharp24-Nov-07 12:58
MasterSharp24-Nov-07 12:58 
GeneralRe: DirectSound Error Pin
MasterSharp24-Nov-07 13:02
MasterSharp24-Nov-07 13:02 
GeneralRe: DirectSound Error Pin
MasterSharp24-Nov-07 13:04
MasterSharp24-Nov-07 13:04 
GeneralRe: DirectSound Error Pin
Ravi Bhavnani24-Nov-07 13:06
professionalRavi Bhavnani24-Nov-07 13:06 
AnswerRe: DirectSound Error Pin
Ravi Bhavnani24-Nov-07 13:03
professionalRavi Bhavnani24-Nov-07 13:03 
MasterSharp wrote:
what would I do in the catch part

The simplest thing to do would be to display a message box if an exception is thrown, eg:
try {
  wave = new DirectSound.SecondaryBuffer("C:\\laser1.wav", sound);
}
catch (SoundException ex) {
  MessageBox.Show (ex.Message);
}
Also make sure the file C:\\laser1.wav exists.

/ravi

This is your brain on Celcius
Home | Music | Articles | Freeware | Trips
ravib(at)ravib(dot)com

GeneralRe: DirectSound Error Pin
MasterSharp24-Nov-07 13:05
MasterSharp24-Nov-07 13:05 
GeneralRe: DirectSound Error Pin
Ravi Bhavnani24-Nov-07 13:07
professionalRavi Bhavnani24-Nov-07 13:07 
GeneralRe: DirectSound Error Pin
MasterSharp24-Nov-07 13:10
MasterSharp24-Nov-07 13:10 
GeneralRe: DirectSound Error Pin
Ravi Bhavnani24-Nov-07 13:16
professionalRavi Bhavnani24-Nov-07 13:16 
GeneralRe: DirectSound Error Pin
MasterSharp24-Nov-07 13:08
MasterSharp24-Nov-07 13:08 
GeneralRe: DirectSound Error Pin
Ravi Bhavnani24-Nov-07 13:11
professionalRavi Bhavnani24-Nov-07 13:11 
GeneralRe: DirectSound Error Pin
Ravi Bhavnani24-Nov-07 13:10
professionalRavi Bhavnani24-Nov-07 13:10 
GeneralRe: DirectSound Error Pin
MasterSharp24-Nov-07 13:12
MasterSharp24-Nov-07 13:12 
GeneralRe: DirectSound Error Pin
MasterSharp24-Nov-07 13:13
MasterSharp24-Nov-07 13:13 
GeneralRe: DirectSound Error Pin
Ravi Bhavnani24-Nov-07 13:13
professionalRavi Bhavnani24-Nov-07 13:13 
GeneralRe: DirectSound Error Pin
MasterSharp24-Nov-07 14:09
MasterSharp24-Nov-07 14:09 
GeneralRe: DirectSound Error Pin
Christian Graus24-Nov-07 14:11
protectorChristian Graus24-Nov-07 14:11 
QuestionDatabindings. Pin
daavena24-Nov-07 11:46
daavena24-Nov-07 11:46 
AnswerRe: Databindings. Pin
pmarfleet24-Nov-07 12:22
pmarfleet24-Nov-07 12:22 
GeneralRe: Databindings. Pin
daavena24-Nov-07 12:40
daavena24-Nov-07 12:40 
QuestionReading an iso image Pin
DeepToot24-Nov-07 10:43
DeepToot24-Nov-07 10:43 
AnswerRe: Reading an iso image Pin
Paul Conrad28-Nov-07 14:39
professionalPaul Conrad28-Nov-07 14:39 

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.