mirror of
https://github.com/wiiu-env/homebrew_launcher.git
synced 2024-12-01 00:44:18 +01:00
commit
c97af74a9d
@ -82,7 +82,7 @@ public:
|
|||||||
voiceBuffer.format = format;
|
voiceBuffer.format = format;
|
||||||
voiceBuffer.loop = (nextBuffer == NULL) ? 0 : 1;
|
voiceBuffer.loop = (nextBuffer == NULL) ? 0 : 1;
|
||||||
voiceBuffer.cur_pos = 0;
|
voiceBuffer.cur_pos = 0;
|
||||||
voiceBuffer.end_pos = bufferSize >> 1;
|
voiceBuffer.end_pos = (bufferSize >> 1) - 1;
|
||||||
voiceBuffer.loop_offset = ((nextBuffer - buffer) >> 1);
|
voiceBuffer.loop_offset = ((nextBuffer - buffer) >> 1);
|
||||||
nextBufferSize = nextBufSize;
|
nextBufferSize = nextBufSize;
|
||||||
|
|
||||||
@ -126,7 +126,7 @@ public:
|
|||||||
if(lastLoopCounter != loopCounter)
|
if(lastLoopCounter != loopCounter)
|
||||||
{
|
{
|
||||||
lastLoopCounter = loopCounter;
|
lastLoopCounter = loopCounter;
|
||||||
AXSetVoiceEndOffset(voice, voiceBuffer.loop_offset + (nextBufferSize >> 1));
|
AXSetVoiceEndOffset(voice, voiceBuffer.loop_offset + (nextBufferSize >> 1) - 1);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user