mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-11-24 04:09:15 +01:00
-corrected two wrong numbers in sound buffer and video message
thread stack
This commit is contained in:
parent
39e8ceb842
commit
756438d4d4
@ -592,8 +592,8 @@ void CVideo::waitMessage(const vector<STexture> &tex, float delay)
|
|||||||
{
|
{
|
||||||
m_showWaitMessage = true;
|
m_showWaitMessage = true;
|
||||||
if(!waitThreadStack.get())
|
if(!waitThreadStack.get())
|
||||||
waitThreadStack = smartMem2Alloc(8092);
|
waitThreadStack = smartMem2Alloc(8192);
|
||||||
LWP_CreateThread(&waitThread, (void *(*)(void *))CVideo::_showWaitMessages, (void *)this, waitThreadStack.get(), 8092, LWP_PRIO_HIGHEST);
|
LWP_CreateThread(&waitThread, (void *(*)(void *))CVideo::_showWaitMessages, (void *)this, waitThreadStack.get(), 8192, LWP_PRIO_HIGHEST);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -62,8 +62,8 @@ SoundDecoder::~SoundDecoder()
|
|||||||
void SoundDecoder::Init()
|
void SoundDecoder::Init()
|
||||||
{
|
{
|
||||||
SoundType = SOUND_RAW;
|
SoundType = SOUND_RAW;
|
||||||
SoundBlocks = 8; //Settings.SoundblockCount;
|
SoundBlocks = 8;
|
||||||
SoundBlockSize = 8092; //Settings.SoundblockSize;
|
SoundBlockSize = 8192;
|
||||||
CurPos = 0;
|
CurPos = 0;
|
||||||
LoopStart = 0;
|
LoopStart = 0;
|
||||||
Loop = false;
|
Loop = false;
|
||||||
|
@ -131,7 +131,7 @@ void WavDecoder::OpenFile()
|
|||||||
{
|
{
|
||||||
file_fd->seek(-8, SEEK_CUR);
|
file_fd->seek(-8, SEEK_CUR);
|
||||||
file_fd->read((u8*)&SmplChunk, sizeof(SWaveSmplChunk));
|
file_fd->read((u8*)&SmplChunk, sizeof(SWaveSmplChunk));
|
||||||
SmplChunk.Start = ((le32(SmplChunk.Start) * le16(FmtChunk.channels) * le16(FmtChunk.bps) / 8) + 8091) & ~8091;
|
SmplChunk.Start = ((le32(SmplChunk.Start) * le16(FmtChunk.channels) * le16(FmtChunk.bps) / 8) + 8191) & ~8191;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
file_fd->seek(le32(LoopChunk.size), SEEK_CUR);
|
file_fd->seek(le32(LoopChunk.size), SEEK_CUR);
|
||||||
|
Loading…
Reference in New Issue
Block a user