Alternative audio backend in plugin

Hello,

I’m trying to get working an audio plugin using a custom .so/.dll for playback (it’s provided by a streaming website for DRM purposes), how can I avoid using kodi’s playback backend and use custom code?

Getting sound outside Kodi with Python is not really a problem.

I already searched the docs wiki and the forum, but I couldn’t find anything.

Thanks for your help!