# HG changeset patch # User nenolod # Date 1130906732 28800 # Node ID 2801eda0683fc0d420a9055d034818753b1fc4f3 # Parent 245b1307e18262654eccd3108cae7e2e07888159 [svn] Some routines here. Hehe. diff -r 245b1307e182 -r 2801eda0683f Plugins/Input/console/Audacious_Driver.cpp --- a/Plugins/Input/console/Audacious_Driver.cpp Tue Nov 01 20:20:20 2005 -0800 +++ b/Plugins/Input/console/Audacious_Driver.cpp Tue Nov 01 20:45:32 2005 -0800 @@ -6,4 +6,44 @@ * http://www.slack.net/~ant/libs/ */ +#include "Audacious_Driver.h" +#include "libaudacious/configfile.h" +#include "libaudacious/util.h" +#include "libaudacious/titlestring.h" +#include + +#include + +static Spc_Emu *spc = NULL; +static GThread decode_thread; + +static int is_our_file(gchar *filename) +{ + gchar *ext; + + ext = strrchr(filename, '.'); + + if (ext) + { + if (!strcasecmp(ext, ".spc")) + return 1; + } + + return 0; +} + +static gchar *get_title(gchar *filename) +{ + TitleInput *input; + gchar *title; + Emu_Std_Reader reader; + Spc_Emu::header_t header; + + reader.open(filename); + reader.read(&header, sizeof(header)); + + title = g_strdup(header.song); + + return title; +} diff -r 245b1307e182 -r 2801eda0683f Plugins/Input/console/Audacious_Driver.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Plugins/Input/console/Audacious_Driver.h Tue Nov 01 20:45:32 2005 -0800 @@ -0,0 +1,44 @@ +/* + * Audacious: Cross platform media player + * Copyright (c) 2005 Audacious team + * + * Header for the Audacious plugin. + */ + +#ifndef AUDACIOUS_DRIVER_H +#define AUDACIOUS_DRIVER_H + +#include "Blip_Buffer.h" +#include "Blip_Synth.h" +#include "Classic_Emu.h" +#include "Effects_Buffer.h" +#include "Fir_Resampler.h" +#include "Gb_Apu.h" +#include "Gb_Cpu.h" +#include "Gb_Oscs.h" +#include "Gbs_Emu.h" +#include "Gym_Emu.h" +#include "Multi_Buffer.h" +#include "Music_Emu.h" +#include "Nes_Apu.h" +#include "Nes_Cpu.h" +#include "Nes_Namco.h" +#include "Nes_Oscs.h" +#include "Nes_Vrc6.h" +#include "Nsf_Emu.h" +#include "Panning_Buffer.h" +#include "Sms_Apu.h" +#include "Sms_Oscs.h" +#include "Snes_Spc.h" +#include "Spc_Cpu.h" +#include "Spc_Dsp.h" +#include "Spc_Emu.h" +#include "Tagged_Data.h" +#include "Vgm_Emu.h" +#include "abstract_file.h" +#include "blargg_common.h" +#include "blargg_endian.h" +#include "blargg_source.h" +#include "ym2612.h" + +#endif