adrenak / GPUVideoPlayer

Fast video playback on Unity using GPU Decoding
MIT License
128 stars 29 forks source link

Add volume function support #11

Closed ChrisFeline closed 5 years ago

ChrisFeline commented 5 years ago

It would be very helpful if it didn't blasted my ears. <3

adrenak commented 5 years ago

The audio is not played by Unity, but I think it uses a Windows API. System volume will be apply to it. I'll have a look sometime but I don't expect to be able to find a solution.

adrenak commented 5 years ago

Hi @ChrisFeline , I don't think there is a solution for this. The sound is played by the system and not a Unity AudioSource or anything like that. If you do want to control the audio from in-app controls, I think the best way would be to change the system volume itself from C#?