Page 1 of 1

This is really annoying. Please help for equalizer

Posted: 12 Jan 2015 10:15
by spider58
All my code below. Whats wrong i can't understand

Defines

Code: Select all

<DllImport("libvlc",CallingConvention:=CallinConvention.Cdecl)> _ Public Shared Function libvlc_audio_equalizer_new() as Intptr <DllImport("libvlc",CallingConvention:=CallinConvention.Cdecl)> _ Public Shared Function libvlc_audio_equalizer_set_amp_at_index( Byval equalizer as IntPtr, f_amp as Single, u_band as Integer) As Integer
Usage

Code: Select all

dim equal as Intptr = libvlc_audio_equalizer_new() libvlc_audio_equalizer_set_amp_at_index(equal,10.2F,0) libvlc_audio_equalizer_set_amp_at_index(equal,0F,1) libvlc_audio_equalizer_set_amp_at_index(equal,-5.1F,2) libvlc_audio_equalizer_set_amp_at_index(equal,10.0F,3) libvlc_audio_equalizer_set_amp_at_index(equal,-10.2F,4) libvlc_audio_equalizer_set_amp_at_index(equal,-20.0F,5) libvlc_audio_equalizer_set_amp_at_index(equal,10.2F,6) libvlc_audio_equalizer_set_amp_at_index(equal,10.2F,7) libvlc_audio_equalizer_set_amp_at_index(equal,10.2F,8) libvlc_audio_equalizer_set_amp_at_index(equal,10.2F,9) libvlc_media_player_set_equalizer(PlayerHandle,equal)
Nothing happening. Sound doesn't change. :evil: :evil: :evil: :evil:

Thanks inadvance

Re: This is really annoying. Please help for equalizer

Posted: 12 Jan 2015 17:37
by spider58
note: i using 2.2.0 x64 and compiling my application as ANY CPU.

i'm tried to get amp after set amp

Code: Select all

libvlc_audio_equalizer_get_amp_at_index(equal,0)
this returns correct value which i applied before.

But why sound not affected by equalizer i have no idea.
Im working on hours for this problem.

gonna mad :?

Re: This is really annoying. Please help for equalizer

Posted: 12 Jan 2015 18:19
by sherington
I wrote some test code when the equalizer in LibVLC was first implemented, I've copied it here:

https://gist.github.com/caprica/1a6d0468675af33f7d36

The linked code contains test cases for setting equalizer before playback, during playback, having the equalizer settings persist when changing media and so on.

I just tested this against the latest vlc git and it works properly. I also test with Java bindings and it works fine there too.

I can only suggest that there must be something wrong with your language bindings, but I don't use whatever language it is you're using so I can't say any more.

Re: This is really annoying. Please help for equalizer

Posted: 12 Jan 2015 21:43
by mangokm40
"All my code below...."

Don't you need a call to libvlc_media_player_set_equalizer()? I thought THAT's when the change happened.

Re: This is really annoying. Please help for equalizer

Posted: 13 Jan 2015 07:41
by spider58
"All my code below...."

Don't you need a call to libvlc_media_player_set_equalizer()? I thought THAT's when the change happened.
my code has this line. you can scroll down :)

Re: This is really annoying. Please help for equalizer

Posted: 13 Jan 2015 07:42
by spider58
I wrote some test code when the equalizer in LibVLC was first implemented, I've copied it here:

https://gist.github.com/caprica/1a6d0468675af33f7d36

The linked code contains test cases for setting equalizer before playback, during playback, having the equalizer settings persist when changing media and so on.

I just tested this against the latest vlc git and it works properly. I also test with Java bindings and it works fine there too.

I can only suggest that there must be something wrong with your language bindings, but I don't use whatever language it is you're using so I can't say any more.
thank you. i know this page :) yesterday i visited. and tried same lines, doesn't works.

can you show libvlc.dll defining lines for me please

Re: This is really annoying. Please help for equalizer

Posted: 13 Jan 2015 07:53
by spider58
I FOUND PROBLEM

2.2.0 has problem. 3.0 nightly building working good without any code changes.


http://nightlies.videolan.org/build/win ... 2-win64.7z

So what can i do? I can't use nightly building. I must use stable version.

Re: This is really annoying. Please help for equalizer

