abrenoch / hyperion-android-grabber

Screen grabber for hyperion
MIT License
188 stars 31 forks source link

Audio Mode #174

Open gsus24 opened 3 years ago

gsus24 commented 3 years ago

This is for audio visualization on some effects like rainbow or plasma. By captering internal audio and drawing a gradient view with scaled dimensions of the screen. Every section in the fan view is dimmed or light up depending on the sampled audio waveform.

For now its audio only.

Would be great to see this feature in master.

abrenoch commented 3 years ago

This sounds awesome! I need to get a development environment set back up but I'll try to get to this soon.

gsus24 commented 3 years ago

Nice to hear. I used the same classes for encoder, service and thread. In my opinion, they can be put together and pass parameter for video/audio when starting the service. I am no android developer, take a look yourself.

For next step, it need to change the gradientview which draws the fan. I used the SweepGradient(), which produce unexpected results, when the values are not monotic. You can see it good at RGB-White-Effect, that the sections are not always red,green,blue,.... For the other effects it works quite good.

Do you have an idea for custom gradientview to draw a fan? If i can help implement, please let me know. Would be great to see this in future

thundergreen commented 2 years ago

Any news here ?

StEfDu6o commented 2 years ago

Interesting, maybe in 2033...

abrenoch commented 2 years ago

Hey sorry it took me a while to get back to this. However I get an java.lang.IndexOutOfBoundsException when reading the buffer data (from HyperionAudioEncoder.java:232). This seems interesting but would need some work before I could accept the PR as it currently is (such as support for the tv version).

@StEfDu6o By 2033 google will have made their own APIs so useless it won't even be a concern of anybody's