• Recent Posts

  • Meta

  • Tags

    #ziplib .net getfilename .net no titlebar 7-zip adding a splash screen in visual basic.net adding textbox autocomplete addition adjusttokenprivileges adware application filename application position applications path audio library autocomplete autocomplete combobox avi mpg basic math bass.dll bass sound system beep benchmark data calculator cdrom tray change unix to windows directory exists disable beep on enter doevents excel file exists getinputstate high cpu usage linq mcisendstring no doevents open webpage pinging play mp3 play wave scroll textbox shell stop beep on enter textbox vb ping visual studio windows mci
  • « | Home | »

    Playback Music/Audio Files in VB and VB.NET (#2 – 3rd Party Libraries) – #2 of 3

    By admin | May 17, 2008

    Click Star to Rate Post
    1 Star2 Stars3 Stars4 Stars5 Stars (3 votes, average: 5 out of 5)
    Loading ... Loading ...


       
    Bookmark and Share

     


     
      Well its been somewhat a long time coming but I finally got the time to add #2 of the ways to play music articles using Visual Basic and Visual Basic .NET 2002/2003 and Visual Basic 2005/2008. This post is basically to describe two different librarys. The first is Bass.Dll and the second is FMod.dll.

       

      Both of these librarys are Free as long as your application that is using them are NOT commercial or compensated. So if its a Freeware application or personal application they will grant you a license to use them. Bass.dll has a lower cost option if your making a Shareware app though. You will definitely need to read through the license agreements of each library before using them in your applications.

        

       

    ________________________________

        

       

    BASS.DLL Audio Library

        

      This is a very nice library for pretty much all of your music or audio needs. It plays everything from mp3's to waves and mod music. It has alot of source code and examples for Visual Basic and Visual Basic.NET. This library even gives you access to the samples that are playing so you can plot your own visualizations or ffts. I've had alot of experience with this library a couple years ago and even made the original VB.NET api and examples for the author. The .dll is very small in size (Under 100KB) so it won't bloat your application.

       

    Author Information: BASS is an audio library for use in Windows and Mac OSX software. Its purpose is to provide developers with powerful and efficient sample, stream (MP3, MP2, MP1, OGG, WAV, AIFF, custom generated, and more via add-ons), MOD music (XM, IT, S3M, MOD, MTM, UMX), MO3 music (MP3/OGG compressed MODs), and recording functions. All in a tiny DLL, under 100KB* in size.

       

    On Windows, BASS requires DirectX 3 or above for output, and takes advantage of DirectSound and DirectSound3D hardware accelerated drivers, when available. On OSX, BASS uses CoreAudio for output, and OSX 10.3 or above is recommended. Both PowerPC and Intel Macs are supported.

       

    C/C++, Delphi, Visual Basic, and MASM APIs are provided, with several examples to get you started. .Net and other APIs are also available.

       

     Main features 
    Samples
    Support for WAV/AIFF/MP3/MP2/MP1/OGG and custom generated samples
    Sample streams
    Stream any sample data in 8/16/32 bit, with both "push" and "pull" systems
    File streams
    MP3/MP2/MP1/OGG/WAV/AIFF file streaming
    Internet file streaming
    Stream data from HTTP and FTP servers (inc. Shoutcast, Icecast & Icecast2), with proxy server support and adjustable buffering
    Custom file streaming
    Stream data from anywhere using any delivery method, with both "push" and "pull" systems
    Multi-channel streaming
    Support for more than plain stereo, including multi-channel OGG/WAV/AIFF files
    MOD music
    Uses the same engine as XMPlay (very accurate, efficient, high quality reproduction), with full support for all effects, filters, stereo samples, DMO effects, etc...
    MO3 music
    MODs with MP3 or OGG compressed samples (vastly reduced file size with virtually identical sound quality), MO3s are created using the MO3 encoder
    Multiple outputs
    Simultaneously use multiple soundcards, and move channels between them
    Recording
    Flexible recording system, with multiple device support and input selection, (WMA encoding & broadcasting via the add-on, and other formats via BASSenc)
    Decode without playback
    Streams and MOD musics can be outputted in any way you want (encoded, written to disk, streamed across a network, etc...)
    Speaker assignment
    Assign streams and MOD musics to specific speakers to take advantage of hardware capable of more than plain stereo (up to 4 separate stereo outputs with a 7.1 soundcard)
    High precision synchronization
    Synchronize events in your software to the streams and MOD musics, synchronize playback of multiple channels together
    Custom DSP
    Apply any effects that you want, in any order you want
    DirectX 8 effects Windows only
    Chorus / compressor / distortion / echo / flanger / gargle / parametric eq / reverb, 2 implementation options each with its benefits (including mixing with DSP functions)
    32 bit floating-point decoding and processing
    Floating-point decoding/rendering, DSP, FX, and recording
    3D sound
    Play samples/streams/musics in any 3D position, with EAX support
    Flexible
    Small buffers for realtime performance, large buffers for stability, automatic and manual buffer updating, configurable threading
    Expandable
    Add-on system for additional format support and effects (C/C++ API available on request), dynamic plugin loading system, access to underlying DirectSound objects
    Small
    BASS is less than 100KB*, so won't bloat your distribution

        

      As you can see, this is a very powerful and flexible sound system. If your interested in this .dll then go to the main audio librarys webpage.

        

       

     _______________________________

       

       

    FMOD Music and Sound Effects System

       

      This is another very popular sound system that is used by game makers and the like. Crysis is a newer game that uses this library. This library has been around for a very long time and has matured quite a bit. It has nearly all the features you'll ever need in a sound system. It plays most all of the common music formats as well. This library I guess would be considered a competitor to the Bass library above. The library has Visual Basic based APIs and Examples as well. I am not completely sure about Visual Basic.NET though. I don't have much experience with this sound system like I do with the Bass sound system. Below is some author information...

       

    Author Information: FMOD Products

       

    Why choose FMOD?

     

    FMOD supports more hardware platforms than any other audio system - including the latest 'next gen' consoles. Consider the cost savings of not having to change code across any platform - Save months of development time.

    FMOD is actively developed, with regular releases of new features. Many new requested features have been provided to customers in a very short turnaround - want a new feature, just ask!

    Many customers are amazed at the personal level of technical support they get, either by phone, email or even personal visit (if applicable)

        

     

    Key features:

     

         

    If your wanting more information about this library you can click this link to their website.

        

       

    _______________________________

       

       

      Well, thats all for Part #2 of this article series. Hopefully this post was useful or helpful to you in some way. Remember to always read the librarys license agreements before using them in your applications. They both allow free use in a free application. Otherwise you will need to buy a license if your using them in a commercial application.

       

      I will put up Part #3 when I get the chance. Part three will be on using the Windows API to do some audio or music based playback using the VB languages. Till then, Have Fun!

       

                     Jason

     


     

    Topics: - (.5.0/6.0), - (.NET All + 05/08), - .All VB (Related to All) | 2 Comments »

    2 Responses to “Playback Music/Audio Files in VB and VB.NET (#2 – 3rd Party Libraries) – #2 of 3”

    1. Bhashana Says:
      May 22nd, 2008 at 4:59 am

      hey Plz give me new VB Codes

    2. Jason Says:
      May 22nd, 2008 at 3:03 pm

      Hi, each of the FMOD.dll and Bass.dll libraries has their own set of codes and examples for visual basic.

      The Bass library has a bass.net wrapper available as well that is free if using it in a free program.

      I am working on a small music player with VB 2008 that I will release the source code to later on. But it isn't ready yet.

      Just download those libraries and any add-ons you may want and there should be plenty of codes for you to ponder over.

      Jason

    Comments