Skip to content
Browse files

Fix sound about to finish notification bug

  • Loading branch information...
qcapen committed Jul 20, 2019
1 parent f974c7c commit 3b4df51a9ed5776456d6b2c9e7e7a6e42d60f76e
@@ -113,7 +113,7 @@ cdef inline void send_sound_looping_notification(int player, Uint64 sound_id, Ui

track.notification_messages = g_slist_prepend(track.notification_messages, notification_message)

cdef inline void send_sound_about_to_finish_notification(int player, long sound_id, long sound_instance_id,
cdef inline void send_sound_about_to_finish_notification(int player, Uint64 sound_id, Uint64 sound_instance_id,
TrackState *track) nogil:
Sends a sound about to finish notification
@@ -2,7 +2,6 @@
#cython: embedsignature=True, language_level=3

from cpython.mem cimport PyMem_Malloc, PyMem_Realloc, PyMem_Free
cimport cpython.pycapsule as pycapsule
import cython
import logging
import time
@@ -73,6 +73,9 @@ sounds:
- time: 3.5sec
name: verse_1
events: moron_next_marker, last_marker
- time: 5.39sec
name: about_to_finish
events: moron_about_to_finish_marker
priority: 1
simultaneous_limit: 3
@@ -210,6 +210,8 @@ def test_typical_sound_system(self):'trigger', sound_instance=ANY, marker_id=0, name='moron_marker')'trigger', sound_instance=ANY, marker_id=1, name='moron_next_marker')'trigger', sound_instance=ANY, marker_id=1, name='last_marker')'trigger', sound_instance=ANY, marker_id=2,

def test_sound_instance_parameters(self):
"""Test the creation of sound instances and their parameters"""

0 comments on commit 3b4df51

Please sign in to comment.
You can’t perform that action at this time.