Peruttu

Problem with playing audio in real time using OpenSL ES, Crash APP

I'm trying to record audio and play it in real time using OpenSL ES, I can send the audio packet to the server, and the server is sending the packet to users correctly. However, there is a problem that I don't know why. The user who is recording can hear himself (the audio goes through the server and goes back to him), but when another user is speaking, the audio packages arrive and when I will queue the application closes.

Here is the part where I play the audio packets that arrive from the server.

void setBuffer(int playerid, uint8_t* buffer, size_t bufferSize)

{

if (buffer != NULL && playerBufferQueueItf != NULL && playerPlay != NULL && engineEngine != NULL)

{

(*playerBufferQueueItf)->Enqueue(playerBufferQueueItf, buffer, bufferSize);

}

}

Below starts the listen

createEngine();

// Create a mixer

SLresult result;

result = (*engineEngine)->CreateOutputMix(engineEngine, &outputMixObjext, 0, 0, 0);

assert(SL_RESULT_SUCCESS == result);

(void)result;

result = (*outputMixObjext)->Realize(outputMixObjext, SL_BOOLEAN_FALSE);

assert(SL_RESULT_SUCCESS == result);

(void)result;

// Create a player

createAudioPlayer(engineEngine, outputMixObjext, playerObject);

result = (*playerObject)->Realize(playerObject, SL_BOOLEAN_FALSE);

assert(SL_RESULT_SUCCESS == result);

(void)result;

result = (*playerObject)->GetInterface(playerObject, SL_IID_BUFFERQUEUE, &playerBufferQueueItf);

assert(SL_RESULT_SUCCESS == result);

(void)result;

result = (*playerObject)->GetInterface(playerObject, SL_IID_PLAY, &playerPlay);

assert(SL_RESULT_SUCCESS == result);

(void)result;

result = (*playerPlay)->SetPlayState(playerPlay, SL_PLAYSTATE_PLAYING);

assert(SL_RESULT_SUCCESS == result);

I took this link as a base [login to view URL], it writes to a file and reproduces, my record sends to the server and reproduces in real time. (does not store anything in the file)

Taidot: C++ -ohjelmointi, Mobile App Development, Android, Sound Engineering

Näytä lisää: save real time player online audio, real time web cam streaming using flash aspnet, real time clock ds1307 project using pic micro, real time clock using pic, java code send real time video audio, real time audio streaming java, free real time gps tracking using gps phone, real time using 1307 ccs, real time web application using, curriencies price real time using, using auctioneer real time search, listen audio remote computer real time, real time eye tracking using matlab, real time image processing project using labview, real time audio streaming spy, real time wpf video playing, real time commenting using ajax, real time call female voice changer app, real time automatic license plate recognition app android, eye tracking real time using matlab

Tietoa työnantajasta:
( 1 arvostelu ) Chapecó, Brazil

Projektin tunnus: #27837927

3 freelancers are bidding on average $140 for this job

natapataykina02

Hello, i have rich experience with mobile app development with video and audio player i can help you perfectly.I just checked your project descripton [login to view URL] it is an ideal match for my skill and motivated for me. Lisää

$180 USD 1 päivässä
(8 arvostelua)
3.4
abhishekbisht908

I am an experienced developer , you can find my profile over here [login to view URL] . Allow me to solve this for you , and i either fix your problem or i will not take any money. And gues Lisää

$140 USD 7 päivässä
(0 arvostelua)
0.0
qualityavatar

I can do this project perfectly according to your need and also in your timeline. Quality work guaranteed. Thankyou Mohit upadhyay

$100 USD 4 päivässä
(0 arvostelua)
0.0