Sound Play. | developer.brewmp.com Sound Play. | developer.brewmp.com

Developer

Sound Play.

Forums:

hi,

i am useing IsoundPlayer for playing sound.

&

IMedia for Voice recording.

 

when i use both of this simultaneously on Simulator.

it work fine i.e. soung is all so playing & voice is allso recorded.

 

but when i am useing both of this simultaneously on device.

then only voice is recorded but sound is not playing ( i am unable listen sound).

Device name is "QRD 6270".plz help me........

do u hear the sound if you only play the sound using ISoundplayer & do not record?
 

do u hear the sound if you only play the sound using ISoundplayer & do not record?
 

yes.

yes.

yes.
please!!!!!!!!!!    Replay
 
&
can we play multiple song file simultaneously
or minimum two soung simultaneously.
 
i m doing thi.
it work fine on simulator.
but in device it play only one soung.
 
plz help me how i can play two sound file simultaneously.
 
 
 
 
 

yes.
please!!!!!!!!!!    Replay
 
&
can we play multiple song file simultaneously
or minimum two soung simultaneously.
 
i m doing thi.
it work fine on simulator.
but in device it play only one soung.
 
plz help me how i can play two sound file simultaneously.
 
 
 
 
 

I can't play fullscreen videos in QRD-6270 AND QRD-6240 Brewmp Devices?If any one know how to play it then Please Help me.many many thanks in advance

I can't play fullscreen videos in QRD-6270 AND QRD-6240 Brewmp Devices?If any one know how to play it then Please Help me.many many thanks in advance

there may be some restrictions on the number and type of simultaneous media being played/recorded (this depends on the chipset of device).
 
For eg: i tried playing QCP file & recording a QCP file at the same time & it worked for me on QRD 6270.
but when playing a MP3 & recording a QCP, it does not work.
i think there would be similar kind of restrictions on simultanious playback.

there may be some restrictions on the number and type of simultaneous media being played/recorded (this depends on the chipset of device).
 
For eg: i tried playing QCP file & recording a QCP file at the same time & it worked for me on QRD 6270.
but when playing a MP3 & recording a QCP, it does not work.
i think there would be similar kind of restrictions on simultanious playback.

refer to this for sample code & details of - IMedia - Simultaneous media playback
https://developer.brewmp.com/forum/imedia-simultaneous-media-playback

refer to this for sample code & details of - IMedia - Simultaneous media playback
https://developer.brewmp.com/forum/imedia-simultaneous-media-playback

moving you to a different thread for video playback on QRD:-
https://developer.brewmp.com/forum/video-playback
 

moving you to a different thread for video playback on QRD:-
https://developer.brewmp.com/forum/video-playback
 

for multiple sound i am useing following code.
/***********************************************************************************/
    AEEMediaData  md1;
    AEEMediaData  md2;
    int nErr;
    if(m_pMedia_1)
    {
        IMEDIA_Stop(m_pMedia_1);
 
        IMEDIA_Release(m_pMedia_1);
        m_pMedia_1 = NULL;
    }
    if( ISHELL_CreateInstance(piShell, AEECLSID_MEDIAQCP, (void**)&m_pMedia_1) != SUCCESS)
    {
        DBGPRINTF("*******MEDIA 1 Instance failed*******");
        return;
    }
    if(m_pMedia_2)
    {
        IMEDIA_Stop(m_pMedia_2);
        IMEDIA_Release(m_pMedia_2);
        m_pMedia_2 = NULL;
    }
    if( ISHELL_CreateInstance(piShell, AEECLSID_MEDIAQCP, (void**)&m_pMedia_2) != SUCCESS)
    {
        DBGPRINTF("*******MEDIA 2 Instance failed");
        return;
    }
    md1.clsData = MMD_FILE_NAME;
    md1.pData   = (void*)SOUND_FILE_1;
    md1.dwSize  = 0;
    nErr = IMedia_SetMediaData(m_pMedia_1, &md1);
    nErr = IMedia_RegisterNotify(m_pMedia_1,(PFNMEDIANOTIFY)CBMedia_1,this);
    md2.clsData = MMD_FILE_NAME;
    md2.dwSize  = 0;
    md2.pData   = (void*)SOUND_FILE_2;
    nErr = IMedia_SetMediaData(m_pMedia_2, &md2);
    nErr = IMedia_RegisterNotify(m_pMedia_2,(PFNMEDIANOTIFY)CBMedia_2,this);
    nErr = IMEDIA_EnableChannelShare(m_pMedia_1, TRUE);
    nErr = IMEDIA_EnableChannelShare(m_pMedia_2, TRUE);
    nErr = IMedia_Play(m_pMedia_2);
    nErr = IMedia_Play(m_pMedia_1);
 
