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

Wave Generator: Implement option to generate waves without PSLab Device #1976

Draft
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

dwlsalmeida
Copy link

@dwlsalmeida dwlsalmeida commented Sep 27, 2019

Signed-off-by: Daniel W. S. Almeida [email protected]

First steps for #1974

This is not ready yet. Current code crashes with java.lang.IllegalStateException: Unable to retrieve AudioTrack pointer for write() . I will investigate.

I would appreciate some feedback on this, specially as I am not sure whether I have understood the task 100%. I have based my work on this blog post.

Changes:
Add a button to generate waves without a PSLab device, using the phone as the source for the signal. Refactor existing sampling code from its current implementation in ProduceSoundTask into a separate method for code reuse.

Checklist:

  • I have used resources from strings.xml, dimens.xml and colors.xml without hard-coding them
  • No modifications done at the end of resource files strings.xml, dimens.xml or colors.xml
  • I have reformatted code in every file included in this PR [CTRL+ALT+L]
  • My code does not contain any extra lines or extra spaces
  • I have requested reviews from other members

@mariobehling
Copy link
Member

Hi @dwlsalmeida how is it going. Would be great to get this feature in. Would love to see the next steps.

@dwlsalmeida
Copy link
Author

dwlsalmeida commented Oct 28, 2019

Hey @mariobehling

This is semi-working. Might as well give it another go today. Did you try it out? I'd appreciate some feedback.

Sent from my Redmi Note 5 using FastHub

Signed-off-by: Daniel W. S. Almeida <[email protected]>
@dwlsalmeida
Copy link
Author

@mariobehling @CloudyPadmal can I get someone to look this over?

I have implemented a radio button that checks whether there's anything hooked up into the audio jack before playing the signal. What now?

Any guidance is appreciated, thanks! :)

@CloudyPadmal CloudyPadmal added the In Progress Developer is working on the problem label Nov 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
In Progress Developer is working on the problem
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants