Skip to content

Commit

Permalink
update playlist states
Browse files Browse the repository at this point in the history
  • Loading branch information
EvandroLG committed Oct 30, 2020
1 parent f1fc431 commit d14be79
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion demo/audio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
},
"devDependencies": {
"parcel": "^1.12.4",
"ts-audio": "0.4.4"
"ts-audio": "0.4.5"
}
}
2 changes: 1 addition & 1 deletion demo/playlist/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
},
"devDependencies": {
"parcel": "^1.12.4",
"ts-audio": "0.4.4"
"ts-audio": "0.4.5"
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.4.4",
"version": "0.4.5",
"license": "MIT",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions src/playlist/playAudio.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import Audio from '../audio/Audio';
import { EventType, EventEmitterType } from '../EventEmitter';
import { StatesType } from './types';
import { StatesPlaylistType } from './types';

const playAudio = (states: StatesType, emmiter: EventEmitterType) => {
const playAudio = (states: StatesPlaylistType, emmiter: EventEmitterType) => {
const _playAudio = (index: number, files: string[], loop: boolean) => {
const file = files[index];

Expand Down
4 changes: 2 additions & 2 deletions src/playlist/states.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { StatesType } from './types';
import { StatesPlaylistType } from './types';

const states: StatesType = {
const states: StatesPlaylistType = {
volume: 1,
loop: false,
audio: null,
Expand Down
2 changes: 1 addition & 1 deletion src/playlist/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export type PlaylistPropType = {
loop?: boolean;
};

export type StatesType = {
export type StatesPlaylistType = {
volume: number;
loop: boolean;
audio: AudioType | null;
Expand Down

0 comments on commit d14be79

Please sign in to comment.