Changeset 344


Ignore:
Timestamp:
09/17/07 18:41:38 (17 years ago)
Author:
r2d
Message:

added version info for mpcdec and mpcgain

Location:
libmpc/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libmpc/trunk/mpcdec/mpcdec.c

    r339 r344  
    4545#endif
    4646
     47#define MPCDEC_MAJOR 0
     48#define MPCDEC_MINOR 9
     49#define MPCDEC_BUILD 0
     50
     51#define _cat(a,b,c) #a"."#b"."#c
     52#define cat(a,b,c) _cat(a,b,c)
     53#define MPCDEC_VERSION cat(MPCDEC_MAJOR,MPCDEC_MINOR,MPCDEC_BUILD)
     54
     55const char    About []        = "mpcdec - musepack (mpc) decoder v" MPCDEC_VERSION " (C) 2006-2007 MDT\nBuilt " __DATE__ " " __TIME__ "\n";
     56
     57
    4758t_wav_uint32 mpc_wav_output_write(void* p_user_data, void const* p_buffer, t_wav_uint32 p_bytes)
    4859{
     
    105116        int c;
    106117
    107     printf("mpcdec - musepack (mpc) decoder sample application\n");
     118    printf(About);
    108119
    109120        while ((c = getopt(argc , argv, "ihc")) != -1) {
  • libmpc/trunk/mpcgain/mpcgain.c

    r252 r344  
    4242#include "../libmpcdec/mpc_bits_reader.h"
    4343
     44#define MPCGAIN_MAJOR 0
     45#define MPCGAIN_MINOR 9
     46#define MPCGAIN_BUILD 0
     47
     48#define _cat(a,b,c) #a"."#b"."#c
     49#define cat(a,b,c) _cat(a,b,c)
     50#define MPCGAIN_VERSION cat(MPCGAIN_MAJOR,MPCGAIN_MINOR,MPCGAIN_BUILD)
     51
     52const char    About []        = "mpcgain - musepack (mpc) replaygain calculator v" MPCGAIN_VERSION " (C) 2006-2007 MDT\nBuilt " __DATE__ " " __TIME__ "\n";
     53
     54
    4455static void usage(const char *exename)
    4556{
     
    5667        mpc_uint32_t * header_pos;
    5768        int j;
     69
     70        printf(About);
    5871
    5972        if(argc < 2) {
Note: See TracChangeset for help on using the changeset viewer.