Big issue on libvlc_audio_set_format

This forum is about all development around libVLC.
fabsther
Blank Cone
Blank Cone
Posts: 13
Joined: 04 Jun 2015 16:32

Big issue on libvlc_audio_set_format

Postby fabsther » 30 Jan 2016 23:31

Hi,

I've just spended my day trying to import sound in my software from VLC.

For that purpose, I used both libvlc_audio_set_callbacks and libvlc_audio_set_format.

Since my software is in c# and use float ranged [-1 : 1], I wasted a lot of time tring to figure out what fourCC push to VLC to get my IEEE float 32 bit audio.
After hour of failure, I ended by searching the issue in VLC himself.
And I found it : the current version completely ignore the given audio format, and worse, fallback to an very unprecise Signed 16 bit audio.

Just deleting the line 188 will let me continue to develop my software :

|| strcmp(format, "S16N") /* TODO: amem-format */)

It will save my current project, really, If I could use the float output..

Best regards !

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Big issue on libvlc_audio_set_format

Postby Jean-Baptiste Kempf » 28 Jun 2016 09:42

This is getting done.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 18 guests