/***********************************************************************************/
i can listen both the song simultaneously on simulator.
but on device(QRD 6270 ) i can listen only on song of(m_pMedia_1).
now if i change the sequence that is
 

    nErr = IMedia_Play(m_pMedia_1);
    nErr = IMedia_Play(m_pMedia_2);
then again i can listen both the song simultaneously on simulator.
but on device(QRD 6270) i can listen only one song of(m_pMedia_2).
 
how i can listen both song simultaneously on the device(QRD 6270/6240).
 
 
 

for multiple sound i am useing following code.
/***********************************************************************************/
    AEEMediaData  md1;
    AEEMediaData  md2;
    int nErr;
    if(m_pMedia_1)
    {
        IMEDIA_Stop(m_pMedia_1);
 
        IMEDIA_Release(m_pMedia_1);
        m_pMedia_1 = NULL;
    }
    if( ISHELL_CreateInstance(piShell, AEECLSID_MEDIAQCP, (void**)&m_pMedia_1) != SUCCESS)
    {
        DBGPRINTF("*******MEDIA 1 Instance failed*******");
        return;
    }
    if(m_pMedia_2)
    {
        IMEDIA_Stop(m_pMedia_2);
        IMEDIA_Release(m_pMedia_2);
        m_pMedia_2 = NULL;
    }
    if( ISHELL_CreateInstance(piShell, AEECLSID_MEDIAQCP, (void**)&m_pMedia_2) != SUCCESS)
    {
        DBGPRINTF("*******MEDIA 2 Instance failed");
        return;
    }
    md1.clsData = MMD_FILE_NAME;
    md1.pData   = (void*)SOUND_FILE_1;
    md1.dwSize  = 0;
    nErr = IMedia_SetMediaData(m_pMedia_1, &md1);
    nErr = IMedia_RegisterNotify(m_pMedia_1,(PFNMEDIANOTIFY)CBMedia_1,this);
    md2.clsData = MMD_FILE_NAME;
    md2.dwSize  = 0;
    md2.pData   = (void*)SOUND_FILE_2;
    nErr = IMedia_SetMediaData(m_pMedia_2, &md2);
    nErr = IMedia_RegisterNotify(m_pMedia_2,(PFNMEDIANOTIFY)CBMedia_2,this);
    nErr = IMEDIA_EnableChannelShare(m_pMedia_1, TRUE);
    nErr = IMEDIA_EnableChannelShare(m_pMedia_2, TRUE);
    nErr = IMedia_Play(m_pMedia_2);
    nErr = IMedia_Play(m_pMedia_1);
 
/***********************************************************************************/
i can listen both the song simultaneously on simulator.
but on device(QRD 6270 ) i can listen only on song of(m_pMedia_1).
now if i change the sequence that is
 

    nErr = IMedia_Play(m_pMedia_1);
    nErr = IMedia_Play(m_pMedia_2);
then again i can listen both the song simultaneously on simulator.
but on device(QRD 6270) i can listen only one song of(m_pMedia_2).
 
how i can listen both song simultaneously on the device(QRD 6270/6240).
 
 
 

did u follow the channel sharing code from here.
https://developer.brewmp.com/forum/imedia-simultaneous-media-playback

did u follow the channel sharing code from here.
https://developer.brewmp.com/forum/imedia-simultaneous-media-playback

yes

yes

plz reply................

plz reply................