openframeworks / openframeworks/openFrameworks

iOS example audioInputExample: issue with audioIn / ofSoundPlayer order

Open
#7,291 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
10.4k
Forks
2.6k
Avg merge
1d 21h
Merged PRs (30d)
9

Description

a bit more investigation: if the ofSoundStreamSetup() comes after the sound.load(), the microphone "wins" (audio input / no sound player). so it seems there is a conflict in the AVSession setups -- probably unrelated to the memory management, so perhaps this should be merged, and figure out the conflict in another PR?

Originally posted by @artificiel in https://github.com/openframeworks/openFrameworks/issues/7283#issuecomment-1409743155

It seems something in soundPlayer changes the way ofSoundStream behaves.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the iOS example with ofSoundStreamSetup() before and after sound.load(), then inspect how the AVSession setup affects ofSoundStream and soundPlayer. Done means audio input and sound playback both work without the ordering conflict.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, ios
Domain
audio-video-rtc, mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.