1*5500cea7S猫头猫import {State} from 'react-native-track-player'; 2*5500cea7S猫头猫 3*5500cea7S猫头猫/** 4*5500cea7S猫头猫 * 音乐是否处于停止状态 5*5500cea7S猫头猫 * @param state 6*5500cea7S猫头猫 * @returns 7*5500cea7S猫头猫 */ 8*5500cea7S猫头猫export const musicIsPaused = (state: State | undefined) => 9*5500cea7S猫头猫 state !== State.Playing; 10*5500cea7S猫头猫 11*5500cea7S猫头猫/** 12*5500cea7S猫头猫 * 音乐是否处于缓冲中状态 13*5500cea7S猫头猫 * @param state 14*5500cea7S猫头猫 * @returns 15*5500cea7S猫头猫 */ 16*5500cea7S猫头猫export const musicIsBuffering = (state: State | undefined) => 17*5500cea7S猫头猫 state === State.Loading || state === State.Buffering; 18