GoldenGnu / jeveassets

jEveAssets is an out-of-game asset manager for Eve-Online, written in Java
http://eve.nikr.net/jeveasset
GNU General Public License v2.0
147 stars 36 forks source link

Stockpile Sound Alerts #378

Open Mr00Anderson opened 1 year ago

Mr00Anderson commented 1 year ago

It would be useful to be able to set alerts in several spots, I saw some in the options. Two parts.

  1. Be able to select custom files, instead of the defaults in the settings.
  2. Set alerts for stockpile sell outs via visual and audio notification. The options could be per item, or stockpile, probably stockpile is easier. With the option for unique sound per stockpile.

There may be a few other places for this I am unsure of the top of my head.

GoldenGnu commented 1 year ago

I do want to allow for the users own sounds, but, that is a much larger task, as Java only support wave files (and a few other uncompressed formats). Supporting mp3 would be a requirement for users file to make sense (I think).

I do want sounds for more things, and more default sounds too. The framework for that is in place and super easy to expand on.

Mr00Anderson commented 1 year ago

Some Library Options:

  1. JavaFX API - https://stackoverflow.com/questions/6045384/playing-mp3-and-wav-in-java
  2. Other Library - https://odoepner.wordpress.com/2013/07/19/play-mp3-or-ogg-using-javax-sound-sampled-mp3spi-vorbisspi/
GoldenGnu commented 1 year ago

I'm going to look into this

GoldenGnu commented 1 year ago

Be able to select custom files, instead of the defaults in the settings.

Done :)

Set alerts for stockpile sell outs via visual and audio notification. The options could be per item, or stockpile, probably stockpile is easier. With the option for unique sound per stockpile.

How do you envision this working? My main problem with it is that stockpile are always updated when updating data from ESI. To me it feel kinda weird to have a sound alert on the ESI update. On top of that stockpiles are not calculated, unless the stockpile tool is opened. To have a consistent sound alerts, you would have to do the stockpile calculation regardless of the tool is open or not.