Misc moar logging

This commit is contained in:
Aaron Culliney 2015-10-20 20:51:21 -07:00
parent df38695779
commit 4742d4e03e
2 changed files with 5 additions and 2 deletions

View File

@ -84,7 +84,7 @@ static inline bool _underrun_check_and_manage(SLVoice *voice, OUTPARM unsigned l
((readHead >= voice->writeHead) && (readWrapCount == voice->writeWrapCount)) )
{
isUnder = true;
//LOG("Buffer underrun ...");
LOG("Buffer underrun ...");
voice->writeHead = readHead;
voice->writeWrapCount = readWrapCount;
}

View File

@ -211,6 +211,7 @@ void cpu_pause(void) {
}
// CPU thread will be paused when it next tries to acquire interface_mutex
LOG("PAUSING CPU...");
#ifdef AUDIO_ENABLED
if (!emul_reinitialize_audio) {
emul_pause_audio = true;
@ -237,6 +238,7 @@ void cpu_resume(void) {
emul_resume_audio = true;
}
#endif
LOG("RESUMING CPU...");
pthread_mutex_unlock(&interface_mutex);
is_paused = false;
} while (0);
@ -281,8 +283,8 @@ static void *cpu_thread(void *dummyptr) {
do
{
#ifdef AUDIO_ENABLED
LOG("CPUTHREAD %d/%d LOCKING FOR MAYBE INITIALIZING AUDIO ...", cpu_thread_id, gettid());
pthread_mutex_lock(&interface_mutex);
if (emul_reinitialize_audio) {
emul_reinitialize_audio = false;
@ -296,6 +298,7 @@ static void *cpu_thread(void *dummyptr) {
MB_Initialize();
}
pthread_mutex_unlock(&interface_mutex);
LOG("UNLOCKING FOR MAYBE INITIALIZING AUDIO ...");
#endif
if (emul_reinitialize) {