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

[iOS]Can't record and play audio #39292

Closed
pflovv opened this issue Jun 4, 2020 · 2 comments
Closed

[iOS]Can't record and play audio #39292

pflovv opened this issue Jun 4, 2020 · 2 comments

Comments

@pflovv
Copy link

pflovv commented Jun 4, 2020

Godot version:
3.2.1.stable.official (Steam)

OS/device including version:
iPhone 6, iOS 12.4.6

Issue description:

I'm making a project that can both record and play sounds.

What happened is, it won't play sound with Audio Input ON which can be set in Project Settings.
If I turn Audio Input OFF, it can play sound but unable to record, and iOS didn't ask for mic usage permission.

Steps to reproduce:

  1. Start the newly built app on iOS, with Audio Input ON.
  2. iOS asks for permission for mic usage.
  3. Tap "Allow".
  4. Record sound. (not sure whether or not really recorded)
  5. Try to play the recorded sound - no sound can be heard.
  6. Try to play another in-app sound - no sound can be heard.
  7. Turn OFF Audio Input in Project Settings and restart.
  8. Re-build for iOS and launch the app.
  9. iOS not asking for mic permission.
  10. Try to record - not working.
  11. Try to play another in-app sound - in-app sound plays.

Minimal reproduction project:
https://github.com/godotengine/godot-demo-projects/tree/3.2-57baf0a/audio/mic_record

@pflovv pflovv changed the title [iOS]Can't both record and play audio within one single app [iOS]Can't record and play audio Jun 5, 2020
@Calinou
Copy link
Member

Calinou commented Jun 5, 2020

Duplicate of #33885.

@audiosdroid
Copy link

I developed an iOS Audio Godot plugin named AudiosPlugin that solves this issue. Please see the GitHub page:
https://github.com/audiosdroid/Godot-iOS-Audio-Plugin

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

No branches or pull requests

3 participants