sndfile-convert.c : Add conversion SF_INSTRUMENT data when present.

This commit is contained in:
Erik de Castro Lopo 2006-05-30 13:18:56 +00:00
parent d32f698602
commit fcf46c98d2
2 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2006-05-30 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
* sndfile-convert.c
Add conversion SF_INSTRUMENT data when present.
2006-05-22 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
* doc/development.html
@ -15,7 +20,7 @@
* src/common.h src/(dwvw|flac|g72x|gsm610|ima_adpcm|ms_adpcm|paf|sds).c
src/(sndfile|voc|vox_adpcm|xi).c
Remove fdate field from SF_PRIVATE struct and replace it with codec_data.
Remove fdata field from SF_PRIVATE struct and replace it with codec_data.
2006-05-10 Erik de Castro Lopo <erikd AT mega-nerd DOT com>

View File

@ -305,7 +305,8 @@ main (int argc, char * argv [])
static void
copy_metadata (SNDFILE *outfile, SNDFILE *infile)
{ const char *str ;
{ SF_INSTRUMENT inst ;
const char *str ;
int k, err = 0 ;
for (k = SF_STR_FIRST ; k <= SF_STR_LAST ; k++)
@ -314,6 +315,10 @@ copy_metadata (SNDFILE *outfile, SNDFILE *infile)
err = sf_set_string (outfile, k, str) ;
} ;
memset (&inst, 0, sizeof (inst)) ;
if (sf_command (infile, SFC_GET_INSTRUMENT, &inst, sizeof (inst)) == SF_TRUE)
sf_command (outfile, SFC_SET_INSTRUMENT, &inst, sizeof (inst)) ;
} /* copy_metadata */
static void