mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-16 16:46:07 +09:00
beeper update: proper equation. Need more work for low freqs
Former-commit-id: a98210ef06bea8f3a85af134fac8848225728c65 Former-commit-id: 901f266d529af99133f0605d2ce76c8cb52c7d17
This commit is contained in:
@@ -124,7 +124,7 @@ open class SimpleTextTerminal(
|
||||
// complete beep queue
|
||||
if (beepCursor >= beepQueue.size) {
|
||||
clearBeepQueue()
|
||||
println("!! Beep queue clear")
|
||||
// println("!! Beep queue clear")
|
||||
}
|
||||
|
||||
// actually play queue
|
||||
@@ -345,7 +345,7 @@ open class SimpleTextTerminal(
|
||||
* @param freg: Frequency (float)
|
||||
*/
|
||||
override fun beep(duration: Int, freq: Float) {
|
||||
println("!! Beep playing row $beepCursor, d ${Math.min(duration, maxDuration)} f $freq")
|
||||
// println("!! Beep playing row $beepCursor, d ${Math.min(duration, maxDuration)} f $freq")
|
||||
host.playTone(Math.min(duration, maxDuration), freq)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user