コード例 #1
0
        /// <summary>
        /// Retrieve the Broadcast Extension chunk from the given <paramref name="sndfile"/> file.
        /// </summary>
        /// <param name="sndfile">Audio file to examine for broadcast info chunk.</param>
        /// <returns><see cref="LibsndfileBroadcastInfo"/> structure containing broadcast info.</returns>
        public LibsndfileBroadcastInfo?GetBroadcastInfo(IntPtr sndfile)
        {
            if (sndfile == IntPtr.Zero)
            {
                throw new ArgumentException("File handle is invalid/closed.");
            }

            return(m_Api.GetBroadcastInfo(sndfile));
        }