CallmeBK / VolLightbarCtrlWithDS4

PS Vita - Control volume using DS4 controller. DS4 lightbar used as DS4 battery indicator.
MIT License
10 stars 1 forks source link

Bluetooth sound? #3

Open aliihsanasl opened 3 years ago

aliihsanasl commented 3 years ago

Is it not possible to make it control bluetooth volume on a PS Vita. When a bluetooth speaker connected on the volume buttons on the speaker device is functional but its not like that with PS TV.

CallmeBK commented 3 years ago

Oh I never thought of that! So you're saying it adjusts Bluetooth volume on the PS vita, but it's not adjusting Bluetooth volume on the PSTV? Yeah I can add that feature so it works on PSTV as well. My bad, I just never thought of that.

On Thu, Mar 18, 2021, 6:45 PM aliihsanasl @.***> wrote:

Is it not possible to make it control bluetooth volume on a PS Vita. When a bluetooth speaker connected on the volume buttons on the speaker device is functional but its not like that with PS TV.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/CallmeBK/VolLightbarCtrlWithDS4/issues/3, or unsubscribe https://github.com/notifications/unsubscribe-auth/AP3JWNIYSYDZNADKLZPEYH3TEKGCDANCNFSM4ZNWUJDA .

aliihsanasl commented 3 years ago

No no just the opposite it works properly on PS TV, it controls bluetooth speaker's sound on PS TV but its not functional on PS Vita when you connect bluetooth speaker although the volume bar going up/down.

This will be off topic but if you could manage to cut ingame music when we play MP3 during gameplay that would be awesome. Games like P4G for exmaple has no option to mute or even turn down function in their menu.

Thanks a lot.

CallmeBK commented 3 years ago

I just tested it on my PS vita with Bluetooth headphones connected and it works properly. On the vita, try using the volume buttons and then try using my plugin to change the Bluetooth volume. Let me know if they behave the same way because that's essentially what I'm doing with my plugin for the vita. I'm just telling it to press the volume buttons remotely.

As for turning off in-game sound so you can hear your background music more clearly... I'll have to look into it. What is the plugin that lets you listed to your own music in the background? I'll have to take a look at that source code.

On Thu, Mar 18, 2021, 8:59 PM aliihsanasl @.***> wrote:

No no just the opposite it works properly on PS TV, it controls bluetooth speaker's sound on PS TV but its not functional on PS Vita when you connect bluetooth speaker although the volume bar going up/down.

This will be off topic but if you could manage to cut ingame music when we play MP3 during gameplay that would be awesome. Games like P4G for exmaple has no option to mute or even turn down function in their menu.

Thanks a lot.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/CallmeBK/VolLightbarCtrlWithDS4/issues/3#issuecomment-802459627, or unsubscribe https://github.com/notifications/unsubscribe-auth/AP3JWNOCX4IICWOZ62NWIT3TEKVZPANCNFSM4ZNWUJDA .

aliihsanasl commented 3 years ago

Sorry to bother you before I check it with all the speakers I have, it has nothing to do with using first Vita's speaker buttons its an issue about the speaker/headphone itself. Some devices dont let Vita to control the volume when they're connected. I have 1 Sony, 1 Samsung headphone and around 4 speakers, cheapest model speaker let Vita to change volume (although it has volume control buttons on it too) all others are changing volume bar to grey and deactivate it.

About that ingame music problem, actually Vita dont need any music plugin to play custom MP3s in the background when you press home buttons and turn on stock music player it plays for most of the games but some of the games need more memory for that reason music_premium developed they do work but when you turn on MP3 music it plays at the same time with the game music. There is a main sound bar and MP3 sound bar there is no way to lower game music or totally mute it just like we did with the PSP mp3plugins.

Some game musics are extremely irritating and the only option to mute them is to play the game in total silence when you have lots of custom mp3 in your device.

Music Premium v1.0.5 by cuevavirus Last Release: Jan 18, 2020 Downloads: 1059 PlayStation Vita plugin to enable background music play for any game or application. Inspired by GrapheneCt's MusicNonStop, however Music Premium has these additional premium features. Installation Supported firmware versions: 3.60-3.73

Download the latest version from releases and install under *KERNEL of your taiHEN config.

*KERNEL ur0:tai/music_premium.skprx

CallmeBK commented 3 years ago

Oh I see what you're saying. So it works with some Bluetooth devices, but not others.

