mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-25 19:13:54 +00:00
Initialize preamp gain
This commit is contained in:
parent
7f469cb13e
commit
f03c88c6d8
1 changed files with 4 additions and 2 deletions
|
|
@ -26,13 +26,15 @@ import { objectForEach } from "./utils";
|
|||
|
||||
export default (media: Media) => (store: MiddlewareStore) => {
|
||||
const {
|
||||
media: { volume, balance }
|
||||
media: { volume, balance },
|
||||
equalizer: { sliders }
|
||||
} = store.getState();
|
||||
|
||||
// Ensure the default state is the canonical value.
|
||||
media.setVolume(volume);
|
||||
media.setBalance(balance);
|
||||
// TODO: Ensure other values like bands and preamp are in sync
|
||||
media.setPreamp(sliders.preamp);
|
||||
// TODO: Ensure other values like bands are in sync
|
||||
|
||||
media.on("timeupdate", () => {
|
||||
store.dispatch({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue