Skip to content

Commit

Permalink
fix build, tracelevel
Browse files Browse the repository at this point in the history
  • Loading branch information
SysRay committed May 18, 2024
1 parent 2f2a4d8 commit 35b87ae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion modules/libSceAudioOut/entry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ EXPORT SYSV_ABI int32_t sceAudioOutInit(void) {
return Err::AudioOut::OUT_OF_MEMORY;
}

EXPORT SYSV_ABI int32_t sceAudioOutOpen(int32_t userId, SceAudioOutPortType type, int32_t index, uint32_t len, uint32_t freq, uint32_t param) {
EXPORT SYSV_ABI int32_t sceAudioOutOpen(int32_t userId, SceAudioOutPortType type, int32_t index, uint32_t numSamples, uint32_t sampleRate, uint32_t param) {
if (!audioInited) return Err::AudioOut::NOT_INIT;
LOG_USE_MODULE(libSceAudioOut);
LOG_TRACE(L"%S", __FUNCTION__);
Expand Down
10 changes: 5 additions & 5 deletions modules/libSceAvPlayer/avplayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,9 @@ bool Avplayer::getVideoData(void* info, bool isEx) {
if (retRecv < 0) {
if (retRecv == AVERROR(EAGAIN)) {
if (!m_isStop) {
LOG_DEBUG(L"-> wait video frame");
LOG_TRACE(L"-> wait video frame");
m_video.m_cond.wait(lock);
LOG_DEBUG(L"<- wait video frame");
LOG_TRACE(L"<- wait video frame");
continue;
}
} else if (retRecv != AVERROR_EOF) {
Expand Down Expand Up @@ -315,7 +315,7 @@ bool Avplayer::getVideoData(void* info, bool isEx) {
auto const timestamp = (int64_t)(1000.0 * av_q2d(m_video.stream->time_base) * m_video.frame->best_effort_timestamp); // timestamp[seconds] to [ms]

auto const curTime = (av_gettime() - m_startTime) / 1000; // [us] to [ms]
LOG_DEBUG(L"video frame timestamp:%lld", curTime);
LOG_TRACE(L"video frame timestamp:%lld", curTime);
if (timestamp > curTime) {
return false;
}
Expand Down Expand Up @@ -393,9 +393,9 @@ bool Avplayer::getAudioData(SceAvPlayerFrameInfo* info) {
if (retRecv < 0) {
if (retRecv == AVERROR(EAGAIN)) {
if (!m_isStop) {
LOG_DEBUG(L"-> wait audio frame");
LOG_TRACE(L"-> wait audio frame");
m_audio.m_cond.wait(lock);
LOG_DEBUG(L"<- wait audio frame");
LOG_TRACE(L"<- wait audio frame");
continue;
}
} else if (retRecv != AVERROR_EOF) {
Expand Down

0 comments on commit 35b87ae

Please sign in to comment.