Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Max volume when unpausing music (sometimes occur) #20

Closed
Vaarelsauce opened this issue Jul 8, 2022 · 10 comments
Closed

Max volume when unpausing music (sometimes occur) #20

Vaarelsauce opened this issue Jul 8, 2022 · 10 comments
Labels
bug Something isn't working

Comments

@Vaarelsauce
Copy link

Vaarelsauce commented Jul 8, 2022

EDIT: Iphone XR device.

For example, I set the shairport volume to 50%, and play a song on Spotify. When I pause the Spotify song to watch like a short YouTube video, and then unpause the Spotify song, the shairport volume would automatically be adjusted to 100% and blast my ears off. Is there any way to circumvent this auto-correction?

Or at least, I recommend implementing a feature where you can adjust shairport's "default" volume setting.

@Fletcher-Alderton
Copy link

Yea this also happens to me

@Frank-Friemel
Copy link
Owner

Frank-Friemel commented Sep 28, 2022

This may be problem of iOS. Please record a log file -> it's available in the Options dialog. The log file will appear in the same folder as Shairport.exe. You probably have to start Shairport "elevated" in case the exe is located in your program folder - otherwise the log file can not be created. Then reproduce the error. Afterwards, search the log file for the word "volume".

Don't forget to disable the log option when you're done

@Vaarelsauce
Copy link
Author

Vaarelsauce commented Oct 29, 2022

This may be problem of iOS. Please record a log file -> it's available in the Options dialog. The log file will appear in the same folder as Shairport.exe. You probably have to start Shairport "elevated" in case the exe is located in your program folder - otherwise the log file can not be created. Then reproduce the error. Afterwards, search the log file for the word "volume".

Don't forget to disable the log option when you're done

Unfortunately, the problem still persists even after I:

  1. Ran as adminstration / elevated status
  2. Manually gave "Full Access" permission to every group/user
  3. Created a log file, in the same Desktop folder as shairport4w.exe and searched for the word "volume". There doesn't seem to be anything out of the ordinary.

I have a pretty rough hypothesis of what's going on, though. I'm assuming that whenever my phone screen turns off, Shairport4w "disconnect" the connection with the phone passively, and kind of erasing all the temp stuff including volume. Whenever I play the music again, it wakes up the standby connection as if it was a cold start.
So ultimately, the issue stems from.....my device "flushing the temp data" when I turn off the screen?

EDIT: At least that issue is reproducible 10/10 times now. Whenever I stop the music, turn off my phone screen, turn it on again, and press the play button, the audio gets resetted back to maximum (or whatever ear-blasting volume it defaults to). And it doesn't even match with the volume displayed on my Apple Music volume bar.

EDIT2: So the sequence of event goes:

Shairport: Ready
Phone: Connect to Shairport4w 
Shairport: Ready
Phone: Play music
Shairport: Connected to "phone_name" -> plays music (50/50 chance to play at appropriate volume)
Phone: Pause music
Shairport: Ready
Shairport: (after a few seconds) Connected
Phone: Continues music again 
Shairport: Connected to "phone_name" -> Ears gets obliterated.

For now, my temporary workaround is to adjust Shairport4w via Volume Mixer to the appropriate volume on PC (literally at 1-4%), and then just set max volume on the phone.

@Frank-Friemel
Copy link
Owner

It‘s not clear to me which volume you mean. Is it the volume on your iPhone device? Or is it the volume on your PC? And please post the log file that you‘ve recorded

@Vaarelsauce
Copy link
Author

It‘s not clear to me which volume you mean. Is it the volume on your iPhone device? Or is it the volume on your PC? And please post the log file that you‘ve recorded

The audio on the PC sounded as if the phone's sound level was adjusted to max, even though on the phone it remains at 10% sound level. Only when I adjust the phone's sound level up or down, will the audio on the PC gets "re-synced" to the accurate phone's sound level.

I've attached the debugging log file below.
Shairport4wx64.log

@albino1
Copy link

albino1 commented Nov 1, 2022

I've always had this, as long as I've used Shairport4w, as does the person who originally introduced me to Shairpor4w 3+ years ago since we've talked about it several times as the only real downside to using it. The audio jumps up in volume, however the volume slider hasn't changed on the phone. If you move the slider even a tiny amount the volume returns to its currently set position.

Set the volume slider to something low like 10%, play something, pause it for an extended period, unpause it and the volume level is drastically increased. Lightly touch the slider and the volume immediately drops back to 10%.

It's like the volume gets unset and you have to reset it. I find this is much more obvious with podcasts than music as somebody who was previously talking quietly is now talking loudly.

I've had this with multiple iPhones across multiple versions of iOS, probably since at least iOS 13 with an iPhone XS Max. I've always assumed it was a iPhone/iOS issue and there's nothing Shairport4w could do about it, but I would love to see a fix if possible.

This is currently on an iPhone 14 Pro Max running iOS 16.1 using Windows 10 Pro.

@Frank-Friemel Frank-Friemel added the bug Something isn't working label Dec 16, 2022
@Frank-Friemel
Copy link
Owner

Should be fixed with version 1.0.9.6 https://github.com/Frank-Friemel/Shairport4w/releases/tag/1.0.9.6

olivierlevon added a commit to olivierlevon/Shairport4w that referenced this issue Dec 18, 2022
@albino1
Copy link

albino1 commented Dec 19, 2022

It's early, and I've only just tested it with some play/pauses, and some switching podcasts, but it seems like it might be fixed!

I did notice that if I connect to Shairport, then switch to my phone audio, and then back to Shairport the volume drops, but that's probably not related, and honestly not a big deal. The real problem was always pausing/playing and having volume jumps while still connected, and I haven't managed to trigger that. I'll update after more testing in the next day or two.

Edit: I'm editing to say that I've been using it for several days now and it seems to be working as intended. Such a huge quality of life improvement, thank you for implementing the fix!

@jamesvincent
Copy link

I'm new to the party, but came here to see if anyone had mentioned the fact that reconnecting to SharePort4w after say a phone call etc, when reconnecting AirPlay, it's as though the hardcoded default "starting volume" is set to ~25%.

It would be nice if this "startup" volume could match OS volume, or be user selectable.

I have my PC set at the "right volume", for notifications etc - which is around 40% total output. But when I airplay, the music comes out at 25% of the 40% so its really quiet, and always requires me to turn it up....

Shouldn't really complain, ShairPort4w is the only app I've found that sits nicely in the Task Tray, and for that I am very happy/grateful.

@albino1
Copy link

albino1 commented Jun 6, 2024

I agree, it would be nice if it just remembered the volume you used previously. Maybe you should make that it's own issue for visibility?

Also, it's ~18 months later and the original volume problem reported in this thread is definitely fixed, so thank you for that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants