jessesquires / JSQSystemSoundPlayer

A fancy Obj-C wrapper for Cocoa System Sound Services
https://jessesquires.github.io/JSQSystemSoundPlayer/
Other
581 stars 107 forks source link

How to adjust volume? #40

Closed MHX792 closed 8 years ago

MHX792 commented 8 years ago

Hi!

How to make JSQSystemSoundPlayer follow the volume settings of the device? The sound is just too loud...

Thanks!

jessesquires commented 8 years ago

Hey @MHX792 😄

You can't adjust the volume for System Sound Services — it uses the user's current settings. Playing sounds via JSQSystemSoundPlayer goes through the same pipeline as system alerts/sounds, for example, the sound played when receiving a text message.

See the README for more details. If you need to control volume, you'll need to use AVFoundation.