aboutsummaryrefslogtreecommitdiffstats
path: root/src/audioOutput.h
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-10-20 16:05:13 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-10-20 16:05:13 +0000
commit608ac668db2dfc4ca5e1b3c68d432086476dd074 (patch)
tree18a9cf49ef3383cc2dbe9351ae70119e7eda69a0 /src/audioOutput.h
parent4951f9f809d1c06f675d25fec7a92b8fae8bea51 (diff)
downloadmpd-608ac668db2dfc4ca5e1b3c68d432086476dd074.tar.gz
mpd-608ac668db2dfc4ca5e1b3c68d432086476dd074.tar.xz
mpd-608ac668db2dfc4ca5e1b3c68d432086476dd074.zip
some work on the new audioOutput layer
git-svn-id: https://svn.musicpd.org/mpd/trunk@2277 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/audioOutput.h')
-rw-r--r--src/audioOutput.h16
1 files changed, 5 insertions, 11 deletions
diff --git a/src/audioOutput.h b/src/audioOutput.h
index 1a01263b8..fd76e4772 100644
--- a/src/audioOutput.h
+++ b/src/audioOutput.h
@@ -28,10 +28,6 @@
typedef struct _AudioOutput AudioOutput;
-typedef void (* AudioOutputInitConfigFunc) (AudioOutput * audioOutput);
-
-typedef void (* AudioOutputFinishConfigFunc) (AudioOutput * audioOutput);
-
typedef void (* AudioOutputInitDriverFunc) (AudioOutput * audioOutput);
typedef void (* AudioOutputFinishDriverFunc) (AudioOutput * audioOutput);
@@ -47,32 +43,30 @@ typedef void (* AudioOutputCloseDeviceFunc) (AudioOutput * audioOutput);
struct _AudioOutput {
int error;
- AudioOutputInitConfigFunc initConfigFunc;
- AudioOutputFinishConfigFunc finishConfigFunc;
- AudioOutputInitDriverFunc initDriverFunc;
AudioOutputFinishDriverFunc finishDriverFunc;
AudioOutputOpenDeviceFunc openDeviceFunc;
AudioOutputPlayFunc playFunc;
- AudioOutputCloseDevicFunc closeDeviceFunc;
+ AudioOutputCloseDeviceFunc closeDeviceFunc;
void * data;
};
typedef struct _AudioOutputPlugin {
char * name;
- AudioOutputInitConfigFunc initConfigFunc;
- AudioOutputFinishConfigFunc finishConfigFunc;
AudioOutputInitDriverFunc initDriverFunc;
AudioOutputFinishDriverFunc finishDriverFunc;
AudioOutputOpenDeviceFunc openDeviceFunc;
AudioOutputPlayFunc playFunc;
- AudioOutputCloseDevicFunc closeDeviceFunc;
+ AudioOutputCloseDeviceFunc closeDeviceFunc;
} AudioOutputPlugin;
void loadAudioOutputPlugin(AudioOutputPlugin * audioOutputPlugin);
void unloadAudioOutputPlugin(AudioOutputPlugin * audioOutputPlugin);
AudioOutput * newAudioOutput(char * name);
+int openAudioOutput(AudioOutput * audioOutput, AudioFormat * audioFormat);
+int audioOutputPlay(AudioOutput * audioOutput, char * playChunk, int size);
void closeAudioOutput(AudioOutput * audioOutput);
+void finishAudioOutput(AudioOutput * audioOutput);
#endif