Make try_dual_file_stereo static/local

This commit is contained in:
bnnm 2017-04-22 13:31:12 +02:00
parent c8f82e6f06
commit bb00cfa22c
2 changed files with 7 additions and 7 deletions

View File

@ -11,6 +11,12 @@
#include "layout/layout.h"
#include "coding/coding.h"
/* See if there is a second file which may be the second channel, given
* already opened mono opened_stream which was opened from filename.
* If a suitable file is found, open it and change opened_stream to a stereo stream. */
static void try_dual_file_stereo(VGMSTREAM * opened_stream, STREAMFILE *streamFile);
/*
* List of functions that will recognize files. These should correspond pretty
* directly to the metadata types
@ -2028,7 +2034,7 @@ const char * const dfs_pairs[][2] = {
};
#define DFS_PAIR_COUNT (sizeof(dfs_pairs)/sizeof(dfs_pairs[0]))
void try_dual_file_stereo(VGMSTREAM * opened_stream, STREAMFILE *streamFile) {
static void try_dual_file_stereo(VGMSTREAM * opened_stream, STREAMFILE *streamFile) {
char filename[PATH_LIMIT];
char filename2[PATH_LIMIT];
char * ext;

View File

@ -1064,12 +1064,6 @@ int vgmstream_samples_to_do(int samples_this_block, int samples_per_frame, VGMST
* Returns 1 if loop was done. */
int vgmstream_do_loop(VGMSTREAM * vgmstream);
/* See if there is a second file which may be the second channel, given
* already opened mono opened_stream which was opened from filename.
* If a suitable file is found, open it and change opened_stream to a stereo stream. */
void try_dual_file_stereo(VGMSTREAM * opened_stream, STREAMFILE *streamFile);
/* Open the stream for reading at offset (standarized taking into account layouts, channels and so on).
* returns 0 on failure */
int vgmstream_open_stream(VGMSTREAM * vgmstream, STREAMFILE *streamFile, off_t start_offset);