Skip to content

Commit

Permalink
FACT: When a sound is destroyed, remove the paused flag from the Cue
Browse files Browse the repository at this point in the history
  • Loading branch information
flibitijibibo authored Jan 7, 2025
1 parent e3a511c commit 27e8fec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FACT_internal.c
Original file line number Diff line number Diff line change
Expand Up @@ -930,7 +930,7 @@ void FACT_INTERNAL_DestroySound(FACTSoundInstance *sound)
/* TODO: if (sound->parentCue->playingSounds == NULL) */
{
sound->parentCue->state |= FACT_STATE_STOPPED;
sound->parentCue->state &= ~(FACT_STATE_PLAYING | FACT_STATE_STOPPING);
sound->parentCue->state &= ~(FACT_STATE_PLAYING | FACT_STATE_PAUSED | FACT_STATE_STOPPING);
sound->parentCue->data->instanceCount -= 1;

FACT_INTERNAL_SendCueNotification(sound->parentCue, NOTIFY_CUESTOP, FACTNOTIFICATIONTYPE_CUESTOP);
Expand Down

0 comments on commit 27e8fec

Please sign in to comment.