Restore audio functionality. Begone, ribbit!
This commit is contained in:
parent
a47781fb95
commit
af717ce3b8
4 changed files with 2 additions and 12 deletions
|
@ -104,7 +104,7 @@ export function updateNotificationsQueue(notification, intlMessages, intlLocale,
|
||||||
if (playSound && !filtered) {
|
if (playSound && !filtered) {
|
||||||
dispatch({
|
dispatch({
|
||||||
type: NOTIFICATIONS_UPDATE_NOOP,
|
type: NOTIFICATIONS_UPDATE_NOOP,
|
||||||
meta: { sound: 'ribbit' },
|
meta: { sound: 'boop' },
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@ const play = audio => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// audio.play();
|
audio.play();
|
||||||
};
|
};
|
||||||
|
|
||||||
export default function soundsMiddleware() {
|
export default function soundsMiddleware() {
|
||||||
|
@ -36,16 +36,6 @@ export default function soundsMiddleware() {
|
||||||
type: 'audio/mpeg',
|
type: 'audio/mpeg',
|
||||||
},
|
},
|
||||||
]),
|
]),
|
||||||
ribbit: createAudio([
|
|
||||||
{
|
|
||||||
src: '/sounds/ribbit.ogg',
|
|
||||||
type: 'audio/ogg',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
src: '/sounds/ribbit.mp3',
|
|
||||||
type: 'audio/mpeg',
|
|
||||||
},
|
|
||||||
]),
|
|
||||||
};
|
};
|
||||||
|
|
||||||
return () => next => action => {
|
return () => next => action => {
|
||||||
|
|
BIN
public/sounds/boop.mp3
Normal file
BIN
public/sounds/boop.mp3
Normal file
Binary file not shown.
BIN
public/sounds/boop.ogg
Normal file
BIN
public/sounds/boop.ogg
Normal file
Binary file not shown.
Loading…
Reference in a new issue