wpf_player.AudioPlayerModel.convertSizeToChunk C# (CSharp) Méthode

convertSizeToChunk() private méthode

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