8000 Added sound when getting an incoming call. by hayer · Pull Request #58 · alexbakker/Toxy · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Sep 30, 2018. It is now read-only.

Added sound when getting an incoming call. #58

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Added sound when getting an incoming call. #58

wants to merge 5 commits into from

Conversation

hayer
Copy link
@hayer hayer commented May 12, 2015

Okey, so be gentle. First 'real' pull request here. Used to just supplying patches.

Started using Toxy. Was happy, except there was no sound when calling. Added a simple sound to play when you get a call.

@alexbakker
Copy link
Owner

Is it possible that you forgot to add some changes? It seems that StartCallingNotify never gets called. However, StopCallingNotify gets called constantly.

I also don't really like that sound (though it's better than nothing). Could you provide a link to the place where you got this from? Or did you make it yourself?

@hayer
Copy link
Author
hayer commented May 12, 2015

Okey, sorry - kinda messed that fix up. Was written in a hurry. Fixed it in commit c882984.

I just took a random sound from http://www.soundjay.com/phone-sounds-1.html

@alexbakker
Copy link
Owner

The sound doesn't actually play for me. Looks like you forgot to add the sound as an embedded resource.

Anyways, I think 8000 I'd prefer 'Telephone Ring 4' over the one you added. It seems loopable too so it's probably better to call PlayLooping instead of Play.

Some more notes:
It should stop playing the sound if the friend cancels the call request.
It should also reset the position of the stream when StopCallingNotify is called to make sure it doesn't start playing the sound from some place in the middle.

@hayer
Copy link
Author
hayer commented May 12, 2015

After setting sometime aside and looking at it instead of just quick fixing it; how would you feel having the calling sound bound to the IsCalling property?

@alexbakker
Copy link
Owner

That sounds like a good idea.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0