kokizzu / giver

Automatically exported from code.google.com/p/giver
MIT License
0 stars 0 forks source link

Notification sounds don't play on Windows (Patch). #25

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The PlaySoundFile call in WindowsPlatformService is currently empty, so 
I've attached a patch that adds support for playing .wav files.

This uses the System.Media.SoundPlayer class (which is available on Windows 
from .Net 2.0) to play the audio asynchronously. It looks like this class 
may also be available under Mono but I can't currently check that.

Original issue reported on code.google.com by rossdjo...@gmail.com on 19 Apr 2009 at 10:05

Attachments:

GoogleCodeExporter commented 9 years ago
I've just tested out System.Media.SoundPlayer on an Ubuntu 9.04 install and it 
works fine, although I've no idea 
whether it will work on other distros as I don't know what it depends on in 
terms of sound api.

Original comment by rossdjo...@gmail.com on 23 Apr 2009 at 8:23