changeset 94:2801eda0683f trunk

[svn] Some routines here. Hehe.
author nenolod
date Tue, 01 Nov 2005 20:45:32 -0800
parents 245b1307e182
children 8247bbf454a8
files Plugins/Input/console/Audacious_Driver.cpp Plugins/Input/console/Audacious_Driver.h
diffstat 2 files changed, 84 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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 <gtk/gtk.h>
+
+#include <cstring>
+
+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;
+}
--- /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