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

Bring back PortAudio support on Windows #4770

Merged
merged 1 commit into from
Feb 17, 2019

Conversation

DomClark
Copy link
Member

Fixes #4465.

Note that this does not fix the PortAudio crashes, but prevents them occurring at startup by not initialising PortAudio until it is chosen in the audio interface menu.

Population of the PortAudio setup widget has been delayed until it is shown, as it was causing crashes on some systems.
@zonkmachine
Copy link
Member

Since the issue fixed is on Windows, if this needs testing maybe we should provide binaries?

@PhysSong
Copy link
Member

maybe we should provide binaries?

I will.

@zonkmachine
Copy link
Member

Did a quick test on Linux, switching between Alsa, SDL and PortAudio, and I didn't see any differences in the behavior.

@tresf
Copy link
Member

tresf commented Jan 29, 2019

PortAudio + Windows 10 x64 Testing. Hardware is Dell XPS 9333 13" Developer Edition. Sound card: Onboard Realtek High Definition Audio

  • Windows WASAPI + Speakers / Headphones: Playback good 6-12% CPU
  • ⚠️MME + Microsoft Sound Mapper: Playback choppy and unusable
  • ⚠️Windows DirectSound + Speakers / Headphones: Playback choppy and unusable
  • ⛔️Windows WDM-KS + PC Speaker: No usable configuration for playback

Baseline comparison against SDL:

  • SDL: Playback good 7-20%

Side-note... the device selection is pretty unintuitive e.g. selecting recording devices for playback, etc. If PortAudio is re-enabled a new bug report should be opened for better playback device selection.

@DomClark
Copy link
Member Author

I get the same results with choppy playback and inappropriate device options. Note however that this is the same behaviour as in 1.1.3, and this PR doesn't attempt to change that - the idea was just to bring back the existing PortAudio backend for Windows again. It definitely needs some work and a new bug report is the way to go.

@T0NIT0RMX
Copy link
Contributor

I tried and on my Windows 64 bits, MSI GP60 2QE Leopard, Realtek Audio Card, there is no way to use any settings of portaudio.

If I use windows WASAPI, when I open again lmms the settings window pop up like there is a problem, and if I click OK and get to lmms window, there is no sound.

I tried in Audacity and WASAPI seems to work properly, so I don't really understand what's going wrong.

@PhysSong
Copy link
Member

@T0NIT0RMX What if you replace the PortAudio dll with Audacity's one?

@T0NIT0RMX
Copy link
Contributor

@PhysSong Audacity doesn't seems to have a portaudio dll, or I can't find it

@PhysSong
Copy link
Member

PhysSong commented Feb 7, 2019

@T0NIT0RMX
Copy link
Contributor

@PhysSong Same results.
But using this one I only have "MME" and "Windows WDM-KS" backend.
No matter what I chose, when LMMS opens again the config window pop up and if I press OK there is no sound in LMMS

@zonkmachine
Copy link
Member

@T0NIT0RMX How does older versions of lmms work? Like 1.1.3 or 1.2.0 before we removed portaudio?

@zonkmachine
Copy link
Member

Since we're not getting much test data back I think we should merge this PR and release rc8.

@tresf
Copy link
Member

tresf commented Feb 16, 2019

Agreed.

@zonkmachine zonkmachine merged commit 505c642 into LMMS:stable-1.2 Feb 17, 2019
@zonkmachine
Copy link
Member

OK, merging!

@T0NIT0RMX I'm still curious about how portaudio worked under your machine with older versions of lmms. See my comment above.

@T0NIT0RMX
Copy link
Contributor

@zonkmachine sorry for the delay I've been busy ! I'll let you know

@DomClark DomClark deleted the restore-portaudio branch March 12, 2021 19:02
sdasda7777 pushed a commit to sdasda7777/lmms that referenced this pull request Jun 28, 2022
Population of the PortAudio setup widget has been delayed until it is shown, as it was causing crashes on some systems.
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.

Bring back Portaudio (WASAPI)
5 participants