#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;
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;
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);