blob: f0bf0e946fafbb1dcb3cd028b7acbc1313a8a8ea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
import AudioPlayer from 'site/audio/audio.player'
import * as types from 'site/types'
const initialState = {
player: new AudioPlayer(),
}
export default function audioReducer(state = initialState, action) {
// console.log(action.type, action)
switch (action.type) {
case types.site.loaded:
state.player.load(action.data.graph)
return state
default:
return state
}
}
|