Posted: 18 Jan 2015 08:09
by Jean-Baptiste Kempf
@sherington: is it working with 2.2.0 too?

Re: This is really annoying. Please help for equalizer

Posted: 19 Jan 2015 10:55
by sherington
I can no longer build vlc-2.2.0 git because of a fontconfig version conflict (0.19 vs 0.18) after I upgraded my OS, so I can't check the latest version.

The version of VLC installed by my OS is: 2.2.0-pre2 Weatherwax, changeset 2.2.0-pre1-15-g5178b24

I tested that just now and the equalizer seems to work just fine for me.

Re: This is really annoying. Please help for equalizer

Posted: 20 Jan 2015 03:37
by Jean-Baptiste Kempf
You can build VLC without fontconfig, you know?

Re: This is really annoying. Please help for equalizer

Posted: 20 Jan 2015 09:46
by sherington
Yep, my mistake, I got it working with fontconfig too but that's neither here nor there!

So I got a working vlc-2.2-git build at:

vlc: 2.2.0-rc2 Weatherwax, changeset 2.2.0-rc2-131-gf966a0f

I tested it just now and the equalizer works just fine.

Re: This is really annoying. Please help for equalizer

Posted: 20 Jan 2015 19:09
by Jean-Baptiste Kempf
Good. Thanks.

Re: This is really annoying. Please help for equalizer

Posted: 27 Jan 2015 11:05
by spider58
Yep, my mistake, I got it working with fontconfig too but that's neither here nor there!

So I got a working vlc-2.2-git build at:

vlc: 2.2.0-rc2 Weatherwax, changeset 2.2.0-rc2-131-gf966a0f

I tested it just now and the equalizer works just fine.
@sherington can you give me a link for vlc: 2.2.0-rc2 Weatherwax, changeset 2.2.0-rc2-131-gf966a0f please?

I ve downloaded RC2 from here. equalizer worked good, everything worked good. But this time i got an error message (ntdll.dll) when i change stream language.

http://www.computerbase.de/downloads/au ... ia-player/

i can change subtitle, deinterlace, equalizer, gamma etc.. but now i cant' change stream language. i dont know all my problems with libvlc will be over :)

This is really annoying. Please help for equalizer

Posted: 27 Jan 2015 12:50
by sherington
Your problems with LibVLC will probably be over when 2.2.0 final is released, right now you're working with a pre-release version.

I can't provide you with any link, especially not for Windows, I build vlc from vlc-git and vlc-2.2-git on Linux regularly and I use that.

I do know that [KU]buntu 14.10 includes 2.2.0-rc2.

This is really annoying. Please help for equalizer

Posted: 27 Jan 2015 14:30
by spider58
Your problems with LibVLC will probably be over when 2.2.0 final is released, right now you're working with a pre-release version.

I can't provide you with any link, especially not for Windows, I build vlc from vlc-git and vlc-2.2-git on Linux regularly and I use that.

I do know that [KU]buntu 14.10 includes 2.2.0-rc2.
okay, i can't do anything i understand. :) i have to wait for 2.2.0 final.

thanks for the answer.

Re: This is really annoying. Please help for equalizer

Posted: 06 Feb 2015 18:33
by CeA$1992
Sorry if I add to the thread only now. We moved from WMP to VLC in a production system last month, but we need the equalizer tool that is not available with the last official release (2.1.x). Can we use the 2.2.0 rc2 suggested ? We use VLC mainly to play OGG file.
Thanks in advance

Re: This is really annoying. Please help for equalizer

Posted: 06 Feb 2015 19:27
by Jean-Baptiste Kempf
Yes, you can.

Re: This is really annoying. Please help for equalizer

Posted: 10 Feb 2015 18:51
by CeA$1992
Ok, thanks.
Right now, we are having another problem: since we have to play OGG file from a remote linux-based server, we need the plugin samba (plugin/access/libaccess_smb.dll) that is not linked on that "rc" version. How can we do ? Locally, at the windows client, the .ogg files play good and the equalizer is working (we use vlcj 3.1.0 to interface libvlc), but we cannot play the same files if they are on a remote linux server.

Re: This is really annoying. Please help for equalizer

Posted: 12 Feb 2015 11:19
by Jean-Baptiste Kempf
Windows has native Samba support.