mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 08:34:40 +00:00
Update minimum requirements and libs
This updates the minimum required cmake version and the libs that have updates for this. Ogg updated to master as of 20052025 Libsndfile updated to master as of 20052025 Opus minimum cmake version changed vorbis minimum cmake version changed
This commit is contained in:
parent
8756e35853
commit
700bf32a2a
130 changed files with 4380 additions and 48121 deletions
|
|
@ -151,7 +151,7 @@ main (void)
|
|||
|
||||
|
||||
/*=================================================================================
|
||||
** The following routines came from the sox-12.15 (Sound eXcahcnge) distribution.
|
||||
** The following routines came from the sox-12.15 (Sound eXchange) distribution.
|
||||
**
|
||||
** This code is not compiled into libsndfile. It is only used to test the
|
||||
** libsndfile lookup tables for correctness.
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@
|
|||
#endif
|
||||
|
||||
/*
|
||||
** Neat solution to the Win32/OS2 binary file flage requirement.
|
||||
** Neat solution to the Win32/OS2 binary file flag requirement.
|
||||
** If O_BINARY isn't already defined by the inclusion of the system
|
||||
** headers, set it to zero.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -714,7 +714,7 @@ instrumet_rw_test (const char *filename)
|
|||
{ inst.basenote = 22 ;
|
||||
|
||||
if (sf_command (sndfile, SFC_SET_INSTRUMENT, &inst, sizeof (inst)) == SF_TRUE)
|
||||
printf ("Sucess: [%s] updated\n", filename) ;
|
||||
printf ("Success: [%s] updated\n", filename) ;
|
||||
else
|
||||
printf ("Error: SFC_SET_INSTRUMENT on [%s] [%s]\n", filename, sf_strerror (sndfile)) ;
|
||||
}
|
||||
|
|
@ -913,7 +913,7 @@ cue_rw_test (const char *filename)
|
|||
{ cues.cue_points [1].sample_offset = 3 ;
|
||||
|
||||
if (sf_command (sndfile, SFC_SET_CUE, &cues, sizeof (cues)) == SF_TRUE)
|
||||
printf ("Sucess: [%s] updated\n", filename) ;
|
||||
printf ("Success: [%s] updated\n", filename) ;
|
||||
else
|
||||
printf ("Error: SFC_SET_CUE on [%s] [%s]\n", filename, sf_strerror (sndfile)) ;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -175,7 +175,7 @@ compression_size_test (int format, const char * filename)
|
|||
|
||||
int
|
||||
main (int argc, char *argv [])
|
||||
{ int all_tests = 0, tests = 0 ;
|
||||
{ int all_tests = 0 ;
|
||||
|
||||
if (argc != 2)
|
||||
{ printf (
|
||||
|
|
@ -197,7 +197,6 @@ main (int argc, char *argv [])
|
|||
{ if (HAVE_EXTERNAL_XIPH_LIBS)
|
||||
{ vorbis_test () ;
|
||||
compression_size_test (SF_FORMAT_OGG | SF_FORMAT_VORBIS, "vorbis.oga") ;
|
||||
tests ++ ;
|
||||
}
|
||||
else
|
||||
puts (" No Ogg Vorbis tests because support was not compiled in.") ;
|
||||
|
|
@ -206,7 +205,6 @@ main (int argc, char *argv [])
|
|||
if (all_tests || strcmp (argv [1], "flac") == 0)
|
||||
{ if (HAVE_EXTERNAL_XIPH_LIBS)
|
||||
{ compression_size_test (SF_FORMAT_FLAC | SF_FORMAT_PCM_16, "pcm16.flac") ;
|
||||
tests ++ ;
|
||||
}
|
||||
else
|
||||
puts (" No FLAC tests because support was not compiled in.") ;
|
||||
|
|
@ -215,7 +213,6 @@ main (int argc, char *argv [])
|
|||
if (all_tests || strcmp (argv [1], "opus") == 0)
|
||||
{ if (HAVE_EXTERNAL_XIPH_LIBS)
|
||||
{ compression_size_test (SF_FORMAT_OGG | SF_FORMAT_OPUS, "opus.opus") ;
|
||||
tests ++ ;
|
||||
}
|
||||
else
|
||||
puts (" No Opus tests because support was not compiled in.") ;
|
||||
|
|
@ -224,7 +221,6 @@ main (int argc, char *argv [])
|
|||
if (all_tests || strcmp (argv [1], "mpeg") == 0)
|
||||
{ if (HAVE_MPEG)
|
||||
{ compression_size_test (SF_FORMAT_MPEG | SF_FORMAT_MPEG_LAYER_III, "mpeg.mp3") ;
|
||||
tests ++ ;
|
||||
}
|
||||
else
|
||||
puts (" No MPEG tests because support was not compiled in.") ;
|
||||
|
|
|
|||
|
|
@ -293,7 +293,7 @@ filesystem_full_test (int format)
|
|||
sfinfo.frames = 0 ;
|
||||
|
||||
if ((file = sf_open (filename, SFM_WRITE, &sfinfo)) != NULL)
|
||||
{ printf ("\n\nLine %d : Error, file should not have openned.\n", __LINE__ - 1) ;
|
||||
{ printf ("\n\nLine %d : Error, file should not have opened.\n", __LINE__ - 1) ;
|
||||
exit (1) ;
|
||||
} ;
|
||||
|
||||
|
|
|
|||
|
|
@ -79,7 +79,6 @@ static int verbose = SF_FALSE ;
|
|||
int
|
||||
main (int argc, char **argv)
|
||||
{ int do_all = 0 ;
|
||||
int test_count = 0 ;
|
||||
|
||||
if (argc == 3 && strcmp (argv [2], "-v") == 0)
|
||||
{ verbose = SF_TRUE ;
|
||||
|
|
@ -107,17 +106,14 @@ main (int argc, char **argv)
|
|||
|
||||
if (do_all || ! strcmp (argv [1], "wav"))
|
||||
{ multi_file_test ("multi_wav.dat", wav_formats, ARRAY_LEN (wav_formats)) ;
|
||||
test_count++ ;
|
||||
} ;
|
||||
|
||||
if (do_all || ! strcmp (argv [1], "aiff"))
|
||||
{ multi_file_test ("multi_aiff.dat", aiff_formats, ARRAY_LEN (aiff_formats)) ;
|
||||
test_count++ ;
|
||||
} ;
|
||||
|
||||
if (do_all || ! strcmp (argv [1], "au"))
|
||||
{ multi_file_test ("multi_au.dat", au_formats, ARRAY_LEN (au_formats)) ;
|
||||
test_count++ ;
|
||||
} ;
|
||||
|
||||
return 0 ;
|
||||
|
|
@ -235,4 +231,3 @@ write_file_at_end (int fd, int filetype, int channels, int file_num)
|
|||
|
||||
sf_close (sndfile) ;
|
||||
} /* write_file_at_end */
|
||||
|
||||
|
|
|
|||
|
|
@ -339,7 +339,7 @@ read_write_peak_test (const char *filename, int filetype)
|
|||
|
||||
sf_close (file) ;
|
||||
|
||||
/* Open the fiel RDWR, write sample valied 1.25. */
|
||||
/* Open the file RDWR, write sample valid 1.25. */
|
||||
file = test_open_file_or_die (filename, SFM_RDWR, &sfinfo, SF_FALSE, __LINE__) ;
|
||||
|
||||
for (k = 0 ; k < ARRAY_LEN (small_data) ; k ++)
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ main (int argc, char *argv [])
|
|||
} ;
|
||||
|
||||
printf ("Total : %d\n", total) ;
|
||||
printf ("Maximun value : %d\n", max) ;
|
||||
printf ("Maximum value : %d\n", max) ;
|
||||
|
||||
sf_close (file) ;
|
||||
|
||||
|
|
|
|||
|
|
@ -152,7 +152,7 @@ main (void)
|
|||
|
||||
|
||||
/*=================================================================================
|
||||
** The following routines came from the sox-12.15 (Sound eXcahcnge) distribution.
|
||||
** The following routines came from the sox-12.15 (Sound eXchange) distribution.
|
||||
**
|
||||
** This code is not compiled into libsndfile. It is only used to test the
|
||||
** libsndfile lookup tables for correctness.
|
||||
|
|
|
|||
|
|
@ -208,7 +208,7 @@ sf_count_t file_length_fd (int fd) ;
|
|||
#define LOG_BUFFER_SIZE 4096
|
||||
|
||||
/*
|
||||
** Neat solution to the Win32/OS2 binary file flage requirement.
|
||||
** Neat solution to the Win32/OS2 binary file flag requirement.
|
||||
** If O_BINARY isn't already defined by the inclusion of the system
|
||||
** headers, set it to zero.
|
||||
*/
|
||||
|
|
@ -426,8 +426,8 @@ check_log_buffer_or_die (SNDFILE *file, int line_num)
|
|||
} ;
|
||||
|
||||
/* Look for "Should" */
|
||||
if (strstr (buffer, "nknown marker"))
|
||||
{ printf ("\n\nLine %d : Log buffer contains `nknown marker'. Dumping.\n", line_num) ;
|
||||
if (strstr (buffer, "unknown marker"))
|
||||
{ printf ("\n\nLine %d : Log buffer contains `unknown marker'. Dumping.\n", line_num) ;
|
||||
puts (buffer) ;
|
||||
exit (1) ;
|
||||
} ;
|
||||
|
|
|
|||
|
|
@ -244,7 +244,7 @@ show_stat_fstat_error (void)
|
|||
|
||||
assert (write (fd, data, sizeof (data)) > 0) ;
|
||||
|
||||
printf ("1) Now call stat and fstat on the file and retreive the file lengths.\n") ;
|
||||
printf ("1) Now call stat and fstat on the file and retrieve the file lengths.\n") ;
|
||||
|
||||
if (stat (filename, &buf) != 0)
|
||||
{ printf ("\n\nLine %d: stat() failed : %s\n\n", __LINE__, strerror (errno)) ;
|
||||
|
|
|
|||
|
|
@ -856,7 +856,7 @@ mono_rdwr_[+ (get "type_name") +]_test (const char *filename, int format, int lo
|
|||
create_short_file (filename) ;
|
||||
|
||||
/* Opening a already existing short file (ie invalid header) RDWR is disallowed.
|
||||
** If this returns a valif pointer sf_open() screwed up.
|
||||
** If this returns a valid pointer sf_open() screwed up.
|
||||
*/
|
||||
if ((file = sf_open (filename, SFM_RDWR, &sfinfo)))
|
||||
{ printf ("\n\nLine %d: sf_open should (SFM_RDWR) have failed but didn't.\n", __LINE__) ;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue