Home | History | Annotate | Download | only in libmedia

Lines Matching refs:JetPlayer

18 #define LOG_TAG "JetPlayer-C"
23 #include <media/JetPlayer.h>
33 JetPlayer::JetPlayer(jobject javaJetPlayer, int maxTracks, int trackBufferSize) :
45 LOGV("JetPlayer constructor");
53 JetPlayer::~JetPlayer()
55 LOGV("~JetPlayer");
61 int JetPlayer::init()
71 LOGE("JetPlayer::init(): EAS library configuration could not be retrieved, aborting.");
78 LOGE("JetPlayer::init(): Error initializing Sonivox EAS library, aborting.");
85 LOGE("JetPlayer::init(): Error initializing JET library, aborting.");
102 LOGV("JetPlayer::init(): trying to start render thread");
108 LOGV("JetPlayer::init(): render thread(%d) successfully started.", mTid);
111 LOGE("JetPlayer::init(): failed to start render thread.");
119 void JetPlayer::setEventCallback(jetevent_callback eventCallback)
126 int JetPlayer::release()
128 LOGV("JetPlayer::release()");
159 int JetPlayer::renderThread(void* p) {
161 return ((JetPlayer*)p)->render();
165 int JetPlayer::render() {
171 LOGV("JetPlayer::render(): entering");
177 LOGE("JetPlayer::render(): mAudioBuffer allocate failed");
185 LOGV("JetPlayer::render(): render thread(%d) signal", mTid);
195 LOGV("JetPlayer::render(): NULL EAS data, exiting render.");
202 LOGV("JetPlayer::render(): signal wait");
209 LOGV("JetPlayer::render(): signal rx'd");
218 LOGE("JetPlayer::render(): EAS_Render returned error %ld", result);
228 //LOGV("JetPlayer::render(): updating state");
237 LOGE("JetPlayer::render(): output AudioTrack was not created");
242 //LOGV("JetPlayer::render(): writing to audio output");
244 LOGE("JetPlayer::render(): Error in writing:%d",temp);
250 LOGV("JetPlayer::render(): starting audio playback");
277 void JetPlayer::fireUpdateOnStatusChange()
283 JetPlayer::JET_USERID_UPDATE,
295 JetPlayer::JET_NUMQUEUEDSEGMENT_UPDATE,
305 mEventCallback(JetPlayer::JET_PAUSE_UPDATE,
319 void JetPlayer::fireEventsFromJetQueue()
330 JetPlayer::JET_EVENT,
339 int JetPlayer::loadFromFile(const char* path)
341 LOGV("JetPlayer::loadFromFile(): path=%s", path);
364 int JetPlayer::loadFromFD(const int fd, const long long offset, const long long length)
366 LOGV("JetPlayer::loadFromFD(): fd=%d offset=%lld length=%lld", fd, offset, length);
386 int JetPlayer::closeFile()
394 int JetPlayer::play()
396 LOGV("JetPlayer::play(): entering");
410 LOGV("JetPlayer::play(): wakeup render thread");
417 int JetPlayer::pause()
435 int JetPlayer::queueSegment(int segmentNum, int libNum, int repeatCount, int transpose,
438 LOGV("JetPlayer::queueSegment segmentNum=%d, libNum=%d, repeatCount=%d, transpose=%d",
445 int JetPlayer::setMuteFlags(EAS_U32 muteFlags, bool sync)
452 int JetPlayer::setMuteFlag(int trackNum, bool muteFlag, bool sync)
459 int JetPlayer::triggerClip(int clipId)
461 LOGV("JetPlayer::triggerClip clipId=%d", clipId);
467 int JetPlayer::clearQueue()
469 LOGV("JetPlayer::clearQueue");
475 void JetPlayer::dump()
477 LOGE("JetPlayer dump: JET file=%s", mEasJetFileLoc->path);
480 void JetPlayer::dumpJetStatus(S_JET_STATUS* pJetStatus)