wpf_player.AudioPlayerModel.convertSizeToChunk C# (CSharp) Method

convertSizeToChunk() private method

Convert a size in byte to a number of chunk.
private convertSizeToChunk ( long size ) : int
size long Size to convert
return int
        private int convertSizeToChunk(long size)
        {
            int cl = this.peer.ChunkLength * 1024;
            if (cl == 0) return 0;
            return (int)(size / cl);
        }