UniversityRadioYork / ury-rapid

(obsolete) Radio API Daemon
BSD 2-Clause "Simplified" License
2 stars 0 forks source link

Add volume #8

Closed MattWindsor91 closed 10 years ago

MattWindsor91 commented 10 years ago

bra currently doesn't model the volume for channels. Interestingly, BAPS allows volume changes, even though normally the volume is controlled by hardware.

Need to:

  1. Figure out whether bra should model volume as a float or an integer, and which range to use (BAPS uses a float, not sure what the range is but probably 0-100);
  2. Create a model object for volume (this will probably be a PlayerVariable with a newly written validator);
  3. Add commands and handlers (see issue #7) for PUTting and DELETEing the volume (DELETE would set volume to 0%, I think, but I'm not sure).