mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-21 00:59:29 +00:00
Pass only the analyser to the main window
This commit is contained in:
parent
bc41ba3ef2
commit
2a11bd6b34
2 changed files with 4 additions and 3 deletions
|
|
@ -31,8 +31,9 @@ const App = ({
|
|||
}
|
||||
switch (id) {
|
||||
case "main":
|
||||
// TODO: Pass only the analyser node
|
||||
return <MainWindow mediaPlayer={media} filePickers={filePickers} />;
|
||||
return (
|
||||
<MainWindow analyser={media._analyser} filePickers={filePickers} />
|
||||
);
|
||||
case "equalizer":
|
||||
return <EqualizerWindow />;
|
||||
case "playlist":
|
||||
|
|
|
|||
|
|
@ -114,7 +114,7 @@ export class MainWindow extends React.Component {
|
|||
/>
|
||||
<Time />
|
||||
</div>
|
||||
<Visualizer analyser={this.props.mediaPlayer._analyser} />
|
||||
<Visualizer analyser={this.props.analyser} />
|
||||
<div className="media-info">
|
||||
<Marquee />
|
||||
<Kbps />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue