Skip to content

Commit

Permalink
log
Browse files Browse the repository at this point in the history
  • Loading branch information
Megamouse committed Nov 21, 2023
1 parent 12cc7af commit 912358e
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions rpcs3/Emu/Cell/Modules/cellRec.cpp
Expand Up @@ -174,7 +174,7 @@ class rec_video_sink : public utils::video_sink

void stop(bool flush = true) override
{
cellRec.notice("Stopping video sink. flush=%d", flush);
cellRec.error("Stopping video sink. flush=%d", flush);

std::lock_guard lock(m_mtx);
m_flush = flush;
Expand Down Expand Up @@ -564,11 +564,11 @@ void rec_info::start_video_provider()
ensure(pause_time_end > pause_time_start);
pause_time_total += (pause_time_end - pause_time_start);
video_provider.set_pause_time(pause_time_total / 1000);
cellRec.notice("Resuming video provider.");
cellRec.error("Resuming video provider.");
return;
}

cellRec.notice("Starting video provider.");
cellRec.error("Starting video provider.");

recording_time_start = get_system_time();
pause_time_start = 0;
Expand Down Expand Up @@ -785,7 +785,7 @@ void rec_info::start_video_provider()

void rec_info::pause_video_provider()
{
cellRec.notice("Pausing image provider.");
cellRec.error("Pausing image provider.");

if (video_provider_thread)
{
Expand All @@ -796,7 +796,7 @@ void rec_info::pause_video_provider()

void rec_info::stop_video_provider(bool flush)
{
cellRec.notice("Stopping video provider.");
cellRec.error("Stopping video provider.");

if (video_provider_thread)
{
Expand All @@ -811,7 +811,7 @@ void rec_info::stop_video_provider(bool flush)
// In this case the encoder should have been idle until now.
if (flush && param.ring_sec > 0 && (!video_ringbuffer.empty() || !audio_ringbuffer.empty()))
{
cellRec.notice("Flushing video ringbuffer.");
cellRec.error("Flushing video ringbuffer.");

// Fill encoder with data from ringbuffer
// TODO: ideally the encoder should do this on the fly and overwrite old frames in the file.
Expand Down Expand Up @@ -889,7 +889,7 @@ u32 cellRecQueryMemSize(vm::cptr<CellRecParam> pParam); // Forward declaration

error_code cellRecOpen(vm::cptr<char> pDirName, vm::cptr<char> pFileName, vm::cptr<CellRecParam> pParam, u32 container, vm::ptr<CellRecCallback> cb, vm::ptr<void> cbUserData)
{
cellRec.todo("cellRecOpen(pDirName=%s, pFileName=%s, pParam=*0x%x, container=0x%x, cb=*0x%x, cbUserData=*0x%x)", pDirName, pFileName, pParam, container, cb, cbUserData);
cellRec.error("cellRecOpen(pDirName=%s, pFileName=%s, pParam=*0x%x, container=0x%x, cb=*0x%x, cbUserData=*0x%x)", pDirName, pFileName, pParam, container, cb, cbUserData);

auto& rec = g_fxo->get<rec_info>();

Expand All @@ -911,7 +911,7 @@ error_code cellRecOpen(vm::cptr<char> pDirName, vm::cptr<char> pFileName, vm::cp
fmt::append(options, "%d", pParam->pOpt[i].option);
}

cellRec.notice("cellRecOpen: pParam={ videoFmt=0x%x, audioFmt=0x%x, numOfOpt=0x%x, options=[ %s ] }", pParam->videoFmt, pParam->audioFmt, pParam->numOfOpt, options);
cellRec.error("cellRecOpen: pParam={ videoFmt=0x%x, audioFmt=0x%x, numOfOpt=0x%x, options=[ %s ] }", pParam->videoFmt, pParam->audioFmt, pParam->numOfOpt, options);

const u32 mem_size = cellRecQueryMemSize(pParam);

Expand Down Expand Up @@ -1284,7 +1284,7 @@ error_code cellRecOpen(vm::cptr<char> pDirName, vm::cptr<char> pFileName, vm::cp

error_code cellRecClose(s32 isDiscard)
{
cellRec.todo("cellRecClose(isDiscard=0x%x)", isDiscard);
cellRec.error("cellRecClose(isDiscard=0x%x)", isDiscard);

auto& rec = g_fxo->get<rec_info>();

Expand Down Expand Up @@ -1382,7 +1382,7 @@ error_code cellRecClose(s32 isDiscard)

error_code cellRecStop()
{
cellRec.todo("cellRecStop()");
cellRec.error("cellRecStop()");

auto& rec = g_fxo->get<rec_info>();

Expand Down Expand Up @@ -1422,7 +1422,7 @@ error_code cellRecStop()

error_code cellRecStart()
{
cellRec.todo("cellRecStart()");
cellRec.error("cellRecStart()");

auto& rec = g_fxo->get<rec_info>();

Expand Down

0 comments on commit 912358e

Please sign in to comment.