Mercurial > audlegacy-plugins
changeset 2738:d0011cde16b7
blah blah blah
author | William Pitcock <nenolod@atheme.org> |
---|---|
date | Mon, 30 Jun 2008 20:46:42 -0500 |
parents | 62cc6d667119 |
children | b7beb9fea309 |
files | src/psf2/Makefile src/psf2/oss.c src/psf2/oss.h src/psf2/plugin.c |
diffstat | 4 files changed, 6 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/src/psf2/Makefile Mon Jun 30 20:20:53 2008 -0500 +++ b/src/psf2/Makefile Mon Jun 30 20:46:42 2008 -0500 @@ -3,6 +3,7 @@ SRCS = corlett.c \ plugin.c \ + oss.c \ psx.c \ psx_hw.c \ eng_psf.c \ @@ -18,6 +19,6 @@ plugindir := ${plugindir}/${INPUT_PLUGIN_DIR} -CFLAGS += ${PLUGIN_CFLAGS} +CFLAGS += ${PLUGIN_CFLAGS} -O0 CPPFLAGS += ${PLUGIN_CPPFLAGS} ${MOWGLI_CFLAGS} ${GTK_CFLAGS} ${GLIB_CFLAGS} -I../.. -Ispu/ -I. LIBS += ${GTK_LIBS} ${GLIB_LIBS} ${MOWGLI_LIBS} -lz
--- a/src/psf2/oss.c Mon Jun 30 20:20:53 2008 -0500 +++ b/src/psf2/oss.c Mon Jun 30 20:46:42 2008 -0500 @@ -47,7 +47,7 @@ // local variables -void (*m1sdr_Callback)(unsigned long dwNumSamples, signed short *data); +void (*m1sdr_Callback)(signed short *data, unsigned long dwNumSamples); unsigned long cbUserData; static int hw_present; @@ -81,7 +81,7 @@ if (m1sdr_Callback) { - m1sdr_Callback(nDSoundSegLen, (INT16 *)samples); + m1sdr_Callback(samples, nDSoundSegLen); } } // checks the play position to see if we should trigger another update
--- a/src/psf2/oss.h Mon Jun 30 20:20:53 2008 -0500 +++ b/src/psf2/oss.h Mon Jun 30 20:46:42 2008 -0500 @@ -2,7 +2,6 @@ #define _OSS_H_ extern int audiofd; -extern void (*m1sdr_Callback)(unsigned long dwUser, signed short *smp); extern unsigned long cbUserData; // function protos
--- a/src/psf2/plugin.c Mon Jun 30 20:20:53 2008 -0500 +++ b/src/psf2/plugin.c Mon Jun 30 20:46:42 2008 -0500 @@ -144,18 +144,14 @@ } // now did we identify it above or just fall through? - if (types[type].sig != 0xffffffff) - { - printf("File identified as %s\n", types[type].name); - } - else + if (types[type].sig == 0xffffffff) { printf("ERROR: File is unknown, signature bytes are %02x %02x %02x %02x\n", buffer[0], buffer[1], buffer[2], buffer[3]); free(buffer); return -1; } - if ((*types[type].start)(buffer, size) != AO_SUCCESS) + if (psf2_start(buffer, size) != AO_SUCCESS) { free(buffer); printf("ERROR: Engine rejected file!\n"); @@ -166,8 +162,6 @@ m1sdr_SetCallback(psf2_gen); m1sdr_PlayStart(); - printf("\n\nPlaying. Press CTRL-C to stop.\n"); - while (1) { m1sdr_TimeCheck();