Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recording support for Android (Java side) #1

Merged
merged 3 commits into from Sep 29, 2019

Conversation

MikuAuahDark
Copy link
Collaborator

@MikuAuahDark MikuAuahDark commented Sep 29, 2019

This pull request adds support of recording capabilities to Android, which includes requesting the permission and prompt it to user.

The changes (including C++ side PR)

  1. It reads t.audio.mic configuration in conf.lua and store it somewhere.
  2. When love.audio is loaded, it reads the value of t.audio.mic previously set.
  3. When t.audio.mic is true, it requests mic permission. The result is used later.
  4. When love.audio.getRecordingDevices is called:
    4a. If user denies the permission (incl. ticking "Don't Ask Again"), dialog will be shown to prompt user and this function will return empty list of recording devices.
    4b. If user granted the permission, this function will enumerate recording devices as usual.

C++ side PR: https://bitbucket.org/rude/love/pull-requests/126

@slime73 slime73 merged commit 29e49d9 into love2d:master Sep 29, 2019
@slime73 slime73 mentioned this pull request Feb 20, 2020
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.

None yet

2 participants