/* USBH_AUDIO_GetOutOffset return the current buffer pointer for OUT proces.  */
int32_t USBH_AUDIO_GetOutOffset(USBH_HandleTypeDef *phost)
/* USBH_AUDIO_GetOutOffset return the current buffer pointer for OUT proces.  */
int32_t USBH_AUDIO_GetOutOffset(USBH_HandleTypeDef *phost)
{
  AUDIO_HandleTypeDef *AUDIO_Handle; 
  if(phost->gState == HOST_CLASS)
  {
    AUDIO_Handle =  phost->pActiveClass->pData;
    if(AUDIO_Handle->play_state == AUDIO_PLAYBACK_PLAY)
    {
      return AUDIO_Handle->headphone.partial_ptr;
    }
  }
  return -1;  
}