And for in game sounds, you want to be able to mute in game music, but allow in game sound effects? That might be a little advanced for me as I am now but I can try looking into it a bit.

On Fri, Mar 19, 2021, 10:33 AM aliihsanasl @.***> wrote:

Sorry to bother you before I check it with all the speakers I have, it has nothing to do with using first Vita's speaker buttons its an issue about the speaker/headphone itself. Some devices dont let Vita to control the volume when they're connected. I have 1 Sony, 1 Samsung headphone and around 4 speakers, cheapest model speaker let Vita to change volume (although it has volume control buttons on it too) all others are changing volume bar to grey and deactivate it.

About that ingame music problem, actually Vita dont need any music plugin to play custom MP3s in the background when you press home buttons and turn on stock music player it plays for most of the games but some of the games need more memory for that reason music_premium developed they do work but when you turn on MP3 music it plays at the same time with the game music. There is a main sound bar and MP3 sound bar there is no way to lower game music or totally mute it just like we did with the PSP mp3plugins.

Some game musics are extremely irritating and the only option to mute them is to play the game in total silence when you have lots of custom mp3 in your device.

Music Premium v1.0.5 by cuevavirus Last Release: Jan 18, 2020 Downloads: 1059 PlayStation Vita plugin to enable background music play for any game or application. Inspired by GrapheneCt's MusicNonStop, however Music Premium has these additional premium features. Installation Supported firmware versions: 3.60-3.73

Download the latest version from releases and install under *KERNEL of your taiHEN config.

*KERNEL ur0:tai/music_premium.skprx

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/CallmeBK/VolLightbarCtrlWithDS4/issues/3#issuecomment-802919352, or unsubscribe https://github.com/notifications/unsubscribe-auth/AP3JWNPSWCYJWPIO66TZANLTENVFJANCNFSM4ZNWUJDA .

aliihsanasl commented 3 years ago

No no all I want is to cut game's all kind of sound (both BGM and sound effects) and just hear my custom MP3 playing from Vita's music player.

CallmeBK commented 3 years ago

Oh actually that sounds much more doable. Let me look into that.

Do you have a PS vita and PSTV?

On Fri, Mar 19, 2021, 11:14 AM aliihsanasl @.***> wrote:

No no all I want is to cut game's all kind of sound (both BGM and sound effects) and just hear my custom MP3 playing from Vita's music player.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/CallmeBK/VolLightbarCtrlWithDS4/issues/3#issuecomment-802947158, or unsubscribe https://github.com/notifications/unsubscribe-auth/AP3JWNNJZOVHT2UAQWVVKB3TENZ5BANCNFSM4ZNWUJDA .

aliihsanasl commented 3 years ago

2 PS TV and a Vita

CallmeBK commented 3 years ago

Oh cool. So you connected all these Bluetooth devices to your PSTV and the volume control through my plugin worked for all of them?

On Fri, Mar 19, 2021, 11:36 AM aliihsanasl @.***> wrote:

2 PS TV and a Vita

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/CallmeBK/VolLightbarCtrlWithDS4/issues/3#issuecomment-802961436, or unsubscribe https://github.com/notifications/unsubscribe-auth/AP3JWNMDTJRGBYRIBGIY53TTEN4P7ANCNFSM4ZNWUJDA .

aliihsanasl commented 3 years ago

Yes all worked fine with PS TV with no problem.

CallmeBK commented 3 years ago

To get all devices working on the vita, I could either figure out how to enable volume control on all devices (which is ideal) or I could use the same logic I did for the PSTV.

I did do digging initially to figure out how to enable volume control on all devices but I kinda got stumped. I'll have to keep looking into that because it is the ideal solution.

On Fri, Mar 19, 2021, 11:56 AM aliihsanasl @.***> wrote:

Yes all worked fine with PS TV with no problem.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/CallmeBK/VolLightbarCtrlWithDS4/issues/3#issuecomment-802975083, or unsubscribe https://github.com/notifications/unsubscribe-auth/AP3JWNLTF3JZITORLBIWRWLTEN64HANCNFSM4ZNWUJDA .

aliihsanasl commented 3 years ago

instead of controlling volume on all devices if you could manage to turn of ingame music during MP3 play (with the option of either to turn off or on) that would be awesome but its your project of course.

CallmeBK commented 3 years ago

I would like for the volume control to work for all devices though too like it does on pstv.

As for the muting game sounds, I'd probably make that as a separate plugin

On Fri, Mar 19, 2021, 1:38 PM aliihsanasl @.***> wrote:

instead of controlling volume on all devices if you could manage to turn of ingame music during MP3 play (with that option either to turn off or on) that would be awesome but its your project of course.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/CallmeBK/VolLightbarCtrlWithDS4/issues/3#issuecomment-803034024, or unsubscribe https://github.com/notifications/unsubscribe-auth/AP3JWNL2Q6UI5SE5JCR5ANTTEOKY5ANCNFSM4ZNWUJDA .

aliihsanasl commented 3 years ago

This is great, thanks a lot mate.

CallmeBK commented 3 years ago

Could you do some testing for me on your PS Vita and one of your PSTV's? Save the VolCtrlDev.skprx attachment to your ur0:tai folder and then add it to the config.txt file under the KERNEL section. Then restart your PS Vita/PSTV.

When your PS Vita/PSTV turns back on, it should show a number of white vertical bars in the bottom left of the screen. See my attached images for examples of what I'm talking about. That number will be different depending on which device has control of the volume. If you have no devices connected on your PS Vita, that means the Vita has control of the volume and you should be seeing 1 white bar. If you have a bluetooth device connected and it has control of the volume, you should be seeing 2 white bars.

The number of bars shown on the screen can be 1, 2, 3, 4, 5, or 6. I want you to tell me how many bars show up on the screen in the scenarios below.

1) PS Vita connected to your cheapest speaker that lets you control volume 2) PS Vita connected to your Sony headphones 3) PS Vita connected to your Samsung headphones 4) PS Vita connected to your other 4 speakers

Then try these last scenarios for the PSTV and let me know how many white bars show up on the screen too:

5) PSTV with no bluetooth devices connected 6) PSTV connected to your cheapest speaker that lets you control volume 7) PSTV connected to your Sony headphones 8) PSTV connected to your Samsung headphones 9) PSTV connected to your other 4 speakers

