Name: libmm-sound
Summary: MMSound Package contains client lib and sound_server binary
-Version: 0.10.115
+Version: 0.10.116
Release: 0
Group: System/Libraries
License: Apache-2.0
./autogen.sh
%configure \
- --with-plugindir=%{_libdir}/soundplugins/ \
+ --with-plugindir=%{_libdir}/soundplugins \
%if "%{?TIZEN_PRODUCT_TV}" == "1"
--enable-prelink \
--enable-lwipc \
%{_libdir}/libmmfsoundcommon.so.*
%{_libdir}/libmmfkeysound.so.*
%{_libdir}/libmmfbootsound.so.*
-%{_libdir}/libsoundplugintone.so*
-%{_libdir}/libsoundpluginwave.so*
%{_libdir}/soundplugins/libsoundplugintone.so
%{_libdir}/soundplugins/libsoundpluginwave.so
%if 0%{?tizen_audio_feature_ogg_enable}
int MMSoundMgrCodecPlayDtmf(int *slotid, const mmsound_mgr_codec_param_t *param)
{
int plugin_id = 0;
- int *codec_type;
mmsound_codec_info_t info;
mmsound_codec_param_t codec_param;
int err = MM_ERROR_NONE;
int MMSoundMgrCodecPlayDtmfWithStreamInfo(int *slotid, const mmsound_mgr_codec_param_t *param)
{
int plugin_id = 0;
- int *codec_type;
mmsound_codec_info_t info;
mmsound_codec_param_t codec_param;
int err = MM_ERROR_NONE;
#include <mm_error.h>
#include <mm_debug.h>
-static char* __strcatdup(const char *str1, const char *str2);
+static char* __strcatdup(const char *str1, const char *str2, const char *str3);
static int _MMSoundPluginGetList(const char *plugdir ,char ***list);
static int _MMSoundPluginDestroyList(char **list);
debug_log("item %d is %s\n", item_idx, entry[item_idx]->d_name);
if (S_ISREG(finfo.st_mode)) {
- temp[tn++] = __strcatdup(plugdir, entry[item_idx]->d_name);
+ temp[tn++] = __strcatdup(plugdir, "/", entry[item_idx]->d_name);
}
}
*list = temp;
return MM_ERROR_NONE;
}
-static char* __strcatdup(const char *str1, const char *str2)
+static char* __strcatdup(const char *str1, const char *str2, const char *str3)
{
char *dest = NULL;
int len = 0;
- len = strlen(str1) + strlen(str2) + 1;
+ len = strlen(str1) + strlen(str2) + strlen(str3) + 1;
dest = (char*) malloc(len*sizeof(char));
if (!dest)
return NULL;
strncpy(dest, str1, len-1);
strncat(dest, str2, len-1);
+ strncat(dest, str3, len-1);
return dest;
}
//__attribute__ ((destructor))
static void _exit_handler(int sig)
{
- int ret = MM_ERROR_NONE;
-
switch(sig) {
case SIGINT:
sigaction(SIGINT, &sigint_action, NULL);
lib_LTLIBRARIES = libsoundplugintone.la
libsoundplugintone_la_SOURCES = mm_sound_plugin_codec_tone.c
+libdir = $(PLUGIN_DIR)
libsoundplugintone_la_CFLAGS = \
$(MMCOMMON_CFLAGS) \
$(srcdir)/../../../common/libmmfsoundcommon.la \
$(MMLOGSVR_LIBS)
-install-exec-hook:
- mkdir -p $(DESTDIR)$(libdir)/soundplugins
- ln -sf ../libsoundplugintone.so $(DESTDIR)$(libdir)/soundplugins/libsoundplugintone.so
-
+libsoundplugintone_la_LDFLAGS = -avoid-version
libsoundpluginwave_la_SOURCES = mm_sound_plugin_codec_wave.c
+libdir = $(PLUGIN_DIR)
+
libsoundpluginwave_la_CFLAGS = \
$(MMCOMMON_CFLAGS) \
-I$(srcdir)/../../../include \
$(srcdir)/../../../libmmfsound.la \
$(srcdir)/../../../common/libmmfsoundcommon.la
-install-exec-hook:
- mkdir -p $(DESTDIR)$(libdir)/soundplugins
- ln -sf ../libsoundpluginwave.so $(DESTDIR)$(libdir)/soundplugins/libsoundpluginwave.so
-
+libsoundpluginwave_la_LDFLAGS = -avoid-version