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

Crash with ASIO #49

Open
chriship opened this issue Aug 16, 2019 · 5 comments
Open

Crash with ASIO #49

chriship opened this issue Aug 16, 2019 · 5 comments

Comments

@chriship
Copy link

I have a project that is playing back some Hap files with audio. All is fine with the inbuilt sound card however, when I install the MOTU soundcard drivers (which install ASIO drivers), my app crashes when the videos are loaded. Even when the soundcard is not plugged in.

Is this a known issue with a solution?

@diemildefreude
Copy link

Hey, have you figured this out? I'm having a similar problem.

@chriship
Copy link
Author

I never managed to get time to look into it unfortunatley. I just removed the soundcard in the end.

@diemildefreude
Copy link

Well, I couldn't get this addon working, but for a Windows alternative there's:

https://github.com/UltraCombos/ofxDSHapVideoPlayer

To convert .mov files to hap .avis, I used this guide

https://support.troikatronix.com/support/solutions/articles/13000044970-create-windows-native-hap-avi-video-files?fbclid=IwAR165Vs6nCxQoMmu46tkv7a-X6lj5BD3-eqw_b8n_UssLYpTq7BnUunUhws

and followed the instructions for VirtualDub. Note that for a lot of input files you'll need this plugin for VirtualDub:

https://sourceforge.net/projects/virtualdubffmpeginputplugin/

@moebiussurfing
Copy link

Hello,
I am not getting audio working on Windows neither.

Anybody knows what's the recommended approach to do?

A parallel sound player? Must switch to ofxDSHapVideoPlayer breaking macOS?

Regards.

@TimJJTing
Copy link

TimJJTing commented Nov 30, 2022

For those who encounter a similiar problem on Windows, the issue is likely caused by ofSoundStreamSettings.

Try to modify ofxHapPlayer.cpp

on line 1003:

auto devices = _soundStream.getDeviceList(ofSoundDevice::Api::MS_DS);

and line 1041:

settings.setApi(ofSoundDevice::Api::MS_DS);

This works for me.

@bangnoise would it be possible to have an extra argument for ofSoundStreamSettings so that users can override the default settings without modifying ofxHapPlayer.cpp?

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

4 participants