Skip to content

Use math.min/max and increase volume limit#3

Open
Bioscreeper wants to merge 4 commits into
Ale32bit:mainfrom
Bioscreeper:patch-1
Open

Use math.min/max and increase volume limit#3
Bioscreeper wants to merge 4 commits into
Ale32bit:mainfrom
Bioscreeper:patch-1

Conversation

@Bioscreeper
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown
Owner

@Ale32bit Ale32bit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do some changes and LGTM

Comment thread README.md

```
wget run https://raw.github.com/Ale32bit/Quartz/main/download.lua
wget run https://raw.github.com/Ale32Bit/Quartz/main/download.lua
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The "bit" is lowercase.

Comment thread download.lua
@@ -1,4 +1,4 @@
local base = "https://raw.github.com/Ale32bit/Quartz/main/"
local base = "https://raw.githubusercontent.com/Bioscreeper/Quartz/main/"
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change back to original URL.

Comment thread player.lua
if dist < 0 then
dist = 0
end
dist = math.min(math.max(dist, 1), 3)
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Set minimum to 0 instead of 1.
The second argument of speaker.playAudio accepts lower than 1 numbers.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should also update the relevant documentation to reflect the range change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants