bangnoise / ofxHapPlayer

A Hap player for OpenFrameworks
Other
147 stars 46 forks source link

Crash with ASIO #49

Open chriship opened 5 years ago

chriship commented 5 years ago

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 commented 2 years ago

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

chriship commented 2 years ago

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

diemildefreude commented 2 years ago

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 commented 2 years ago

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 commented 1 year ago

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?