Skip to content

[Bug] Alarm doesn't loop alarm sound #147

@aaronhsmine

Description

@aaronhsmine

Describe the bug
The alarm block only plays the alarm sound once instead of looping it. After playing the sound once, it needs to be deactivated before it can be reactivated to play the sound once more. Tested with default and custom alarm sounds.

In which environment did the Bug appear?
Singleplayer

To Reproduce

  1. Place down alarm block
  2. Set up some kind of OpenComputers Computer
  3. Connect alarm block to Computer
  4. Set alarm sound and activate alarm using the Computer
  5. Alarm block plays sound once, then stops

Expected behavior
Alarm should loop the alarm sound indefinetly until deactivated.

Screenshots / Code Snippet
Code used for activating the alarm (executed both from a file and from the OpenOS lua shell):

alarm = component.os_alarm
alarm.setAlarm("alarmsound")
alarm.activate()

Minecraft:

  • Mod Version: OpenSecurity-1.12.2-1.0-39
  • Minecraft Version: Minecraft 1.12
  • Forge Version: Forge 14.23.5.2847

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions