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

Play Recorded Audio does not work when using Multi-channel and low-latency support #515

Closed
EffakT opened this issue Jan 10, 2025 · 5 comments

Comments

@EffakT
Copy link

EffakT commented Jan 10, 2025

Issue type: Bug report

Actual behaviour

When selecting Multi-channel and low-latency support, as well as Play recorded audio, no input is seen in the waveform above, nor when singing.

Expected behaviour

When selecting Multi-channel and low-latency support, as well as Play recorded audio, input should be shown in the waveform above, as well as when singing.

Steps to reproduce

  • Reproducible (mark with x): [x] always, [ ] sometimes
  1. Navigate to the Recording Setting page
  2. Enable Multi-channel
  3. Enable Play Recorded Audio
  4. Restart the app to allow the Play Recorded Audio change to take effect (Not sure if this is another bug?)
  5. Navigate back to the Recording settings
  6. Audio is no longer shown in the waveform above.

Details

  • Game version: Both Open Source (Master branch), and Steam releases (1.4.3)
  • Operating System and version: Windows 11
  • Song details, if applicable (e.g. audio and video file format): N/A
  • Attach screenshots and screen recordings
  • Attach a log file. To find the log file, see https://melodymania.org/how-to-report-issues
    Melody Mania20250110.log

Implementation hints

Seems to be an issue with the PortAudio integration, as when enabled it returns "Stream pointer: 0" and "Invalid Stream Pointer"

Additional Information

I am using a PreSonus Studio 24c USB interface, with two Superlux TM58 microphones.

@achimmihca
Copy link
Collaborator

achimmihca commented Jan 10, 2025

Thanks for the bug report.

Does it work when play recorded audio is disabled?

Restart the app to allow the Play Recorded Audio change to take effect (Not sure if this is another bug?)

A restart of the app is necessary when changing this mode. This is expected and I would not consider it a bug.

@EffakT
Copy link
Author

EffakT commented Jan 10, 2025

When play recorded audio is disabled, all works as expected. So guessing maybe a clash between the two features?

@achimmihca
Copy link
Collaborator

Thanks for the clarification. I will take a look.

@achimmihca
Copy link
Collaborator

FYI: this issue is still on my radar but will take some more time.

Long version:

  • I was not able to reproduce this issue
  • Anyway, I plan to improve multi-channel and low-latency support. Notably, I plan to integrate PortAudio with support for Steinberg ASIO.
  • However, I am currently busy with preparative refactoring, among other things for concurrent code and error handling.

@EffakT
Copy link
Author

EffakT commented Jan 31, 2025

Okay, so it seems there has been both a Driver & Firmware update for PreSonus. (Though they don't tell you this unless you go deep into the settings and log in)...
Installing both the Driver & Firmware update, seems to have resolved the issue.
This would explain why you were unable to reproduce the issue.

So, likely either a bug in the drivers/firmware or a incompatibilities between the driver version and PortAudio.
Unfortunately they haven't released patch notes for the drivers/firmware so likely will never know what the underlying issue was.

@EffakT EffakT closed this as completed Jan 31, 2025
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

No branches or pull requests

2 participants