filoe / cscore

An advanced audio library, written in C#. Provides tons of features. From playing/recording audio to decoding/encoding audio streams/files to processing audio data in realtime (e.g. applying custom effects during playback, create visualizations,...). The possibilities are nearly unlimited.
Other
2.17k stars 450 forks source link

Execution in Windows Service not working #25

Closed NicolasConstant closed 8 years ago

NicolasConstant commented 8 years ago

I am executing your library in a windows service and I get the same issue described here: http://stackoverflow.com/questions/32155412/cscore-not-working-in-a-windows-service

Is CSCore not compatible with a service execution?

filoe commented 8 years ago

Windows Services are quite restricted. You're not allowed to interact with the user in any way,... I could imagine, that this also includes that you're not allowed to access audio api's. Are you also trying to use AudioSession APIs? The only thing you could try, would be to write a native services, using the native COM objects and try whether you can use them. But I would definitely guess that there is no difference.

NicolasConstant commented 8 years ago

Ok, thanks. I rolled back to a desktop app.