final tweaks?

This commit is contained in:
John Bintz 2022-11-25 13:08:36 -05:00
parent b9a20e529c
commit 6fdb1bf698

10
main.c
View File

@ -729,17 +729,25 @@ void handleIntuitionMessage(struct IntuiMessage *iMessage) {
}
}
struct dtTrigger myTrigger;
/**
* Start playing a bell sound, then wait for it to finish.
*/
void startBellSound(void) {
struct dtTrigger myTrigger;
ULONG soundPlayResult;
if (!DataTypesBase) return;
// https://amigaworld.net/modules/newbb/viewtopic.php?forum=15&topic_id=39094&post_id=735120&viewmode=thread&order=0#735120
// TODO: something in NewDTObject is causing a lock to be created that
// CodeWatcher declares was not freed. Commenting this down to just
// the GroupID tag does not make that warning go away. Each time this
// is called, a new lock is created.
//
// CodeWatcher also seems to think this is being kept around in memory,
// but running avail before and after getting the bell to ring indicate
// otherwise.
if (bellSound = NewDTObject(
BELL_FILENAME,
DTA_GroupID, GID_SOUND,