Thanks for relations. but if your mean is https://forum.videolan.org/viewforum.php?f=35 im already look here. But nothing found. really sorry for inconvenienceLook at the Android code.
Code: Select all
dim myeq as new equalizer
player.seteq = myeq
Code: Select all
<dllImport("libvlc",Callingconvention:=CallingConvention.Cdecl)>_
Public Shared Function libvlc_media_player_set_equalizer(Byval player as intptr, p_equalizer as intptr)
End Function
Code: Select all
Public Property seteq() as Equalizer
Get
return nothing
End Get
Set (Byval value as Equalizer)
libvlc.libvlc_media_player_set_equalizer(player.handle, value.handle)
End Set
end function
thank you sir. I will try now.There is an example in the VLC test sources:
http://git.videolan.org/?p=vlc.git;a=bl ... f4;hb=HEAD
This test code shows how to get presets, get/set individual frequency values, and enable/disable the equalizer on a media player.
Convert that to whatever language you're using.
hmm. cannot convert all of code. But tried somethingsThere is an example in the VLC test sources:
http://git.videolan.org/?p=vlc.git;a=bl ... f4;hb=HEAD
This test code shows how to get presets, get/set individual frequency values, and enable/disable the equalizer on a media player.
Convert that to whatever language you're using.
Code: Select all
For i As UInteger = 0 To u_presets - 1
assert(Nothing IsNot libvlc_audio_equalizer_get_preset_name(i))
equalizer = libvlc_audio_equalizer_new_from_preset(i)
assert(equalizer)
libvlc_audio_equalizer_release(equalizer)
Next i
yeah thanks fo reply. im already found solution but i cannot reply here because i had no timeequalizer = libvlc_audio_equalizer_new_from_preset(i)
im getting same error on this line
Pinvoke restriction: cannot return variants
============================================================
Hope I don't waste your time with this, but....
If you're declaration looks like this:
"Public Shared Function libvlc_media_player_set_equalizer(Byval player as intptr, p_equalizer as intptr)"
The First link that Google returns for your error message suggests you do this:
"Public Shared Function libvlc_media_player_set_equalizer(Byval player as intptr, p_equalizer as intptr) as integer"
The link is here:
http://social.msdn.microsoft.com/Forums ... sexpressvb
Code: Select all
dim eq as new equalizer
eq.Bands(0).Amplitude = 2.3F
eq.Bands(1).Amplitude = 3.1F
.
.
.
eq.Bands(9).Amplitude = -4.5F
libvlc.libvlc_media_player_set_equalizer(Player_handle,Nothing)
libvlc.libvlc_media_player_set_equalizer(Player_handle,eq)
Code: Select all
dim eq as new equalizer
libvlc.libvlc_audio_equalizer_set_amp_at_index(eq.handle,2.3F,0)
libvlc.libvlc_audio_equalizer_set_amp_at_index(eq.handle,3.1F,1)
.
.
.
libvlc.libvlc_audio_equalizer_set_amp_at_index(eq.handle,-4.5F,9)
libvlc.libvlc_media_player_set_equalizer(Player_handle,Nothing)
libvlc.libvlc_media_player_set_equalizer(Player_handle,eq)
Return to “Development around libVLC”
Users browsing this forum: No registered users and 40 guests