From f865aa428bcc2740d8988e3fb00ad49e0ca80471 Mon Sep 17 00:00:00 2001 From: "alexander.pickering" Date: Sat, 29 Nov 2014 20:10:21 -0500 Subject: Slight edit to usage menu to be more helpful --- vaud.c | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/vaud.c b/vaud.c index 4b7304a..03e676d 100644 --- a/vaud.c +++ b/vaud.c @@ -16,7 +16,9 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +*/ +/* A big thank you goes to Nicholas J. Humfrey, whos jack meter was modified to make this. You can view the project here: http://www.aelius.com/njh/jackmeter/ @@ -146,7 +148,8 @@ static int usage( const char * progname ) fprintf(stderr, "Visual Audio Version - %s\n\n", VERSION); fprintf(stderr, "Usage %s [-f freqency] [-m meter] [-n] [, ...]\n\n", progname); fprintf(stderr, "where -f is how often to update the meter per second [8]\n"); - fprintf(stderr, " -g is the number of the meter (0-2)\n"); + fprintf(stderr, " -g is the display style of the meter (0-2)\n"); + fptintf(stderr, " 0 - top down\n 1 - bottom up\n 2 - centered, symetric (window must be a multiple of 2!)");" fprintf(stderr, " -n changes mode to output meter level as number in decibels\n"); fprintf(stderr, " the port(s) to monitor (multiple ports are mixed)\n"); exit(1); @@ -166,10 +169,12 @@ void start_ncurses() curs_set(0); //Hide cursor if(COLORFUL) { + start_color(); //Tell ncurses to be colorufl! - init_pair(1, BORCOLORFG, BORCOLORBG); //Color the border - init_pair(2, BARCOLORFG, BARCOLORBG); //Color the bars - init_pair(3, BLANKCOLORBG, BLANKCOLORFG); //Color the blank space + use_default_colors(); + //init_pair(1, BORCOLORFG, BORCOLORBG); //Color the border + //init_pair(2, BARCOLORFG, BARCOLORBG); //Color the bars + //init_pair(3, BLANKCOLORBG, BLANKCOLORFG); //Color the blank space } } @@ -215,21 +220,21 @@ void display_centerBars() for(j=0;j