Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Make a silly sound when build succeeds

I was thinking of adding a 'Post build' step, which plays a silly fan fair effect when a build succeeds.

Is there a command line utility to play the sound effect or an easier way of achieving this vital programming goal!

like image 721
Chris Huang-Leaver Avatar asked Mar 31 '11 09:03

Chris Huang-Leaver


4 Answers

You could also take a look at this since it is actually an older duplicate of your question with more sugestions that might just work:

How can I get Visual Studio to beep at me if a build succeeds?

For VS 2008 and newer you should look at this (some people mention they have the options in Sounds and Audio Devices dialog with 2005 SP1 installed while others say with 2005 it never works/worked- but who knows maybe you just get lucky ;-)):

http://weblogs.asp.net/rrobbins/archive/2007/11/02/sound-events-for-visual-studio.aspx

like image 104
ds27680 Avatar answered Nov 02 '22 02:11

ds27680


If you don't mind the Windows Media Player popping up (and staying open), you could either try

"%ProgramFiles%\Windows Media Player\wmplayer.exe" foo.wav

or

start foo.wav

Or I guess you would have to use a custom sound player (or build your own).

like image 41
Mac Avatar answered Nov 02 '22 02:11

Mac


There is Visual Studio Ding extension.

This small extension will play notification sounds when following events occur:

Build Complete

Entering debugger mode (breakpoint hit, etc) Unit tests finished to run

https://visualstudiogallery.msdn.microsoft.com/941d0ed0-1218-452e-8585-d3ac693cda17

like image 2
vmg Avatar answered Nov 02 '22 02:11

vmg


you could use command line audio players like http://www.mpg123.de/

like image 1
Lixas Avatar answered Nov 02 '22 00:11

Lixas