Hi!

2013/9/20 Léo Colisson <[email protected]>:
> Excuse me for the long time I spent to answer, I've never receive the answer
> and I saw that you answer just today because I find this topic in archives
> in Sourceforge. Thanks you for your answer !

You probably are not subscribed to the list..

>> Ogg.Stream.pagesout should be fine to use. I don't think that it is
>> deprecated. It is packet manipulation that you should avoid because packets
>> are small and can potentially waste a lot of CPU and memory. Pages are ogg
>> stream units and are mighty fine to use.
>
>
> I thought it was deprecated because in ogg.mli, I can see "Backward
> compatibility" :
>   (** Backward compatibility *)
>
>   [...]
>   val pagesout_eos : t -> string

These are old functions that should probably have been removed long time ago.

I will remove them now, but you can still use them with this code if you need:

  (** Backward compatibility *)
  type t = stream

  let s_o_f (h,b) = h ^ b

  let pageout s = s_o_f (get_page s)

  let pagesout s =
    let rec f v =
      try
        let n = pageout s in
        f (v ^ n)
      with
        | Not_enough_data -> v
    in
    f ""

  let flush s =
    let rec f v =
      try
        let v = v ^ (s_o_f (flush_page s)) in
        f v
      with
        | Not_enough_data -> v
    in
    f ""

  let pagesout_eos s =
    let rec f v =
      let p = flush_page s in
      let v = v ^ (s_o_f p) in
      if Page.eos p then
       v
      else
       f v
    in
    f ""

R.

------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to