libvlc_audio_play_cb functionality

This forum is about all development around libVLC.
jdwiegman
New Cone
New Cone
Posts: 8
Joined: 29 May 2013 20:11

libvlc_audio_play_cb functionality

Postby jdwiegman » 22 Aug 2014 23:50

I am writing a utility that needs to use the audio samples (for example, for visualization).

I have code working using libvlc_audio_play_cb and my callback function, but obviously this stops VLC's play-out mechanism. Is there a way to just have my function decorate or augment VLC's native play, or do I need to write my own player functionality if I want to do this?

jdwiegman
New Cone
New Cone
Posts: 8
Joined: 29 May 2013 20:11

Re: libvlc_audio_play_cb functionality

Postby jdwiegman » 09 Sep 2014 00:31

I am thinking libvlc_audio_play_cb isn't the right mechanism for this. My samples are getting the volume adjustment. Is there another/better method to get access to the raw decoded audio packets?

Rémi Denis-Courmont
Developer
Developer
Posts: 15229
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: libvlc_audio_play_cb functionality

Postby Rémi Denis-Courmont » 09 Sep 2014 20:10

You can register a volume callback with libvlc_audio_set_volume_callback() if you don't want LibVLC to perform amplification.

There are intrinsically no ways to perform play back in LibVLC while capturing audio samples. You would need to use the version-dependent plugin API and write an audio filter.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 12 guests