I know this seems like a lot, but this would really make it clear to me for how to fix the bluetooth headphone/speaker problem you are having on the vita. It could also potentially let me figure out how to use the built-in volume bar indicator on the PSTV (the same one that the VITA uses.

On Fri, Mar 19, 2021 at 2:15 PM aliihsanasl @.***> wrote:

This is great, thanks a lot mate.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/CallmeBK/VolLightbarCtrlWithDS4/issues/3#issuecomment-803054215, or unsubscribe https://github.com/notifications/unsubscribe-auth/AP3JWNI7WFJTNGGQM6QFX5TTEOPGVANCNFSM4ZNWUJDA .

aliihsanasl commented 3 years ago

Alright I'll do it now.

edit where is the VolCtrlDev.skprx file, you didnt share it? And when I add this VolCtrlDev.skprx to tai should I keep your VolLightbarCtrlWithDS4 plugin active and control volume with DS4?

One more thing, your custom volume bar doesnt have AVSL limit, is it there but not appearing or disabled with that automatically although it appears as active in the settings?

edit Ouch nearly 24 hours passed since my message. Btw I wanted charge Samsung sbh-700 but I cant find its charger and one of speakers is in my summerhouse. So I'll use 3 speakers and a Sony headphone.

CallmeBK commented 3 years ago

Have you had any chance to perform these tests?

On Sat, Mar 20, 2021, 6:45 PM aliihsanasl @.***> wrote:

Alright I'll do it now.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/CallmeBK/VolLightbarCtrlWithDS4/issues/3#issuecomment-803479566, or unsubscribe https://github.com/notifications/unsubscribe-auth/AP3JWNIGOJY4AFO5PZTWBMLTEUXS7ANCNFSM4ZNWUJDA .

aliihsanasl commented 3 years ago

How can I make test without VolCtrlDev.skprx?

I asked for it in my last message.

CallmeBK commented 3 years ago

Oh whoops. I was reading your replies from my Gmail and Gmail didn't show me your edits. And it didn't send my attachments either.

IMG_20210320_143253

IMG_20210320_143235

VolCtrlDev.zip

CallmeBK commented 3 years ago

You can keep my other plugin active. The white bars will show on the screen even without you pressing any buttons. AVLS should work fine on the vita. I didn't include it in my custom volume bar for PSTV because I was told that PSTV doesn't have an AVLS setting.

aliihsanasl commented 3 years ago

I'll have shower and eat dinner then try it, thank you.

IMG_20210323_005310

There isn't any difference between 2 devices behaviour the only difference is when they startup Vita has 1 line but PS TV has 5 lines.

Other than that my white Bluetooth speaker has 4 lines, black speaker has 4 lines red one which can be volume controlled from gamepad has 3 lines both on PS TV and Vita.

edit BK since your plugin can change the color of the gamepad is it possible to lower the brightness of the led for power saving purposes? There are different brightness levels when connected to PC but when you connect to Vita its reseting again. Before I saw your plugin I even disconnect the cable of the led to totally turn it off but its cutting gamepad's energy too. So I wonder if its possible to keep it lowest level with the plugin this would save lots of energy there is no need to be that bright just to know the battery level also its reflecting from screen and bothering.

CallmeBK commented 3 years ago

Awesome! This gives me an idea for possibly enabling the built in volume indicator for PSTV and also allowing Bluetooth volume to be controlled even when you have the White and Black speakers connected.

Hmm I never thought of giving the option of changing brightness levels... but I could add that in there too. Would you prefer I add a few options like 25% 50% 75% 100%? Or do you want it more precise than that?

aliihsanasl commented 3 years ago

Imo just 2 levels would be enough lowest and highest.

CallmeBK commented 3 years ago

Okay that should be fairly simple then. I'll probably set that up as a toggle. You have any preferences for what button combination should toggle between bright and dim? I'll try to avoid combinations that I know other plugins use.

CallmeBK commented 3 years ago

Maybe I'll just to cross, square, triangle, circle. I don't think I have to worry about it being awkward because most people will probably only use it once. Ah... but then I have to figure out a way to remember the choice even after you turn the console off. Maybe I'll have it read a text file or something.

aliihsanasl commented 3 years ago

since select + L/R is volume up down, select + L2+R2 would be good for brightness.

What about ingame music mute, can you embed a box on home panel next to volume bar, the one opening when you press and hold Home button?

CallmeBK commented 3 years ago

Sounds good.

Honestly I wouldn't even know where to begin to figure out embedding a checkbox into the quick menu screen. As far as I know, to get quick menu on the vita... developers just enabled the PSTV code. Maybe I could somehow add it to the settings under devices and sound or something.

aliihsanasl commented 3 years ago

Another idea for brightness level when we press and hold turn off gamepad button on the homepanel, it can turn on/off brightness but keeping the level as long as we change it would be cool.

Instead of making a box for ingame music separating main music volume from MP3 player wouşd be easier this way only lowering or fully taking down would control just game music

CallmeBK commented 3 years ago

So basically toggling between 0% light and the brightness setting you had it at right before you changed it to 0%?

aliihsanasl commented 3 years ago

as far as I know even zero doesnt turn it off fully from my pc connection experience. But yes holding the button takes down it as much as possible and once again holding would take it to its current level.

CallmeBK commented 3 years ago

Gotcha. When I was doing my testing initially, I could set the RGB values all to 0 and it would turn the light completely off so that shouldn't be a problem. I'll work on these changes in sections. I'll probably start with trying to enable volume control for all Bluetooth devices first, then I'll work on the lightbar brightness. And then the muting game sounds will be a separate plugin.

aliihsanasl commented 3 years ago

Hi BK, would you consider adding one more function to your plugin? You know games like pinball, shmups, tetris use TATE mod which lets you rotate the screen 90 degrees for better gameplay but for this reason game assumes that you turned the device so that rotates the buttons too but since we use handheld with a gamepad its actually useless.

I wonder if you can manage to add clockwise and counter clockwise rotation to the plugin or maybe consider making a different plugin for this. Games which have PS TV support doesnt need it such as Vasara collection but there are many which dont have such a support.

For PSP go a friend of mine RepRep had written this plugin and made lots of games formerly impossible to play on PSP go because of the sliding screen mechanism made possible.

If you want to know which button will be mapped to which one I have both counter and counter clockwise plugins for PSP.

CallmeBK commented 3 years ago

I'm a little confused as to what you actually want me to do. You want me to add a hotkey to rotate the entire PS vita screen either clockwise or counterclockwise? Or to remap controller buttons when screen is rotates?

I couldn't find these plugins on github under "TATE" or "Reprep". Could you send me links?

aliihsanasl commented 3 years ago

I'm a little confused as to what you actually want me to do. You want me to add a hotkey to rotate the entire PS vita screen either clockwise or counterclockwise? Or to remap controller buttons when screen is rotates?

I couldn't find these plugins on github under "TATE" or "Reprep". Could you send me links?

I want you to remap controller buttons when game forces player to hold controller vertically. I'll send the plugins very soon.

Here I found it https://wololo.net/talk/viewtopic.php?t=41760

this is the problem without such a plugin

http://www.youtube.com/watch?v=2ZCOvuwicKU

CallmeBK commented 3 years ago

Oh that's interesting. I didn't even know there were games that played vertically like that. Have you tried using reVita plugin? You can map all sorts of things the way you like and then that profile is saved for that specific game. and it is remembered too each time you open the game again.

aliihsanasl commented 3 years ago

yes you're right, I'm aware of it but to tell the truth never installed it to this day but it may do the trick actually but is it compatible with gamepad?

because there is such a plugin for PSP go and doesnt remap DS3's buttons just handheld's button it remaps

CallmeBK commented 3 years ago

It is really cool. You can map almost anything you can think of. I really love it.

aliihsanasl commented 3 years ago

alright

CallmeBK commented 3 years ago

What are the model names of the white, black, and red speakers?

And when you had these connected to the vita, did the volume bar show up and adjust up and down when you tried to change the volume with my plugin? (One comment you said the volume bar went gray and another comment said the volume bar went up and down but volume didn't change)

aliihsanasl commented 3 years ago

Only with that red speaker you plugin's sound bar was functional on Vita but with PS TV its functional with all of them. Will you search their bluetooth version? They're pretty old devices especially this red one must be bluetooth v2.0 and I must say this isnt the exact outlook as the one I have but this model number search end up with this image.

HD7014 197922930_

soundlogic sl-87 71W6oJU5ufL

Piranha 7845 IMG_20200115_120151-scaled

Sony N-270 61dXMR0fMDL _SY445_

CallmeBK commented 3 years ago

looking back at one of the images you sent, I see that the Sony N-270 shows up in your devices and sounds menu with the headset icon. Do they all show the headset icon or do some show a speaker icon?

CallmeBK commented 3 years ago

I just found out when my Anker Soundcore mini is connected to my vita, the volume bar goes up and down but the sound doesn't actually change. Does that happen with any of your speakers?

aliihsanasl commented 3 years ago

I just found out when my Anker Soundcore mini is connected to my vita, the volume bar goes up and down but the sound doesn't actually change. Does that happen with any of your speakers?

No I never experienced such a problem.

All my devices appear as headset

Btw my white speakers model appear different in that list.

IMG_20210325_022357

aliihsanasl commented 3 years ago

Did you achieve separating games music volume from MP3 volume and what about led brightness adjustment, is there hope?

CallmeBK commented 3 years ago

Oh I haven't looked at that stuff yet. I've been dealing with the flu the last couple of days and I've recently started feeling well enough to start looking at these things.

aliihsanasl commented 3 years ago

Oh take care of yourself, I wish you good health. How old are you?

CallmeBK commented 3 years ago

I am 27 and will be turning 28 in May

CallmeBK commented 3 years ago

I have Samsung galaxy buds. I also have that Anker Soundcore mini. They actually both show 2 white bars on my ps vita. The bars represent the type of device that has control of the volume. 1 bar means vita has control, 2/3/4 bars mean Bluetooth device has control, 5 bars mean PSTV has control, 6 bars mean no device has control (I've only seen this for a split second after waking PS vita from sleep mode).

Right now I'm trying to figure out the difference between Bluetooth speakers that show 2, 3, or 4 bars. I think how the volume indicator bar behaves is determined by the type of device that has control (which makes sense). My idea to get the volume indicator bar working properly on all Bluetooth devices was to force the volume control device type to 2 bars. But then again, I probably don't need to know the difference between 2/3/4 bars and I could just test my theory of forcing them all to 2 bars. But I'd still like to know the difference for the sake of curiosity.

Aa for getting the sound to change properly on the vita all the time, I can change the volume the same way I do for the PSTV.

I'll work on getting something together for more testing.

aliihsanasl commented 3 years ago

I found Samsung headset's adapter charging it now then I'll try it with PS TV and Vita.

4 bars both on PS TV and Vita and PS TV can control the volume level but not Vita

IMG_20210325_041800

CallmeBK commented 3 years ago

16166415634708585555383560456093

When you select each of your speaker devices, what does each screen look like? Here's what my Samsung galaxy buds shows.

I'm curious if the profiles of your speakers will match mine (A2DP, AVRCP)