[vorbis] Ogg Vorbis use in the Visual Basic .net environment

Tom Felker tcfelker at mtco.com
Wed Nov 26 13:44:49 PST 2003



On Sunday 23 November 2003 10:28 pm, Ian Rutherford wrote:
> Heya everyone,
>
> I'm planning on putting functionality into a Visual Basic program to be
> able to play back Ogg Vorbis encoded multimedia files and I'm having
> difficulty finding out how. Would anyone have any ideas on how I could do
> this? Perhaps if I were able to use the Ogg Vorbis libraries as a .dll file
> and call its functions from within the VB program - that might work. So
> does anyone have any pointers on how I could go about doing this? I'm a bit
> new to Visual Basic .net  :/

Well, not having used VB.NET, I don't know exactly how to import functions, 
but since you're under time pressure, here's some guesses on how to do it.  
If .NET has interfaces to DirectX, you might be able to install the 
DirectShow filters and either use some generic interface to play any 
supported files, or script Windows Media Player.  You could probably also 
script other players, including "command line" players.

As for VB syntax, the following worked a long time ago for me with VB 5 - I'm 
not sure how .NET differs, though.  It's possible .NET has a class to 
abstract external functions:

Declare Function GetSystemDirectory Lib "kernel32" Alias \
"GetSystemDirectoryA" (ByVal lpBuffer As String, ByVal nSize As Long) As Long

<p><p>
-- 
Tom Felker, <tcfelker at mtco.com>
<http://vlevel.sourceforge.net> - Stop fiddling with the volume knob.

Curiosity was framed; ignorance killed the cat.

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.




More information about the Vorbis mailing list