ofxHapPlayer icon indicating copy to clipboard operation
ofxHapPlayer copied to clipboard

Crash with ASIO

Open chriship opened this issue 5 years ago • 5 comments

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?

chriship avatar Aug 16 '19 21:08 chriship

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

diemildefreude avatar May 22 '22 12:05 diemildefreude

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

chriship avatar May 22 '22 19:05 chriship

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/

diemildefreude avatar May 24 '22 17:05 diemildefreude

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.

moebiussurfing avatar Oct 24 '22 02:10 moebiussurfing

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?

TimJJTing avatar Nov 30 '22 19:11 TimJJTing