We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc9daa6 commit 35b2161Copy full SHA for 35b2161
1 file changed
src_rebuild/PsyCross/src/psx/LIBSPU.C
@@ -665,6 +665,14 @@ void SpuSetVoiceAttr(SpuVoiceAttr *arg)
665
// update pitch
666
if (arg->mask & SPU_VOICE_PITCH)
667
{
668
+ ALint state;
669
+ alGetSourcei(alSource, AL_SOURCE_STATE, &state);
670
+
671
+ if (arg->pitch == 0 && state == AL_PLAYING)
672
+ alSourcePause(alSource);
673
+ else if (voice->attr.pitch == 0 && state == AL_PAUSED)
674
+ alSourcePlay(alSource);
675
676
voice->attr.pitch = arg->pitch;
677
678
pitch = (float)(voice->attr.pitch) / 4096.0f;
0 commit comments