Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

hi, i try to play the same .midi file
1)using ISoundPlayer Interface
2)using IRingerMgr Interface.

in 1) the sound is slower than 2)

i tried to change volume using ISoundPlayer_SetVolume and i succed but also the sound is slower in 1)

i noticed that if i switch off the volume of the sonery the 1) is still playing with the same volume but 2) is not playing at all.

So, my questions are
a) Why only IRingerMgr Interface is related with the volume of the sonery and ISoundPlayer is not?

b)How can i do a .midi file to be play with the same volume using ISoundPlayer and IRingerMgr Interface?

Thanks in advance

Hello razvanica,
Isound player has some issues in seting the sound volume till date.

Hello razvanica,
Isound player has some issues in seting the sound volume till date.

yes, it's true, but why the maximum volume set using ISoundPlayer is lower than the maximum volume using IRingerMgr?

yes, it's true, but why the maximum volume set using ISoundPlayer is lower than the maximum volume using IRingerMgr?

in my opinion the i ringer uses the external speaker (which is more powerful) so output sound is also high...

in my opinion the i ringer uses the external speaker (which is more powerful) so output sound is also high...

is there a way to use external speaker with ISoundPlayer ?

is there a way to use external speaker with ISoundPlayer ?

u can set the sound source using IMEDIA_SetAudioPath in i media only.....

u can set the sound source using IMEDIA_SetAudioPath in i media only.....

hi skumar_rao,
i tried IMEDIA_SetAudioPath but i received EUNSUPPORTED with every parameter: MM_APATH_LOCAL,MM_APATH_LOCAL_RINGER,
MM_APATH_REMOTE,MM_APATH_BOTH
here is my code:
AEEMediaData pmd;
pmd.clsData=MMD_FILE_NAME;
char *flname = "/shared/sylver.mid";
pmd.pData=(void*)flname;
ISHELL_CreateInstance(m_pIShell, AEECLSID_MEDIAUTIL ,(void **)&m_pIMediaUtil);
if(IMEDIAUTIL_CreateMedia (m_pIMediaUtil,&pmd, (IMedia **)&m_pIMedia)!=SUCCESS) {
DBGPRINTF("FAILED CREATE MEDIA");
}
//here is success
int nRet=IMEDIA_SetAudioPath(m_pIMedia,MM_APATH_REMOTE,100);
//nRet=EUNSUPPORTED

hi skumar_rao,
i tried IMEDIA_SetAudioPath but i received EUNSUPPORTED with every parameter: MM_APATH_LOCAL,MM_APATH_LOCAL_RINGER,
MM_APATH_REMOTE,MM_APATH_BOTH
here is my code:
AEEMediaData pmd;
pmd.clsData=MMD_FILE_NAME;
char *flname = "/shared/sylver.mid";
pmd.pData=(void*)flname;
ISHELL_CreateInstance(m_pIShell, AEECLSID_MEDIAUTIL ,(void **)&m_pIMediaUtil);
if(IMEDIAUTIL_CreateMedia (m_pIMediaUtil,&pmd, (IMedia **)&m_pIMedia)!=SUCCESS) {
DBGPRINTF("FAILED CREATE MEDIA");
}
//here is success
int nRet=IMEDIA_SetAudioPath(m_pIMedia,MM_APATH_REMOTE,100);
//nRet=EUNSUPPORTED

Hello razvanica,
it works for me.....
here is the ode that i used
------------------------------------------------------------------------------
.....
....
..
ISHELL_CreateInstance(pApp->a.m_pIShell,
AEECLSID_MEDIAPMD,
(void**)&(pme->m_pMedia));
IMEDIA_SetAudioPath(pme->m_pMedia,
MM_APATH_BOTH,
0);
pme->m_md.clsData = MMD_BUFFER ;
pme->m_md.pData = (void *)pme->AudioData;
pme->m_md.dwSize = size;
..
....
......
---------------------------------------------------------------------------

Hello razvanica,
it works for me.....
here is the ode that i used
------------------------------------------------------------------------------
.....
....
..
ISHELL_CreateInstance(pApp->a.m_pIShell,
AEECLSID_MEDIAPMD,
(void**)&(pme->m_pMedia));
IMEDIA_SetAudioPath(pme->m_pMedia,
MM_APATH_BOTH,
0);
pme->m_md.clsData = MMD_BUFFER ;
pme->m_md.pData = (void *)pme->AudioData;
pme->m_md.dwSize = size;
..
....
......
---------------------------------------------------------------------------

thank you skumar_rao, but it doesn't work for me...:(

thank you skumar_rao, but it doesn't work for me...:(