@@ -46,7 +46,7 @@ export function Player({ music, musicList }: PlayerProps) {
4646 const [ timePosition , setTimePosition ] = useState ( 0 ) ;
4747 const [ playbackRate , setPlaybackRate ] = useState ( 1 ) ;
4848 const [ source , setSource ] = useState < MediaElementAudioSourceNode | null > (
49- null
49+ null ,
5050 ) ;
5151 const [ analyserNode , setAnalyserNode ] = useState < AnalyserNode | null > ( null ) ;
5252 const [ isCircular , setIsCircular ] = useState ( false ) ;
@@ -97,7 +97,7 @@ export function Player({ music, musicList }: PlayerProps) {
9797 if ( ! audioRef . current ) return ;
9898 audioCtxRef . current = new AudioContext ( ) ;
9999 const elementSource = audioCtxRef . current . createMediaElementSource (
100- audioRef . current
100+ audioRef . current ,
101101 ) ;
102102 const analyser = audioCtxRef . current . createAnalyser ( ) ;
103103 analyser . fftSize = 2 ** 8 ;
@@ -221,7 +221,7 @@ export function Player({ music, musicList }: PlayerProps) {
221221 innerRadius ,
222222 - barWidthCirc / 2 ,
223223 barHeight ,
224- barWidthCirc
224+ barWidthCirc ,
225225 ) ;
226226 canvasCtx . restore ( ) ;
227227 }
@@ -235,7 +235,7 @@ export function Player({ music, musicList }: PlayerProps) {
235235 0 ,
236236 canvas . height ,
237237 0 ,
238- 0
238+ 0 ,
239239 ) ;
240240 gradient . addColorStop ( 0 , `hsla(${ hue } , 100%, 50%, 0.4)` ) ;
241241 gradient . addColorStop ( 1 , `hsla(${ hue } , 100%, 50%, 0.2)` ) ;
@@ -245,7 +245,7 @@ export function Player({ music, musicList }: PlayerProps) {
245245 x ,
246246 canvas . height - barHeight ,
247247 barWidth - 1 ,
248- barHeight
248+ barHeight ,
249249 ) ;
250250 x += barWidth ;
251251 }
@@ -304,15 +304,15 @@ export function Player({ music, musicList }: PlayerProps) {
304304 if ( ! audioRef . current ) return ;
305305 audioRef . current . currentTime = Math . min (
306306 audioRef . current . currentTime + 10 ,
307- duration
307+ duration ,
308308 ) ;
309309 } ;
310310
311311 const handleSkipBackward = ( ) => {
312312 if ( ! audioRef . current ) return ;
313313 audioRef . current . currentTime = Math . max (
314314 audioRef . current . currentTime - 5 ,
315- 0
315+ 0 ,
316316 ) ;
317317 } ;
318318
@@ -370,7 +370,7 @@ export function Player({ music, musicList }: PlayerProps) {
370370
371371 const handleEqChange = (
372372 index : number ,
373- e : React . ChangeEvent < HTMLInputElement >
373+ e : React . ChangeEvent < HTMLInputElement > ,
374374 ) => {
375375 const newGains = [ ...eqGains ] ;
376376 newGains [ index ] = parseFloat ( e . target . value ) ;
0 commit comments