[haiku-development] Re: Calculate time in minutes

  • From: Giovanni Mugnai <musical777@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Tue, 4 Dec 2012 22:59:37 +0100

2012/12/4 Marcus Overhagen <marcus.overhagen@xxxxxxxxx>:
> The Haiku Media kit will convert any mp3, wav, aiff, avi, mpeg etc. file
> into 16 bit int raw, good for audio, provided that the files are
> 44100Hz stereo (which allmost all files are). You need to request the
> correct
> format from BMediaTrack::DecodedFormat
> something like:
>
>         media_raw_audio_format format;
>         format = media_raw_audio_format::wildcard;
>         format.frame_rate = 44100;
>         format.channel_count = 2;
>         format.format = media_raw_audio_format::B_AUDIO_SHORT;
>         format.byte_order = B_MEDIA_LITTLE_ENDIAN;
>
> regards
> Marcus
>

Hi Marcus,
this works like a charm: in this way i can add any kind of media file!
But happen a strange issue: after adding this code and typing "make"
to build, BurnItNow has lost all icons in the GUI: and if i remove the
conversion code, all icons (always after "make") reapperas again! Why?

Other related posts: