annotate src/libsndfile-1.0.27/programs/common.h @ 84:08ae793730bd

Add null config files
author Chris Cannam
date Mon, 02 Mar 2020 14:03:47 +0000
parents 1df64224f5ac
children
rev   line source
Chris@40 1 /*
Chris@40 2 ** Copyright (C) 1999-2013 Erik de Castro Lopo <erikd@mega-nerd.com>
Chris@40 3 **
Chris@40 4 ** All rights reserved.
Chris@40 5 **
Chris@40 6 ** Redistribution and use in source and binary forms, with or without
Chris@40 7 ** modification, are permitted provided that the following conditions are
Chris@40 8 ** met:
Chris@40 9 **
Chris@40 10 ** * Redistributions of source code must retain the above copyright
Chris@40 11 ** notice, this list of conditions and the following disclaimer.
Chris@40 12 ** * Redistributions in binary form must reproduce the above copyright
Chris@40 13 ** notice, this list of conditions and the following disclaimer in
Chris@40 14 ** the documentation and/or other materials provided with the
Chris@40 15 ** distribution.
Chris@40 16 ** * Neither the author nor the names of any contributors may be used
Chris@40 17 ** to endorse or promote products derived from this software without
Chris@40 18 ** specific prior written permission.
Chris@40 19 **
Chris@40 20 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
Chris@40 21 ** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
Chris@40 22 ** TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
Chris@40 23 ** PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
Chris@40 24 ** CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
Chris@40 25 ** EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
Chris@40 26 ** PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
Chris@40 27 ** OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
Chris@40 28 ** WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
Chris@40 29 ** OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
Chris@40 30 ** ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Chris@40 31 */
Chris@40 32
Chris@40 33
Chris@40 34 #define ARRAY_LEN(x) ((int) (sizeof (x) / sizeof (x [0])))
Chris@40 35 #define MAX(a, b) ((a) > (b) ? (a) : (b))
Chris@40 36
Chris@40 37 typedef struct
Chris@40 38 { const char * title ;
Chris@40 39 const char * copyright ;
Chris@40 40 const char * artist ;
Chris@40 41 const char * comment ;
Chris@40 42 const char * date ;
Chris@40 43 const char * album ;
Chris@40 44 const char * license ;
Chris@40 45
Chris@40 46
Chris@40 47 /* Stuff to go in the 'bext' chunk of WAV files. */
Chris@40 48 int has_bext_fields ;
Chris@40 49 int coding_hist_append ;
Chris@40 50
Chris@40 51 const char * description ;
Chris@40 52 const char * originator ;
Chris@40 53 const char * originator_reference ;
Chris@40 54 const char * origination_date ;
Chris@40 55 const char * origination_time ;
Chris@40 56 const char * umid ;
Chris@40 57 const char * coding_history ;
Chris@40 58 const char * time_ref ;
Chris@40 59 } METADATA_INFO ;
Chris@40 60
Chris@40 61 typedef SF_BROADCAST_INFO_VAR (2048) SF_BROADCAST_INFO_2K ;
Chris@40 62
Chris@40 63 void sfe_apply_metadata_changes (const char * filenames [2], const METADATA_INFO * info) ;
Chris@40 64
Chris@40 65 void sfe_copy_data_fp (SNDFILE *outfile, SNDFILE *infile, int channels, int normalize) ;
Chris@40 66
Chris@40 67 void sfe_copy_data_int (SNDFILE *outfile, SNDFILE *infile, int channels) ;
Chris@40 68
Chris@40 69 int sfe_file_type_of_ext (const char *filename, int format) ;
Chris@40 70
Chris@40 71 void sfe_dump_format_map (void) ;
Chris@40 72
Chris@40 73 const char * program_name (const char * argv0) ;
Chris@40 74
Chris@40 75 const char * sfe_endian_name (int format) ;
Chris@40 76 const char * sfe_container_name (int format) ;
Chris@40 77 const char * sfe_codec_name (int format) ;
Chris@40 78