Closed gnattu closed 1 month ago
Can you try again from the latest commit? I improved the overall volume logic
macro #if os(iOS)
will evaluate to true
of Mac Catalyst for compatibility reasons. If you want to rule out all macOS you need to be explicit and use #if os(iOS) && !targetEnvironment(macCatalyst)
Similarly, #if !os(macOS)
will also evaluates to true
for Mac Catalyst
Similarly,
#if !os(macOS)
will also evaluates totrue
for Mac Catalyst
Its not a big problem because the API isn't available on MacOS anyways, but I updated the code, please try again
The volume seems to be fine now, but do you want a PR to replace all #if !os(macOS)
and #if os(iOS)
with the explicit version to exclude mac catalyst?
There is only one other place were it matters, and it is already done properly there. All other conditions are just there because the API isn't available on macOS
For some reason this value could be 100 which is beyond valid range, and on macOS this will cause the volume being excessively high. Overwrite it to 1.0 when detected