int SP_CALLCONV Session::callback_music_delivery(sp_session *session, const sp_audioformat *format, const void *frames, int num_frames) { Session* pSession = GetSessionFromUserdata( session ); return pSession->OnMusicDelivery( format, frames, num_frames ); }