Skip to content

Commit

Permalink
Fixes freezes when sounds get paused.
Browse files Browse the repository at this point in the history
Fixes freezes when sounds get paused.
  • Loading branch information
Rinnegatamante committed Aug 28, 2016
1 parent d80d851 commit b8833f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ all: $(TARGET).velf
$(PREFIX)-strip -g $<
vita-elf-create $< $@
vita-make-fself $@ eboot_unsafe.bin
vita-make-fself $@ -s eboot_safe.bin
vita-make-fself -s $@ eboot_safe.bin

$(TARGET).elf: $(OBJS)
$(CXX) $(CXXFLAGS) $^ $(LIBS) -o $@
Expand Down
6 changes: 2 additions & 4 deletions source/luaSound.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@
#- xerpi for drawing libs and for FTP server code ----------------------------------------------------------------------#
#-----------------------------------------------------------------------------------------------------------------------*/

#include <psp2/audioout.h>
#include <psp2/kernel/threadmgr.h>
#include <psp2/kernel/processmgr.h>
#include <vitasdk.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
Expand Down Expand Up @@ -184,7 +182,7 @@ static int audioThread(unsigned int args, void* arg){
availThreads[id] = true;
break;

}
}else sceKernelDelayThread(1000); // Tricky way to call a re-scheduling

}

Expand Down

0 comments on commit b8833f8

Please sign in to comment.