Skip to content

Integrating a short sound

Israel

Asked Mar 7, 2017, 7:28 AM EST2 answers
Share
LinkedInX
Hi!
 
I have a question to ask concerning an integrated calling sound. I need to know if it's possible with C# or C#.Net to integrate a short sound when someone is calling to you.
I will explain it with a simple example:
For instance, when you are calling someone... It's ringing on his phone then before him to answer a shord music (or a short sound) it's playing. When it's pick up the phone naturally its stop. I am not sure if I am clear.
 
Thank you,
Israel.

2 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    Use the following for Beep Sound in windows/Console Applicaiton..
     
    Code
    System.Console.Beep(1000, 500);
    System.Console.Beep(2000, 500);
    System.Console.Beep(3000, 500);
    System.Console.Beep(1000, 500);
    System.Console.Beep(4000, 500);
    
    Or,
    System.Media.SoundPlayer s = new System.Media.SoundPlayer();
    s.SoundLocation = @"\Resources\sound.WAV";
    0
  • 0
    @Sardar
    I am sure that you did not understand well my question.
     
    Thanx. 
    0