mirror of
https://github.com/RaySollium99/libpicofe.git
synced 2025-10-27 01:29:40 -04:00
psp bugfixes, tools
git-svn-id: file:///home/notaz/opt/svn/PicoDrive/platform@285 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
c4f2f371a6
commit
ae1bf35ce4
1 changed files with 7 additions and 8 deletions
15
psp/emu.c
15
psp/emu.c
|
|
@ -485,7 +485,7 @@ static int sound_thread(SceSize args, void *argp)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
lprintf("sound_thread: started, priority %i\n", sceKernelGetThreadCurrentPriority());
|
lprintf("sthr: started, priority %i\n", sceKernelGetThreadCurrentPriority());
|
||||||
|
|
||||||
while (!sound_thread_exit)
|
while (!sound_thread_exit)
|
||||||
{
|
{
|
||||||
|
|
@ -521,6 +521,8 @@ static void sound_init(void)
|
||||||
sound_sem = sceKernelCreateSema("sndsem", 0, 0, 1, NULL);
|
sound_sem = sceKernelCreateSema("sndsem", 0, 0, 1, NULL);
|
||||||
if (sound_sem < 0) lprintf("sceKernelCreateSema() failed: %i\n", sound_sem);
|
if (sound_sem < 0) lprintf("sceKernelCreateSema() failed: %i\n", sound_sem);
|
||||||
|
|
||||||
|
samples_made = samples_done = 0;
|
||||||
|
samples_block = SOUND_BLOCK_SIZE_NTSC; // make sure it goes to sema
|
||||||
sound_thread_exit = 0;
|
sound_thread_exit = 0;
|
||||||
thid = sceKernelCreateThread("sndthread", sound_thread, 0x12, 0x10000, 0, NULL);
|
thid = sceKernelCreateThread("sndthread", sound_thread, 0x12, 0x10000, 0, NULL);
|
||||||
if (thid >= 0)
|
if (thid >= 0)
|
||||||
|
|
@ -683,13 +685,10 @@ static void RunEvents(unsigned int which)
|
||||||
|
|
||||||
vidResetMode();
|
vidResetMode();
|
||||||
|
|
||||||
if (PicoOpt&0x10) {
|
if (PicoOpt&0x10)
|
||||||
strcpy(noticeMsg, " 8bit fast renderer");
|
strcpy(noticeMsg, "fast renderer");
|
||||||
} else if (currentConfig.EmuOpt&0x80) {
|
else if (currentConfig.EmuOpt&0x80)
|
||||||
strcpy(noticeMsg, "16bit accurate renderer");
|
strcpy(noticeMsg, "accurate renderer");
|
||||||
} else {
|
|
||||||
strcpy(noticeMsg, " 8bit accurate renderer");
|
|
||||||
}
|
|
||||||
|
|
||||||
noticeMsgTime = sceKernelGetSystemTimeLow();
|
noticeMsgTime = sceKernelGetSystemTimeLow();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue