Re: MP3 in VB does not loop seamlessly




<casManG@xxxxxxxxx> wrote in message news:1172097491.039413.275420@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Feb 20, 11:01 am, "Lloyd Sheen" <a...@xxx> wrote:
If you want to get rid of this you can use DirectX (not that difficult).
Then you create your first stream, play it and when it gets near the end you
create another stream with next mp3. You can then start the second mp3 at
your own defined time before the end (crossover). The first will end and on
you go.

Lloyd Sheen<casM...@xxxxxxxxx> wrote in message

news:1171937295.576547.73660@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

>I have tried using both the Windows Media Player control as well as
> the mciSendString method for playing an MP3 within my Visual Basic
> 2003 app. The problem is that when the MP3 is looping there is always
> a small bit of silence between when the sound ends and begins again. I
> have verified that the sound I am testing with loops perfectly without
> any pause or silence at the end of the sound when looping. Does anyone
> know how to make it so that I can play an MP3 seemlessly without the
> audible pause when looping. (I have done it with a wav file using
> winmm.dll successfully without the audible pause between loops)

A coupld of questions if you don't mind:


1. Does this require me to install the DirectX SDK?

2. Does this require the person running the program to have DirectX
installed, or do most XP and Vista machines have the required DirectX
stuff already to run the app?

3. Is there any way with mciSendString or Windows Media Player control
to do the same thing you suggested above?

Thanks in advance
cas



Not that I know of. I just installed Vista and when I installed my app it worked as did the source code so I think the dll is installed.

D:\WINDOWS\Microsoft.NET\DirectX for Managed Code\1.0.2902.0\Microsoft.DirectX.AudioVideoPlayback.dll

Now that is the dll that I ended up referencing. Did nothing to cause it to happen on new install so that might be best way.

Lloyd

.



Relevant Pages

  • Re: problem using amarok
    ... for the last while Amarok will offer to install the ... necessary codecs for you the first time you play an MP3, ... complete you need to restart Amarok and all is good. ...
    (Ubuntu)
  • Re: 80040154
    ... I am using window media control in my project to play mp3, ... some mp3 file in my project play but some give "Unspecified Error" ... > specific AVI or you have a bad install of the codec. ...
    (microsoft.public.windowsmedia.player)
  • Re: [opensuse] Problems withMP3 codecs and banshee on Opensuse 10.3
    ... MP3 etc. ... Now Banshee won't play MP3 files. ... started life as a 10.2 install which has been upgraded to 10.3, ...
    (SuSE)
  • Re: No GUI on SCO Openserver 6
    ... of our Medical Management software sold us a new server, ... install the Graphics option of the base OS before applying MP3. ... module ABI major version doesn't match the server's version ...
    (comp.unix.sco.misc)
  • Re: ESR: Goodbye Fedora
    ... I'm not certain that there's much Fedora can do about that. ... AFAIK, legal MP3 ... RH/Fedora repo and try install it, or do like I do and erase the players ...
    (Fedora)