Hello,<br><br>I'm trying to write a media player with a custom UI, some functionality of it may end up in upstream later.<br><br>First of all I would like to implement a progress bar widget similar to <a href="http://soundcloud.com/">http://soundcloud.com/</a>. For that I need an access to <a href="http://www.google.com/url?sa=t&source=web&cd=1&ved=0CBYQFjAA&url=http%3A%2F%2Fwiki.videolan.org%2FLibVLC_SampleCode_Qt&ei=YiUrTbj1OpKR4Abhu4DQCQ&usg=AFQjCNHtDP819pJwRWLcjbrrZLWeTskCSg&sig2=MP7feyw7MhLGu1KJcNxgLQ" class="l"><em></em></a>raw decompressed audio data. I started with "LibVLC SampleCode Qt". Investigating  VLC sources and various examples I ended up with this:<br>
<br>    ...<br>    libvlc_media_player_play (_mp);<br><br>    vlc_object_hold(_vlcinstance->p_libvlc_int);<br>    vlc_object_t *vlc_obj = (vlc_object_t *) _vlcinstance->p_libvlc_int;<br><br>    aout_instance_t *p_aout = (aout_instance_t *)vlc_obj;<br>
    aout_buffer_t *p_buffer;<br><br>    vlc_mutex_lock(&p_aout->output_fifo_lock);<br>    p_buffer = aout_FifoPop( p_aout, &p_aout->output.fifo);<br>    vlc_mutex_unlock(&p_aout->output_fifo_lock);<br>
<br>    if (p_buffer != NULL)<br>        printf("Buffer size: %d\n", (unsigned int)p_buffer->i_buffer);<br>    else<br>        printf("Failed to access audio\n");<br>    ...<br><br>I can never get p_buffer valid. What do I do wrong?<br>
<br>--<br>Sergey<br>