2008-05-26 15:29:21 +02:00
|
|
|
/* Winamp plugin interface for vgmstream */
|
|
|
|
/* Based on: */
|
|
|
|
/*
|
|
|
|
** Example Winamp .RAW input plug-in
|
|
|
|
** Copyright (c) 1998, Justin Frankel/Nullsoft Inc.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifdef _MSC_VER
|
|
|
|
#define _CRT_SECURE_NO_DEPRECATE
|
|
|
|
#endif
|
|
|
|
#include <windows.h>
|
|
|
|
#include <windowsx.h>
|
|
|
|
#include <commctrl.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <io.h>
|
|
|
|
|
|
|
|
#include <foobar2000.h>
|
|
|
|
#include <helpers.h>
|
|
|
|
#include <shared.h>
|
|
|
|
|
|
|
|
extern "C" {
|
|
|
|
#include "../src/vgmstream.h"
|
|
|
|
#include "../src/util.h"
|
|
|
|
}
|
|
|
|
#include "foo_vgmstream.h"
|
2010-10-27 14:28:32 +02:00
|
|
|
#include "version.h"
|
2008-05-26 15:29:21 +02:00
|
|
|
|
|
|
|
#ifndef VERSION
|
2010-10-27 14:28:32 +02:00
|
|
|
#define PLUGIN_VERSION __DATE__
|
|
|
|
#else
|
|
|
|
#define PLUGIN_VERSION VERSION
|
2008-05-26 15:29:21 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#define APP_NAME "vgmstream plugin"
|
2010-02-28 02:51:36 +01:00
|
|
|
#define PLUGIN_DESCRIPTION "vgmstream plugin " VERSION " " __DATE__ "\n" \
|
|
|
|
"by hcs, FastElbja, manakoAT, and bxaimc\n" \
|
2010-10-22 09:35:00 +02:00
|
|
|
"foobar2000 plugin by Josh W, kode54\n\n" \
|
2010-02-28 02:51:36 +01:00
|
|
|
"http://sourceforge.net/projects/vgmstream"
|
2010-10-27 14:28:32 +02:00
|
|
|
|
2008-05-26 15:29:21 +02:00
|
|
|
|
2010-02-26 08:45:06 +01:00
|
|
|
|
2008-05-26 15:29:21 +02:00
|
|
|
/* format detection and VGMSTREAM setup, uses default parameters */
|
2010-02-26 08:45:06 +01:00
|
|
|
VGMSTREAM * input_vgmstream::init_vgmstream_foo(const char * const filename, abort_callback & p_abort) {
|
|
|
|
VGMSTREAM *vgmstream = NULL;
|
|
|
|
|
|
|
|
STREAMFILE *streamFile = open_foo_streamfile(filename, &p_abort, &stats);
|
|
|
|
if (streamFile) {
|
|
|
|
vgmstream = init_vgmstream_from_STREAMFILE(streamFile);
|
|
|
|
close_streamfile(streamFile);
|
|
|
|
}
|
|
|
|
return vgmstream;
|
2008-05-26 15:29:21 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2010-02-26 08:45:06 +01:00
|
|
|
void input_vgmstream::open(service_ptr_t<file> p_filehint,const char * p_path,t_input_open_reason p_reason,abort_callback & p_abort) {
|
2008-05-26 15:29:21 +02:00
|
|
|
|
2010-02-26 08:45:06 +01:00
|
|
|
currentreason = p_reason;
|
2013-05-27 05:55:50 +02:00
|
|
|
if(p_path) filename = p_path;
|
2008-05-26 15:29:21 +02:00
|
|
|
|
2011-02-13 04:58:50 +01:00
|
|
|
/* KLUDGE */
|
|
|
|
if ( !pfc::stricmp_ascii( pfc::string_extension( p_path ), "MUS" ) )
|
|
|
|
{
|
|
|
|
unsigned char buffer[ 4 ];
|
|
|
|
if ( p_filehint.is_empty() ) input_open_file_helper( p_filehint, p_path, p_reason, p_abort );
|
|
|
|
p_filehint->read_object_t( buffer, p_abort );
|
|
|
|
if ( !memcmp( buffer, "MUS\x1A", 4 ) ) throw exception_io_unsupported_format();
|
|
|
|
}
|
|
|
|
|
2010-02-26 08:45:06 +01:00
|
|
|
switch(p_reason) {
|
|
|
|
case input_open_decode:
|
|
|
|
vgmstream = init_vgmstream_foo(p_path, p_abort);
|
2008-05-26 15:29:21 +02:00
|
|
|
|
2010-02-26 08:45:06 +01:00
|
|
|
/* were we able to open it? */
|
|
|
|
if (!vgmstream) {
|
2010-03-03 05:05:18 +01:00
|
|
|
/* Generate exception if the file is unopenable*/
|
|
|
|
throw exception_io_data();
|
2010-02-26 08:45:06 +01:00
|
|
|
return;
|
|
|
|
}
|
2008-05-26 15:29:21 +02:00
|
|
|
|
2010-02-26 08:45:06 +01:00
|
|
|
if (ignore_loop) vgmstream->loop_flag = 0;
|
2008-05-26 15:29:21 +02:00
|
|
|
|
2010-02-26 08:45:06 +01:00
|
|
|
/* will we be able to play it? */
|
2008-05-26 15:29:21 +02:00
|
|
|
|
2010-02-26 08:45:06 +01:00
|
|
|
if (vgmstream->channels <= 0) {
|
|
|
|
close_vgmstream(vgmstream);
|
|
|
|
vgmstream=NULL;
|
2010-03-16 11:41:40 +01:00
|
|
|
throw exception_io_data();
|
2010-02-26 08:45:06 +01:00
|
|
|
return;
|
|
|
|
}
|
2008-05-26 15:29:21 +02:00
|
|
|
|
2010-02-26 08:45:06 +01:00
|
|
|
decode_pos_ms = 0;
|
|
|
|
decode_pos_samples = 0;
|
|
|
|
paused = 0;
|
|
|
|
stream_length_samples = get_vgmstream_play_samples(loop_count,fade_seconds,fade_delay_seconds,vgmstream);
|
2008-05-26 15:29:21 +02:00
|
|
|
|
2010-02-26 08:45:06 +01:00
|
|
|
fade_samples = (int)(fade_seconds * vgmstream->sample_rate);
|
2008-05-26 15:29:21 +02:00
|
|
|
|
2010-02-26 08:45:06 +01:00
|
|
|
break;
|
2008-05-26 15:29:21 +02:00
|
|
|
|
2010-02-26 08:45:06 +01:00
|
|
|
case input_open_info_read:
|
2010-10-22 09:35:00 +02:00
|
|
|
if ( p_filehint.is_empty() ) input_open_file_helper( p_filehint, p_path, p_reason, p_abort );
|
|
|
|
stats = p_filehint->get_stats( p_abort );
|
2010-02-26 08:45:06 +01:00
|
|
|
break;
|
2008-05-26 15:29:21 +02:00
|
|
|
|
2010-02-26 08:45:06 +01:00
|
|
|
case input_open_info_write:
|
|
|
|
//cant write...ever
|
2010-10-22 09:35:00 +02:00
|
|
|
throw exception_io_data();
|
2010-02-26 08:45:06 +01:00
|
|
|
break;
|
2008-05-26 15:29:21 +02:00
|
|
|
|
2010-02-26 08:45:06 +01:00
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
2008-05-26 15:29:21 +02:00
|
|
|
|
2010-02-26 08:45:06 +01:00
|
|
|
void input_vgmstream::get_info(file_info & p_info,abort_callback & p_abort ) {
|
|
|
|
int length_in_ms=0, channels = 0, samplerate = 0;
|
2010-10-22 09:35:00 +02:00
|
|
|
int total_samples = -1;
|
2015-02-09 04:08:40 +01:00
|
|
|
int bitrate = 0;
|
2010-10-22 09:35:00 +02:00
|
|
|
int loop_start = -1, loop_end = -1;
|
2008-05-26 15:29:21 +02:00
|
|
|
|
2015-02-09 04:08:40 +01:00
|
|
|
getfileinfo(filename, NULL, &length_in_ms, &total_samples, &loop_start, &loop_end, &samplerate, &channels, &bitrate, p_abort);
|
2008-05-26 15:29:21 +02:00
|
|
|
|
2010-02-26 08:45:06 +01:00
|
|
|
p_info.info_set_int("samplerate", samplerate);
|
|
|
|
p_info.info_set_int("channels", channels);
|
|
|
|
p_info.info_set_int("bitspersample",16);
|
|
|
|
p_info.info_set("encoding","lossless");
|
2015-02-09 04:08:40 +01:00
|
|
|
p_info.info_set_bitrate(bitrate / 1000);
|
2010-10-22 09:35:00 +02:00
|
|
|
if (total_samples > 0)
|
|
|
|
p_info.info_set_int("stream_total_samples", total_samples);
|
|
|
|
if (loop_start >= 0 && loop_end >= loop_start)
|
|
|
|
{
|
|
|
|
p_info.info_set_int("loop_start", loop_start);
|
|
|
|
p_info.info_set_int("loop_end", loop_end);
|
|
|
|
}
|
2008-05-26 15:29:21 +02:00
|
|
|
|
2010-02-26 08:45:06 +01:00
|
|
|
p_info.set_length(((double)length_in_ms)/1000);
|
|
|
|
}
|
2008-05-26 15:29:21 +02:00
|
|
|
|
2010-02-26 08:45:06 +01:00
|
|
|
void input_vgmstream::decode_initialize(unsigned p_flags,abort_callback & p_abort) {
|
2010-10-22 09:35:00 +02:00
|
|
|
if (p_flags & input_flag_no_looping) loop_forever = false;
|
|
|
|
decode_seek( 0, p_abort );
|
2010-02-26 08:45:06 +01:00
|
|
|
};
|
2008-05-26 15:29:21 +02:00
|
|
|
|
2010-02-26 08:45:06 +01:00
|
|
|
bool input_vgmstream::decode_run(audio_chunk & p_chunk,abort_callback & p_abort) {
|
2010-02-27 22:05:57 +01:00
|
|
|
int max_buffer_samples = sizeof(sample_buffer)/sizeof(sample_buffer[0])/vgmstream->channels;
|
|
|
|
int l = 0, samples_to_do = max_buffer_samples, t= 0;
|
2008-05-26 15:29:21 +02:00
|
|
|
|
2010-02-26 08:45:06 +01:00
|
|
|
if(vgmstream) {
|
2010-02-27 22:05:57 +01:00
|
|
|
if (decode_pos_samples+max_buffer_samples>stream_length_samples && (!loop_forever || !vgmstream->loop_flag))
|
2010-02-26 08:45:06 +01:00
|
|
|
samples_to_do=stream_length_samples-decode_pos_samples;
|
|
|
|
else
|
2010-02-27 22:05:57 +01:00
|
|
|
samples_to_do=max_buffer_samples;
|
2008-05-26 15:29:21 +02:00
|
|
|
|
2010-02-27 22:05:57 +01:00
|
|
|
l = (samples_to_do*vgmstream->channels * sizeof(sample_buffer[0]));
|
2008-05-26 15:29:21 +02:00
|
|
|
|
2010-02-26 08:45:06 +01:00
|
|
|
if (samples_to_do /*< DECODE_SIZE*/ == 0) {
|
|
|
|
decoding = false;
|
|
|
|
return false;
|
|
|
|
}
|
2008-05-26 15:29:21 +02:00
|
|
|
|
2010-02-26 08:45:06 +01:00
|
|
|
t = ((test_length*vgmstream->sample_rate)/1000);
|
|
|
|
|
|
|
|
render_vgmstream(sample_buffer,samples_to_do,vgmstream);
|
|
|
|
|
|
|
|
/* fade! */
|
|
|
|
if (vgmstream->loop_flag && fade_samples > 0 && !loop_forever) {
|
|
|
|
int samples_into_fade = decode_pos_samples - (stream_length_samples - fade_samples);
|
|
|
|
if (samples_into_fade + samples_to_do > 0) {
|
|
|
|
int j,k;
|
|
|
|
for (j=0;j<samples_to_do;j++,samples_into_fade++) {
|
|
|
|
if (samples_into_fade > 0) {
|
|
|
|
double fadedness = (double)(fade_samples-samples_into_fade)/fade_samples;
|
|
|
|
for (k=0;k<vgmstream->channels;k++) {
|
|
|
|
sample_buffer[j*vgmstream->channels+k] =
|
|
|
|
(short)(sample_buffer[j*vgmstream->channels+k]*fadedness);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2008-05-26 15:29:21 +02:00
|
|
|
|
2010-02-26 08:45:06 +01:00
|
|
|
p_chunk.set_data_fixedpoint((char*)sample_buffer, l, vgmstream->sample_rate,vgmstream->channels,16,audio_chunk::g_guess_channel_config(vgmstream->channels));
|
2008-05-26 15:29:21 +02:00
|
|
|
|
2010-02-26 08:45:06 +01:00
|
|
|
decode_pos_samples+=samples_to_do;
|
|
|
|
decode_pos_ms=decode_pos_samples*1000LL/vgmstream->sample_rate;
|
2008-05-26 15:29:21 +02:00
|
|
|
|
2010-02-26 08:45:06 +01:00
|
|
|
decoding = false;
|
2010-02-27 22:05:57 +01:00
|
|
|
return samples_to_do==max_buffer_samples;
|
2008-05-26 15:29:21 +02:00
|
|
|
|
2010-02-26 08:45:06 +01:00
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
2008-05-26 15:29:21 +02:00
|
|
|
|
2010-02-26 08:45:06 +01:00
|
|
|
void input_vgmstream::decode_seek(double p_seconds,abort_callback & p_abort) {
|
|
|
|
seek_pos_samples = ((int)(p_seconds * (double)vgmstream->sample_rate));
|
2010-02-27 22:05:57 +01:00
|
|
|
int max_buffer_samples = sizeof(sample_buffer)/sizeof(sample_buffer[0])/vgmstream->channels;
|
2008-05-26 15:29:21 +02:00
|
|
|
|
2010-10-27 14:28:32 +02:00
|
|
|
// adjust for correct position within loop
|
2013-07-05 20:46:49 +02:00
|
|
|
if(vgmstream->loop_flag && (vgmstream->loop_end_sample - vgmstream->loop_start_sample) && seek_pos_samples >= vgmstream->loop_end_sample) {
|
2010-10-27 14:28:32 +02:00
|
|
|
seek_pos_samples -= vgmstream->loop_start_sample;
|
|
|
|
seek_pos_samples %= (vgmstream->loop_end_sample - vgmstream->loop_start_sample);
|
|
|
|
seek_pos_samples += vgmstream->loop_start_sample;
|
|
|
|
}
|
|
|
|
|
2010-02-26 08:45:06 +01:00
|
|
|
// Reset of backwards seek
|
|
|
|
if(seek_pos_samples < decode_pos_samples) {
|
|
|
|
reset_vgmstream(vgmstream);
|
|
|
|
if (ignore_loop) vgmstream->loop_flag = 0;
|
|
|
|
decode_pos_samples = 0;
|
|
|
|
}
|
2010-10-27 14:28:32 +02:00
|
|
|
|
2010-02-26 08:45:06 +01:00
|
|
|
// seeking overrun = bad
|
|
|
|
if(seek_pos_samples > stream_length_samples) seek_pos_samples = stream_length_samples;
|
2008-05-26 15:29:21 +02:00
|
|
|
|
2010-02-27 22:05:57 +01:00
|
|
|
while(decode_pos_samples+max_buffer_samples<seek_pos_samples) {
|
|
|
|
int seek_samples = max_buffer_samples;
|
|
|
|
if((decode_pos_samples+max_buffer_samples>=stream_length_samples) && (!loop_forever || !vgmstream->loop_flag))
|
2010-02-26 08:45:06 +01:00
|
|
|
seek_samples=stream_length_samples-seek_pos_samples;
|
2008-05-26 15:29:21 +02:00
|
|
|
|
2010-02-26 08:45:06 +01:00
|
|
|
decode_pos_samples+=seek_samples;
|
|
|
|
render_vgmstream(sample_buffer,seek_samples,vgmstream);
|
|
|
|
}
|
2008-05-26 15:29:21 +02:00
|
|
|
|
2010-02-26 08:45:06 +01:00
|
|
|
decode_pos_ms=decode_pos_samples*1000LL/vgmstream->sample_rate;
|
|
|
|
}
|
2008-05-26 15:29:21 +02:00
|
|
|
|
2010-02-28 02:51:36 +01:00
|
|
|
|
2010-02-26 08:45:06 +01:00
|
|
|
input_vgmstream::input_vgmstream() {
|
|
|
|
vgmstream = NULL;
|
|
|
|
paused = 0;
|
|
|
|
decode_pos_ms = 0;
|
|
|
|
decode_pos_samples = 0;
|
|
|
|
stream_length_samples = 0;
|
|
|
|
fade_samples = 0;
|
|
|
|
fade_seconds = 10.0f;
|
|
|
|
fade_delay_seconds = 0.0f;
|
|
|
|
loop_count = 2.0f;
|
|
|
|
loop_forever = false;
|
|
|
|
ignore_loop = 0;
|
|
|
|
decoding = false;
|
|
|
|
seek_pos_samples = 0;
|
2010-02-28 02:51:36 +01:00
|
|
|
load_settings();
|
2010-02-26 08:45:06 +01:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
input_vgmstream::~input_vgmstream() {
|
2010-03-03 05:05:18 +01:00
|
|
|
if(vgmstream)
|
|
|
|
close_vgmstream(vgmstream);
|
|
|
|
vgmstream=NULL;
|
2010-02-26 08:45:06 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
t_filestats input_vgmstream::get_file_stats(abort_callback & p_abort) {
|
|
|
|
return stats;
|
|
|
|
}
|
|
|
|
|
2010-02-26 17:45:52 +01:00
|
|
|
bool input_vgmstream::decode_can_seek() {return true;}
|
2010-02-26 08:45:06 +01:00
|
|
|
bool input_vgmstream::decode_get_dynamic_info(file_info & p_out, double & p_timestamp_delta) {
|
|
|
|
//do we need anything else 'cept the samplrate
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
bool input_vgmstream::decode_get_dynamic_info_track(file_info & p_out, double & p_timestamp_delta) {return false;}
|
|
|
|
void input_vgmstream::decode_on_idle(abort_callback & p_abort) {/*m_file->on_idle(p_abort);*/}
|
|
|
|
|
|
|
|
void input_vgmstream::retag(const file_info & p_info,abort_callback & p_abort) {};
|
|
|
|
|
|
|
|
bool input_vgmstream::g_is_our_content_type(const char * p_content_type) {return false;}
|
|
|
|
bool input_vgmstream::g_is_our_path(const char * p_path,const char * p_extension) {
|
2010-06-29 17:52:07 +02:00
|
|
|
if(!stricmp_utf8(p_extension,"2dx9")) return 1;
|
2012-08-15 05:41:24 +02:00
|
|
|
if(!stricmp_utf8(p_extension,"2pfs")) return 1;
|
2010-02-26 08:45:06 +01:00
|
|
|
|
2010-02-28 02:51:36 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"aaap")) return 1;
|
2010-02-26 08:45:06 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"aax")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"acm")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"adpcm")) return 1;
|
2010-05-03 17:52:29 +02:00
|
|
|
if(!stricmp_utf8(p_extension,"adm")) return 1;
|
2010-02-26 08:45:06 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"adp")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"ads")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"adx")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"afc")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"agsc")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"ahx")) return 1;
|
2010-02-27 22:05:57 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"aic")) return 1;
|
2010-02-26 08:45:06 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"aix")) return 1;
|
2012-08-30 14:35:12 +02:00
|
|
|
if(!stricmp_utf8(p_extension,"akb")) return 1;
|
2010-02-26 08:45:06 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"amts")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"as4")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"asd")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"asf")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"ast")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"asr")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"ass")) return 1;
|
2013-06-26 11:54:15 +02:00
|
|
|
if(!stricmp_utf8(p_extension,"at3")) return 1;
|
2010-02-26 08:45:06 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"aud")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"aus")) return 1;
|
|
|
|
|
|
|
|
if(!stricmp_utf8(p_extension,"baka")) return 1;
|
2010-09-11 22:57:39 +02:00
|
|
|
if(!stricmp_utf8(p_extension,"baf")) return 1;
|
2010-06-13 06:41:26 +02:00
|
|
|
if(!stricmp_utf8(p_extension,"bar")) return 1;
|
2014-02-26 07:31:28 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"bcstm")) return 1;
|
2012-08-28 07:08:46 +02:00
|
|
|
if(!stricmp_utf8(p_extension,"bcwav")) return 1;
|
2014-10-18 23:54:31 +02:00
|
|
|
if(!stricmp_utf8(p_extension,"bfstm")) return 1;
|
2014-08-03 01:10:45 +02:00
|
|
|
if(!stricmp_utf8(p_extension,"bfwav")) return 1;
|
2014-10-18 23:54:31 +02:00
|
|
|
if(!stricmp_utf8(p_extension,"bfwavnsmbu")) return 1;
|
2010-02-26 08:45:06 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"bg00")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"bgw")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"bh2pcm")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"bmdx")) return 1;
|
2012-08-28 07:08:46 +02:00
|
|
|
if(!stricmp_utf8(p_extension,"bms")) return 1;
|
2011-03-24 03:29:09 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"bnk")) return 1;
|
2010-02-26 08:45:06 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"bns")) return 1;
|
2010-03-23 21:57:12 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"bnsf")) return 1;
|
2010-04-20 23:07:45 +02:00
|
|
|
if(!stricmp_utf8(p_extension,"bo2")) return 1;
|
2010-02-26 08:45:06 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"brstmspm")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"brstm")) return 1;
|
2015-01-22 01:28:43 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"btsnd")) return 1;
|
2011-02-16 07:57:19 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"bvg")) return 1;
|
2010-02-26 08:45:06 +01:00
|
|
|
|
|
|
|
if(!stricmp_utf8(p_extension,"caf")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"capdsp")) return 1;
|
2010-07-27 14:24:03 +02:00
|
|
|
if(!stricmp_utf8(p_extension,"cbd2")) return 1;
|
2010-02-26 08:45:06 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"ccc")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"cfn")) return 1;
|
2013-09-03 20:14:14 +02:00
|
|
|
if(!stricmp_utf8(p_extension,"ckd")) return 1;
|
2010-02-26 08:45:06 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"cnk")) return 1;
|
2010-09-10 01:47:27 +02:00
|
|
|
if(!stricmp_utf8(p_extension,"cps")) return 1;
|
2010-02-26 08:45:06 +01:00
|
|
|
|
|
|
|
if(!stricmp_utf8(p_extension,"dcs")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"de2")) return 1;
|
2010-04-20 23:07:45 +02:00
|
|
|
if(!stricmp_utf8(p_extension,"ddsp")) return 1;
|
2010-02-26 08:45:06 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"dmsg")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"dsp")) return 1;
|
2010-08-04 21:37:33 +02:00
|
|
|
if(!stricmp_utf8(p_extension,"dspw")) return 1;
|
2010-02-26 08:45:06 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"dtk")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"dvi")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"dxh")) return 1;
|
|
|
|
|
|
|
|
if(!stricmp_utf8(p_extension,"eam")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"emff")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"enth")) return 1;
|
|
|
|
|
|
|
|
if(!stricmp_utf8(p_extension,"fag")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"filp")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"fsb")) return 1;
|
2014-10-20 01:47:04 +02:00
|
|
|
if(!stricmp_utf8(p_extension,"fwav")) return 1;
|
2010-02-26 08:45:06 +01:00
|
|
|
|
2014-10-19 23:10:31 +02:00
|
|
|
if(!stricmp_utf8(p_extension,"g1l")) return 1;
|
2010-02-26 08:45:06 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"gbts")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"gca")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"gcm")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"gcub")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"gcw")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"genh")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"gms")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"gsb")) return 1;
|
|
|
|
|
2016-06-28 09:28:29 +02:00
|
|
|
if(!stricmp_utf8(p_extension, "hca")) return 1;
|
2010-02-26 08:45:06 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"hgc1")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"his")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"hlwav")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"hps")) return 1;
|
2012-03-21 04:30:36 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"hsf")) return 1;
|
2010-02-26 08:45:06 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"hwas")) return 1;
|
|
|
|
|
2010-12-06 23:22:06 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"iab")) return 1;
|
2010-02-26 08:45:06 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"idsp")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"idvi")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"ikm")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"ild")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"int")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"isd")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"isws")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"ivaud")) return 1;
|
2012-04-14 18:07:21 +02:00
|
|
|
if(!stricmp_utf8(p_extension,"ivag")) return 1;
|
2010-02-26 08:45:06 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"ivb")) return 1;
|
|
|
|
|
|
|
|
if(!stricmp_utf8(p_extension,"joe")) return 1;
|
2010-08-28 04:14:19 +02:00
|
|
|
if(!stricmp_utf8(p_extension,"jstm")) return 1;
|
2010-02-26 08:45:06 +01:00
|
|
|
|
|
|
|
if(!stricmp_utf8(p_extension,"kces")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"kcey")) return 1;
|
2010-04-20 23:07:45 +02:00
|
|
|
if(!stricmp_utf8(p_extension,"khv")) return 1;
|
2010-12-11 07:42:42 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"kovs")) return 1;
|
2010-02-26 08:45:06 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"kraw")) return 1;
|
|
|
|
|
|
|
|
if(!stricmp_utf8(p_extension,"leg")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"logg")) return 1;
|
2010-04-30 04:35:26 +02:00
|
|
|
if(!stricmp_utf8(p_extension,"lpcm")) return 1;
|
2010-02-26 08:45:06 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"lps")) return 1;
|
2011-01-13 09:11:58 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"lsf")) return 1;
|
2010-02-26 08:45:06 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"lwav")) return 1;
|
|
|
|
|
|
|
|
if(!stricmp_utf8(p_extension,"matx")) return 1;
|
2015-01-22 01:28:43 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"mca")) return 1;
|
2010-02-26 08:45:06 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"mcg")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"mi4")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"mib")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"mic")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"mihb")) return 1;
|
2011-07-22 07:32:10 +02:00
|
|
|
if(!stricmp_utf8(p_extension,"mnstr")) return 1;
|
2010-02-26 08:45:06 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"mpdsp")) return 1;
|
2010-04-20 23:07:45 +02:00
|
|
|
if(!stricmp_utf8(p_extension,"mpds")) return 1;
|
2010-04-01 11:54:31 +02:00
|
|
|
if(!stricmp_utf8(p_extension,"msa")) return 1;
|
2010-10-12 02:16:49 +02:00
|
|
|
if(!stricmp_utf8(p_extension,"msf")) return 1;
|
2010-02-26 08:45:06 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"mss")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"msvp")) return 1;
|
2010-12-04 00:21:36 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"mtaf")) return 1;
|
2010-02-26 08:45:06 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"mus")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"musc")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"musx")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"mwv")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"mxst")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"myspd")) return 1;
|
|
|
|
|
|
|
|
if(!stricmp_utf8(p_extension,"ndp")) return 1;
|
2010-11-09 05:21:22 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"ngca")) return 1;
|
2010-02-26 08:45:06 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"npsf")) return 1;
|
2014-12-14 02:39:30 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"nus3bank")) return 1;
|
2010-02-26 08:45:06 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"nwa")) return 1;
|
|
|
|
|
|
|
|
if(!stricmp_utf8(p_extension,"omu")) return 1;
|
2014-02-26 07:25:02 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"otm")) return 1;
|
2010-02-26 08:45:06 +01:00
|
|
|
|
|
|
|
if(!stricmp_utf8(p_extension,"p2bt")) return 1;
|
2010-04-10 14:06:25 +02:00
|
|
|
if(!stricmp_utf8(p_extension,"p3d")) return 1;
|
2010-10-12 02:16:49 +02:00
|
|
|
if(!stricmp_utf8(p_extension,"past")) return 1;
|
2010-02-26 08:45:06 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"pcm")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"pdt")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"pnb")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"pona")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"pos")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"ps2stm")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"psh")) return 1;
|
2011-02-19 03:59:42 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"psnd")) return 1;
|
2010-02-26 08:45:06 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"psw")) return 1;
|
|
|
|
|
2010-11-22 02:45:39 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"ras")) return 1;
|
2010-02-26 08:45:06 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"raw")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"rkv")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"rnd")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"rrds")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"rsd")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"rsf")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"rstm")) return 1;
|
2010-04-20 23:07:45 +02:00
|
|
|
if(!stricmp_utf8(p_extension,"rvws")) return 1;
|
2010-02-26 08:45:06 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"rwar")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"rwav")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"rws")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"rwsd")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"rwx")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"rxw")) return 1;
|
|
|
|
|
2010-03-23 21:57:12 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"s14")) return 1;
|
2010-02-26 08:45:06 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"sab")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"sad")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"sap")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"sc")) return 1;
|
2010-09-11 01:56:39 +02:00
|
|
|
if(!stricmp_utf8(p_extension,"scd")) return 1;
|
2010-02-26 08:45:06 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"sck")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"sd9")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"sdt")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"seg")) return 1;
|
2011-03-03 10:03:18 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"sf0")) return 1;
|
2010-02-26 08:45:06 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"sfl")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"sfs")) return 1;
|
2011-03-03 10:03:18 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"sfx")) return 1;
|
2010-10-19 04:16:08 +02:00
|
|
|
if(!stricmp_utf8(p_extension,"sgb")) return 1;
|
2011-05-31 17:01:04 +02:00
|
|
|
if(!stricmp_utf8(p_extension,"sgd")) return 1;
|
2010-02-26 08:45:06 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"sl3")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"sli")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"smp")) return 1;
|
2010-04-01 11:54:31 +02:00
|
|
|
if(!stricmp_utf8(p_extension,"smpl")) return 1;
|
2010-02-26 08:45:06 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"snd")) return 1;
|
2011-02-06 10:49:57 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"snds")) return 1;
|
2010-02-26 08:45:06 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"sng")) return 1;
|
2010-03-15 05:33:22 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"sns")) return 1;
|
2010-02-26 08:45:06 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"spd")) return 1;
|
2010-11-29 03:02:27 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"spm")) return 1;
|
2010-02-26 08:45:06 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"sps")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"spsd")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"spw")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"ss2")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"ss3")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"ss7")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"ssm")) return 1;
|
2010-03-23 21:57:12 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"sss")) return 1;
|
2010-03-16 11:41:40 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"ster")) return 1;
|
2010-02-26 08:45:06 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"stma")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"str")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"strm")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"sts")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"stx")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"svag")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"svs")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"swav")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"swd")) return 1;
|
|
|
|
|
|
|
|
if(!stricmp_utf8(p_extension,"tec")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"thp")) return 1;
|
2010-04-12 13:28:00 +02:00
|
|
|
if(!stricmp_utf8(p_extension,"tk1")) return 1;
|
2010-02-26 08:45:06 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"tk5")) return 1;
|
2010-12-04 00:21:36 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"tra")) return 1;
|
2011-05-18 22:33:00 +02:00
|
|
|
if(!stricmp_utf8(p_extension,"tun")) return 1;
|
2010-02-26 08:45:06 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"tydsp")) return 1;
|
|
|
|
|
|
|
|
if(!stricmp_utf8(p_extension,"um3")) return 1;
|
|
|
|
|
|
|
|
if(!stricmp_utf8(p_extension,"vag")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"vas")) return 1;
|
2011-01-17 22:22:10 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"vawx")) return 1;
|
2010-02-26 08:45:06 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"vb")) return 1;
|
2013-09-03 20:27:36 +02:00
|
|
|
if(!stricmp_utf8(p_extension,"vbk")) return 1;
|
2010-02-26 08:45:06 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"vgs")) return 1;
|
2010-04-20 23:07:45 +02:00
|
|
|
if(!stricmp_utf8(p_extension,"vgv")) return 1;
|
2010-02-26 08:45:06 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"vig")) return 1;
|
2010-05-31 02:16:05 +02:00
|
|
|
if(!stricmp_utf8(p_extension,"vms")) return 1;
|
2010-04-20 23:07:45 +02:00
|
|
|
if(!stricmp_utf8(p_extension,"voi")) return 1;
|
2010-02-26 08:45:06 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"vpk")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"vs")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"vsf")) return 1;
|
|
|
|
|
|
|
|
if(!stricmp_utf8(p_extension,"waa")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"wac")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"wad")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"wam")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"wavm")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"was")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"wii")) return 1;
|
2011-02-13 03:23:53 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"wmus")) return 1;
|
2010-02-26 08:45:06 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"wp2")) return 1;
|
2011-05-18 22:33:00 +02:00
|
|
|
if(!stricmp_utf8(p_extension,"wpd")) return 1;
|
2010-02-26 08:45:06 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"wsd")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"wsi")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"wvs")) return 1;
|
|
|
|
|
|
|
|
if(!stricmp_utf8(p_extension,"xa")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"xa2")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"xa30")) return 1;
|
2010-06-02 03:16:03 +02:00
|
|
|
if(!stricmp_utf8(p_extension,"xau")) return 1;
|
2010-02-26 08:45:06 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"xmu")) return 1;
|
2012-08-20 07:17:52 +02:00
|
|
|
if(!stricmp_utf8(p_extension,"xnb")) return 1;
|
2010-02-26 08:45:06 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"xsf")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"xss")) return 1;
|
2010-09-05 00:06:39 +02:00
|
|
|
if(!stricmp_utf8(p_extension,"xvag")) return 1;
|
2010-02-26 08:45:06 +01:00
|
|
|
if(!stricmp_utf8(p_extension,"xvas")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"xwav")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"xwb")) return 1;
|
|
|
|
|
|
|
|
if(!stricmp_utf8(p_extension,"ydsp")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"ymf")) return 1;
|
|
|
|
|
|
|
|
if(!stricmp_utf8(p_extension,"zsd")) return 1;
|
|
|
|
if(!stricmp_utf8(p_extension,"zwdsp")) return 1;
|
|
|
|
return 0;
|
|
|
|
}
|
2008-05-26 15:29:21 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* retrieve information on this or possibly another file */
|
2015-02-09 04:08:40 +01:00
|
|
|
void input_vgmstream::getfileinfo(const char *filename, char *title, int *length_in_ms, int *total_samples, int *loop_start, int *loop_end, int *sample_rate, int *channels, int *bitrate, abort_callback & p_abort) {
|
2008-05-26 15:29:21 +02:00
|
|
|
|
2010-02-26 08:45:06 +01:00
|
|
|
VGMSTREAM * infostream;
|
|
|
|
if (length_in_ms)
|
|
|
|
{
|
|
|
|
*length_in_ms=-1000;
|
|
|
|
if ((infostream=init_vgmstream_foo(filename, p_abort)))
|
|
|
|
{
|
|
|
|
*length_in_ms = get_vgmstream_play_samples(loop_count,fade_seconds,fade_delay_seconds,infostream)*1000LL/infostream->sample_rate;
|
|
|
|
test_length = *length_in_ms;
|
|
|
|
*sample_rate = infostream->sample_rate;
|
|
|
|
*channels = infostream->channels;
|
2010-10-22 09:35:00 +02:00
|
|
|
*total_samples = infostream->num_samples;
|
2015-02-09 04:08:40 +01:00
|
|
|
*bitrate = get_vgmstream_average_bitrate(infostream);
|
2010-10-22 09:35:00 +02:00
|
|
|
if (infostream->loop_flag)
|
|
|
|
{
|
|
|
|
*loop_start = infostream->loop_start_sample;
|
|
|
|
*loop_end = infostream->loop_end_sample;
|
|
|
|
}
|
2010-02-26 08:45:06 +01:00
|
|
|
|
|
|
|
close_vgmstream(infostream);
|
|
|
|
infostream=NULL;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (title)
|
|
|
|
{
|
2013-05-27 05:55:50 +02:00
|
|
|
const char *p=filename+strlen(filename);
|
2010-02-26 08:45:06 +01:00
|
|
|
while (*p != '\\' && p >= filename) p--;
|
|
|
|
strcpy(title,++p);
|
|
|
|
}
|
2008-05-26 15:29:21 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static input_singletrack_factory_t<input_vgmstream> g_input_vgmstream_factory;
|
|
|
|
|
|
|
|
DECLARE_COMPONENT_VERSION(APP_NAME,PLUGIN_VERSION,PLUGIN_DESCRIPTION);
|
2010-02-28 02:51:36 +01:00
|
|
|
VALIDATE_COMPONENT_FILENAME("foo_input_vgmstream.dll");
|
2008-05-26 15:29:21 +02:00
|
|
|
|
2010-02-26 08:45:06 +01:00
|
|
|
// File types go down here (and in the large chunk of IFs above
|
|
|
|
// these are declared statically, and if anyone has a better idea i'd like to hear it - josh.
|
2010-06-29 17:52:07 +02:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("2DX9 Audio File (*.2DX9)", 2dx9);
|
2012-08-15 05:41:24 +02:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("2PFS Audio File (*.2PFS)", 2pfs);
|
2010-02-26 08:45:06 +01:00
|
|
|
|
2010-02-28 02:51:36 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("AAAP Audio File (*.AAAP)", aaap);
|
2010-02-26 08:45:06 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("AAX Audio File (*.AAX)", aax);
|
2010-02-28 02:51:36 +01:00
|
|
|
|
2010-02-26 08:45:06 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("ACM Audio File (*.ACM)", acm);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("ADPCM Audio File (*.ADPCM)", adpcm);
|
2010-05-03 17:52:29 +02:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("ADM Audio File (*.ADM)", adm);
|
2010-02-26 08:45:06 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("ADP Audio File (*.ADP)", adp);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("PS2 ADS Audio File (*.ADS)", ads);
|
2008-05-26 15:29:21 +02:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("ADX Audio File (*.ADX)", adx);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("AFC Audio File (*.AFC)", afc);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("AGSC Audio File (*.AGSC)", agsc);
|
2010-02-26 08:45:06 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("AHX Audio File (*.AHX)", ahx);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("AIFC Audio File (*.AIFC)", aifc);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("AIX Audio File (*.AIX)", aix);
|
2012-08-30 14:35:12 +02:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("AKB Audio File (*.AKB)", akb);
|
2010-02-26 08:45:06 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("AMTS Audio File (*.AMTS)", amts);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("AS4 Audio File (*.AS4)", as4);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("ASD Audio File (*.ASD)", asd);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("ASF Audio File (*.ASF)", asf);
|
2008-05-26 15:29:21 +02:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("AST Audio File (*.AST)", ast);
|
2010-02-26 08:45:06 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("ASR Audio File (*.ASR)", asr);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("ASS Audio File (*.ASS)", ass);
|
2013-06-26 12:07:13 +02:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("ATRAC3plus Audio File (*.AT3)", at3);
|
2010-02-26 08:45:06 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("AUD Audio File (*.AUD)", aud);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("AUS Audio File (*.AUS)", aus);
|
|
|
|
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("BAKA Audio File (*.BAKA)", baka);
|
2010-09-11 22:57:39 +02:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("BAF Audio File (*.BAF)", baf);
|
2010-06-13 06:41:26 +02:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("BAR Audio File (*.BAR)", bar);
|
2014-02-26 07:31:28 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("BCSTM Audio File (*.BCSTM)", bcstm);
|
2012-08-28 07:08:46 +02:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("BCWAV Audio File (*.BCWAV)", bcwav);
|
2014-10-18 23:54:31 +02:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("BFSTM Audio File (*.BFSTM)", bfstm);
|
2014-08-03 01:10:45 +02:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("BFWAV Audio File (*.BFWAV)", bfwav);
|
2014-10-18 23:54:31 +02:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("BFWAV Audio File [2] (*.BFWAV)", bfwavnsmbu);
|
2010-02-26 08:45:06 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("BG00 Audio File (*.BG00)", bg00);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("BGW Audio File (*.BGW)", bgw);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("BH2PCM Audio File (*.BH2PCM)", bh2pcm);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("BMDX Audio File (*.BMDX)", bmdx);
|
2012-08-28 07:08:46 +02:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("BMS Audio File (*.BMS)", bms);
|
2011-03-24 03:29:09 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("KLBS Audio File (*.BNK)", bnk);
|
2010-02-26 08:45:06 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("BNS Audio File (*.BNS)", bns);
|
2010-03-23 21:57:12 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("BNSF Audio File (*.BNSF)", bnsf);
|
2010-04-20 23:07:45 +02:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("BO2 Audio File (*.BO2)", bo2);
|
2008-05-26 15:29:21 +02:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("BRSTM Audio File (*.BRSTM)", brstm);
|
2010-02-26 08:45:06 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("BRSTM Audio File [2] (*.BRSTM)", brstmspm);
|
2015-01-22 01:28:43 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("BTSND Audio File (*.BTSND)", btsnd);
|
2011-02-16 07:57:19 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("BVG Audio File (*.BVG)", bvg);
|
2010-02-26 08:45:06 +01:00
|
|
|
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("CAF Audio File (*.CAF)", caf);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("CAPDSP Audio File (*.CAPDSP)", capdsp);
|
2010-07-27 14:24:03 +02:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("CBD2 Audio File (*.CBD2)", cbd2);
|
2010-02-26 08:45:06 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("CCC Audio File (*.CCC)", ccc);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("CFN Audio File (*.CFN)", cfn);
|
2013-09-03 20:14:14 +02:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("CKD Audio File (*.CKD)", ckd);
|
2010-02-26 08:45:06 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("CNK Audio File (*.CNK)", cnk);
|
2010-09-10 01:47:27 +02:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("CPS Audio File (*.CPS)", cps);
|
2010-02-26 08:45:06 +01:00
|
|
|
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("DCS Audio File (*.DCS)", dcs);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("DE2 Audio File (*.DE2)", de2);
|
2010-04-20 23:07:45 +02:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("DDSP Audio File (*.DDSP)", ddsp);
|
2010-02-26 08:45:06 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("DMSG Audio File (*.DMSG)", dmsg);
|
2008-05-26 15:29:21 +02:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("DSP Audio File (*.DSP)", dsp);
|
2010-08-04 21:37:33 +02:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("DSPW Audio File (*.DSPW)", dspw);
|
2010-02-26 08:45:06 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("DTK Audio File (*.DTK)", dtk);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("DVI Audio File (*.DVI)", dvi);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("DXH Audio File (*.DXH)", dxh);
|
|
|
|
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("EAM Audio File (*.EAM)", eam);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("EMFF Audio File (*.EMFF)", emff);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("ENTH Audio File (*.ENTH)", enth);
|
|
|
|
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("FAG Audio File (*.FAG)", fag);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("FILP Audio File (*.FILP)", filp);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("FSB Audio File (*.FSB)", fsb);
|
|
|
|
|
2014-10-19 23:10:31 +02:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("G1L Audio File (*.G1L)", g1l);
|
2010-02-26 08:45:06 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("GBTS Audio File (*.GBTS)", gbts);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("GCA Audio File (*.GCA)", gca);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("GCM Audio File (*.GCM)", gcm);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("GCUB Audio File (*.GCUB)", gcub);
|
2008-05-26 15:29:21 +02:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("GCW Audio File (*.GCW)", gcw);
|
2010-02-26 08:45:06 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("GENH Audio File (*.GENH)", genh);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("GMS Audio File (*.GMS)", gms);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("GSB Audio File (*.GSB)", gsb);
|
|
|
|
|
2016-06-28 09:28:29 +02:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("HCA Audio File (*.HCA)", hca);
|
2010-02-26 08:45:06 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("HGC1 Audio File (*.HGC1)", hgc1);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("HIS Audio File (*.HIS)", his);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("HLWAV Audio File (*.HLWAV)", hlwav);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("HALPST Audio File (*.HPS)", hps);
|
2012-03-21 04:30:36 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("HSF Audio File (*.HSF)", hsf);
|
2010-02-26 08:45:06 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("HWAS Audio File (*.HWAS)", hwas);
|
|
|
|
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("IDSP Audio File (*.IDSP)", idsp);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("IDVI Audio File (*.IDVI)", idvi);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("IKM Audio File (*.IKM)", ikm);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("ILD Audio File (*.ILD)", ild);
|
2008-05-26 15:29:21 +02:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("PS2 RAW Interleaved PCM (*.INT)", int);
|
2010-02-26 08:45:06 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("ISD Audio File (*.ISD)", isd);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("ISWS Audio File (*.ISWS)", isws);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("IVAUD Audio File (*.IVAUD)", ivaud);
|
2012-04-14 18:07:21 +02:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("IVAG Audio File (*.IVAG)", ivag);
|
2010-02-26 08:45:06 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("IVB Audio File (*.IVB)", ivb);
|
|
|
|
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("JOE Audio File (*.JOE)", joe);
|
2010-08-28 04:14:19 +02:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("JSTM Audio File (*.JSTM)", jstm);
|
2010-02-26 08:45:06 +01:00
|
|
|
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("KCES Audio File (*.KCES)", kces);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("KCEY Audio File (*.KCEY)", kcey);
|
2010-04-20 23:07:45 +02:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("KHV Audio File (*.KHV)", khv);
|
2010-12-11 07:42:42 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("KOVS Audio File (*.KOVS)", kovs);
|
2010-02-26 08:45:06 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("KRAW Audio File (*.KRAW)", kraw);
|
|
|
|
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("LEG Audio File (*.LEG)", leg);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("LOGG Audio File (*.LOGG)", logg);
|
2010-04-30 04:35:26 +02:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("LPCM Audio File (*.LPCM)", lpcm);
|
2010-02-26 08:45:06 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("LPS Audio File (*.LPS)", lps);
|
2011-01-13 09:11:58 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("LSF Audio File (*.LSF)", lsf);
|
2010-02-26 08:45:06 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("LWAV Audio File (*.LWAV)", lwav);
|
|
|
|
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("MATX Audio File (*.MATX)", matx);
|
2015-01-22 01:28:43 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("MCA Audio File (*.MCA)", mca);
|
2010-02-26 08:45:06 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("MCG Audio File (*.MCG)", mcg);
|
2008-05-26 15:29:21 +02:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("PS2 MI4 Audio File (*.MI4)", mi4);
|
2010-02-26 08:45:06 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("PS2 MIB Audio File (*.MIB)", mib);
|
2008-05-26 15:29:21 +02:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("PS2 MIC Audio File (*.MIC)", mic);
|
2010-02-26 08:45:06 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("MIHB Audio File (*.MIHB)", mihb);
|
2011-07-22 07:32:10 +02:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("MNSTR Audio File (*.MNSTR)", mnstr);
|
2010-02-26 08:45:06 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("MPDSP Audio File (*.MPDSP)", mpdsp);
|
2010-04-20 23:07:45 +02:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("MPDS Audio File (*.MPDS)", mpds);
|
2010-04-01 11:54:31 +02:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("MSA Audio File (*.MSA)", msa);
|
2010-10-12 02:16:49 +02:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("MSF Audio File (*.MSF)", msf);
|
2008-05-26 15:29:21 +02:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("MSS Audio File (*.MSS)", mss);
|
2010-02-26 08:45:06 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("MSVP Audio File (*.MSVP)", msvp);
|
2010-12-04 00:21:36 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("MTAF Audio File (*.MTAF)", mtaf);
|
2010-02-26 08:45:06 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("MUS Playlist File (*.MUS)", mus);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("MUSC Audio File (*.MUSC)", musc);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("MUSX Audio File (*.MUSX)", musx);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("MWV Audio File (*.MWV)", mwv);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("MxSt Audio File (*.MxSt)", mxst);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("MYSPD Audio File (*.MYSPD)", myspd);
|
|
|
|
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("NDP Audio File (*.NDP)", ndp);
|
2010-11-09 05:21:22 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("NGCA Audio File (*.NGCA)", ngca);
|
2010-02-26 08:45:06 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("PS2 NPSF Audio File (*.NPSF)", npsf);
|
2014-12-14 10:38:57 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("NUS3BANK Audio File (*.NUS3BANK)", nus3bank);
|
2010-02-26 08:45:06 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("NWA Audio File (*.NWA)", nwa);
|
|
|
|
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("OMU Audio File (*.OMU)", omu);
|
2014-02-26 07:25:02 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("OTM Audio File (*.OTM)", otm);
|
2010-02-26 08:45:06 +01:00
|
|
|
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("P2BT Audio File (*.P2BT)", p2bt);
|
2010-04-10 14:06:25 +02:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("P3D Audio File (*.P3D)", p3d);
|
2010-10-12 02:16:49 +02:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("PAST Audio File (*.PAST)", past);
|
2010-02-26 08:45:06 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("PCM Audio File (*.PCM)", pcm);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("PDT Audio File (*.PDT)", pdt);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("PNB Audio File (*.PNB)", pnb);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("PONA Audio File (*.PONA)", pona);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("POS Audio File (*.POS)", pos);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("PS2STM Audio File (*.PS2STM)", ps2stm);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("PSH Audio File (*.PSH)", psh);
|
2011-02-19 03:59:42 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("PSND Audio File (*.PSND)", psnd);
|
2010-02-26 08:45:06 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("PSW Audio File (*.PSW)", psw);
|
|
|
|
|
2010-11-22 02:45:39 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("RAS Audio File (*.RAS)", ras);
|
2008-05-26 15:29:21 +02:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("RAW Audio File (*.RAW)", raw);
|
2010-02-26 08:45:06 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("RKV Audio File (*.RKV)", rkv);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("RND Audio File (*.RND)", rnd);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("RRDS Audio File (*.RRDS)", rrds);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("RSD Audio File (*.RSD)", rsd);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("RSF Audio File (*.RSF)", rsf);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("RSTM Audio File (*.RSTM)", rstm);
|
2010-04-20 23:07:45 +02:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("RVWS Audio File (*.RSTM)", rvws);
|
2010-02-26 08:45:06 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("RWAR Audio File (*.RWSD)", rwar);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("RWAV Audio File (*.RWAV)", rwav);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("RWS Audio File (*.RWS)", rws);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("RWSD Audio File (*.RWSD)", rwsd);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("RWX Audio File (*.RWX)", rwx);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("PS2 RXWS File (*.RXW)", rxw);
|
|
|
|
|
2010-03-23 21:57:12 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("S14 Audio File (*.S14)", s14);
|
2010-02-26 08:45:06 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("SAB Audio File (*.SAB)", sab);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("SAD Audio File (*.SAD)", sad);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("SAP Audio File (*.SAP)", sap);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("SC Audio File (*.SC)", sc);
|
2010-09-11 01:56:39 +02:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("SCD Audio File (*.SCD)", scd);
|
2010-02-26 08:45:06 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("SCK Audio File (*.SCK)", sck);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("SD9 Audio File (*.SD9)", sd9);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("SDT Audio File (*.SDT)", sdt);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("SEG Audio File (*.SEG)", seg);
|
2011-03-03 10:03:18 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("SF0 Audio File (*.SF0)", sf0);
|
2010-02-26 08:45:06 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("SFL Audio File (*.SFL)", sfl);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("SFS Audio File (*.SFS)", sfs);
|
2011-03-03 10:03:18 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("SFX Audio File (*.SFX)", sfx);
|
2010-10-19 04:16:08 +02:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("SGB Audio File (*.SGB)", sgb);
|
2011-05-31 17:01:04 +02:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("SGD Audio File (*.SGD)", sgd);
|
2010-02-26 08:45:06 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("SL3 Audio File (*.SL3)", sl3);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("SLI Audio File (*.SLI)", sli);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("SMP Audio File (*.SMP)", smp);
|
2010-04-01 11:54:31 +02:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("SMPL Audio File (*.SMPL)", smpl);
|
2010-02-26 08:45:06 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("SND Audio File (*.SND)", snd);
|
2011-02-06 10:49:57 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("SNDS Audio File (*.SNDS)", snds);
|
2010-02-26 08:45:06 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("SNG Audio File (*.SNG)", sng);
|
2010-03-15 05:33:22 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("SNS Audio File (*.SNS)", sns);
|
2010-02-26 08:45:06 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("SPD Audio File (*.SPD)", spd);
|
2010-11-29 03:02:27 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("SPM Audio File (*.SPM)", spm);
|
2010-02-26 08:45:06 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("SPS Audio File (*.SPS)", sps);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("SPSD Audio File (*.SPSD)", spsd);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("SPW Audio File (*.SPW)", spw);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("PS2 SS2 Audio File (*.SS2)", ss2);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("SS3 Audio File (*.SS3)", ss3);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("SS7 Audio File (*.SS7)", ss7);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("SSM Audio File (*.SSM)", ssm);
|
2010-03-23 21:57:12 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("SSS Audio File (*.SSS)", sss);
|
2010-03-16 11:41:40 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("STER Audio File (*.STER)", ster);
|
2010-02-26 08:45:06 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("STMA Audio File (*.STMA)", stma);
|
2008-05-26 15:29:21 +02:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("STR Audio File (*.STR)", str);
|
2010-02-26 08:45:06 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("STRM Audio File (*.STRM)", strm);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("PS2 EXST Audio File (*.STS)", sts);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("STX Audio File (*.STX)", stx);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("PS2 SVAG Audio File (*.SVAG)", svag);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("SVS Audio File (*.SVS)", svs);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("SWAV Audio File (*.SWAV)", swav);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("SWD Audio File (*.SWD)", swd);
|
|
|
|
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("TEC Audio File (*.TEC)", tec);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("THP Audio File (*.THP)", thp);
|
2010-04-12 13:28:00 +02:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("TK1 Audio File (*.TK1)", tk1);
|
2010-02-26 08:45:06 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("TK5 Audio File (*.TK5)", tk5);
|
2011-05-18 22:33:00 +02:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("TUN Audio File (*.TUN)", tun);
|
2010-02-26 08:45:06 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("TYDSP Audio File (*.TYDSP)", tydsp);
|
|
|
|
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("UM3 Audio File (*.UM3)", um3);
|
|
|
|
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("VAG Audio File (*.VAG)", vag);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("VAS Audio File (*.VAS)", vas);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("VB Audio File (*.VB)", vb);
|
2013-09-03 20:27:36 +02:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("VBK Audio File (*.VBK)", vbk);
|
2010-02-26 08:45:06 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("VGS Audio File (*.VGS)", vgs);
|
2010-04-20 23:07:45 +02:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("VGV Audio File (*.VGV)", vgv);
|
2010-02-26 08:45:06 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("VIG Audio File (*.VIG)", vig);
|
2010-05-31 02:16:05 +02:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("VMS Audio File (*.VMS)", vms);
|
2010-04-20 23:07:45 +02:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("VOI Audio File (*.VOI)", voi);
|
2010-02-26 08:45:06 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("VPK Audio File (*.VPK)", vpk);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("VS Audio File (*.VS)", vs);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("VSF Audio File (*.VSF)", vsf);
|
|
|
|
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("WAA Audio File (*.WAA)", waa);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("WAC Audio File (*.WAC)", wac);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("WAD Audio File (*.WAD)", wad);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("WAM Audio File (*.WAM)", wam);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("WAVM Audio File (*.WAVM)", wavm);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("WAS Audio File (*.WAS)", was);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("WII Audio File (*.WII)", wii);
|
2011-02-13 03:23:53 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("WMUS Audio File (*.WMUS)", wmus);
|
2010-02-26 08:45:06 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("WP2 Audio File (*.WP2)", wp2);
|
2011-05-18 22:33:00 +02:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("WPD Audio File (*.WPD)", wpd);
|
2010-02-26 08:45:06 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("WSD Audio File (*.WSD)", wsd);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("WSI Audio File (*.WSI)", wsi);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("WVS Audio File (*.WVS)", wvs);
|
|
|
|
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("PSX CD-XA File (*.XA)", xa);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("XA2 Audio File (*.XA2)", xa2);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("XA30 Audio File (*.XA30)", xa30);
|
2010-06-02 03:16:03 +02:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("XAU Audio File (*.XAU)", xau);
|
2010-02-26 08:45:06 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("XMU Audio File (*.XMU)", xmu);
|
2012-08-20 07:17:52 +02:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("XNB Audio File (*.XNB)", xnb);
|
2010-02-26 08:45:06 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("XSF Audio File (*.XSF)", xsf);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("XSS Audio File (*.XSS)", xss);
|
2010-09-05 00:06:39 +02:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("XVAG Audio File (*.XVAG)", xvag);
|
2010-02-26 08:45:06 +01:00
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("XVAS Audio File (*.XVAS)", xvas);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("XWAV Audio File (*.XWAV)", xwav);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("XWB Audio File (*.XWB)", xwb);
|
|
|
|
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("YDSP Audio File (*.YDSP)", ydsp);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("YMF Audio File (*.YMF)", ymf);
|
|
|
|
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("ZSD Audio File (*.ZSD)", zsd);
|
|
|
|
DECLARE_MULTIPLE_FILE_TYPE("ZWDSP Audio File (*.ZWDSP)", zwdsp);
|
2008-05-26 15:29:21 +02:00
|
|
|
|