Revise code
[platform/core/multimedia/libmm-sound.git] / server / include / mm_sound_mgr_codec.h
index 26a1d15..e15062e 100644 (file)
 #ifndef __MM_SOUND_MGR_CODEC_H__
 #define __MM_SOUND_MGR_CODEC_H__
 
-#include <mm_source.h>
+#include <stdbool.h>
+
+#include <mm_sound_stream.h>
+#include "../../include/mm_sound.h"
 
 typedef struct {
        int tone;
@@ -39,12 +42,10 @@ typedef struct {
        void *msgcallback;              /* Client callback function */
        void *msgdata;                  /* Client callback data */
        void *param;
-       MMSourceType *source; /* Will free plugin */
+       char *pfilename;
        int samplerate;
        int channels;
        int volume_config;
-       int priority;
-       int handle_route;
        bool enable_session;
        char stream_type[MM_SOUND_STREAM_TYPE_LEN];
        int stream_index;
@@ -56,7 +57,7 @@ enum
        MM_SOUND_CODEC_OP_SOUND,
 };
 
-int MMSoundMgrCodecInit(const char *targetdir);
+int MMSoundMgrCodecInit(const char *targetdir, GSourceFunc _shutdown_cb);
 int MMSoundMgrCodecFini(void);
 
 int MMSoundMgrCodecPlay(int *slotid, const mmsound_mgr_codec_param_t *param);