Ian Rutherford
2003-Nov-23 20:28 UTC
[vorbis] Ogg Vorbis use in the Visual Basic .net environment
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 :/ Thanks, Ian <p><p>--- >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@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
Ian Rutherford
2003-Nov-26 02:19 UTC
[vorbis] Ogg Vorbis use in the Visual Basic .net environment
Does anyone have any ideas about this one please? I'm on a tight shedule :/ Thanks, Ian -----Original Message----- From: owner-vorbis@xiph.org [mailto:owner-vorbis@xiph.org] On Behalf Of Ian Rutherford Sent: Monday, 24 November 2003 2:28 PM To: vorbis@xiph.org Subject: [vorbis] Ogg Vorbis use in the Visual Basic .net environment 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 :/ Thanks, Ian <p><p>--- >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@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
Tom Felker
2003-Nov-26 13:44 UTC
[vorbis] Ogg Vorbis use in the Visual Basic .net environment
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@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@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.