Thank you very much!

On Tue, Jun 25, 2013 at 6:51 PM, Romain Beauxis <[email protected]>wrote:

> Hi,
>
> 2013/6/25 JD Buys <[email protected]>:
> > How do you access the samplerate attribute / value in the output file??
> >
> > For example if I want to print the samplerate to the log file from the
> > icecast2.ml output?
>
> The icecast_info variable in src/outputs/icecast2.ml should contain
> the samplerate value, as well as quality/bitrate and channels.
>
> You can try this for instance:
>
> --- a/src/outputs/icecast2.ml
> +++ b/src/outputs/icecast2.ml
> @@ -235,6 +235,13 @@ class output ~kind p =
>        icy_metadata,ogg =
>      encoder_data p
>    in
> +
> +  let () =
> +    Printf.printf "samplerate: %s\n"
> +      (match icecast_info.samplerate with
> +         | None -> "unknown"
> +         | Some br -> string_of_int br)
> +  in
>
>    let out_enc =
>      match Lang.to_string (List.assoc "encoding" p) with
>
> Romain
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Windows:
>
> Build for Windows Store.
>
> http://p.sf.net/sfu/windows-dev2dev
> _______________________________________________
> Savonet-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/savonet-users
>
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to