Re: MP3 in VB does not loop seamlessly

Tech-Archive recommends: Fix windows errors by optimizing your registry



On Feb 21, 6:04 pm, "Lloyd Sheen" <a...@xxx> wrote:
<casM...@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 useDirectX(not that difficult).
Then you create your first stream, play it and when it gets near the end
you
create another stream with nextmp3. You can then start the secondmp3
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 anMP3within my Visual Basic
2003 app. The problem is that when theMP3is 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 anMP3seemlessly 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 theDirectXSDK?

2. Does this require the person running the program to haveDirectX
installed, or do most XP and Vista machines have the requiredDirectX
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\DirectXfor 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



Well, I gave it a try. I used the tutorial here:
http://gpwiki.org/index.php/VBNET:AudioVideoPlayback

But, after all is said and done, and it's working, the music still
doesn't loop seamlessly :( Man, I just don't get it. Anyone have any
other ideas?


.



Relevant Pages

  • Re: MP3 in VB does not loop seamlessly
    ... Then you create your first stream, play it and when it gets near the ... winmm.dll successfully without the audible pause between loops) ... happen on new install so that might be best way. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: MP3 in VB does not loop seamlessly
    ... >> Then you create your first stream, play it and when it gets near the>> end ... >>> winmm.dll successfully without the audible pause between loops) ... Does this require me to install theDirectXSDK? ...
    (microsoft.public.dotnet.languages.vb)
  • Re: MP3 in VB does not loop seamlessly
    ... Then you create your first stream, play it and when it gets near the end you ... create another stream with next mp3. ... Did nothing to cause it to happen on new install so that might be best way. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Video Error with Xbox 360 Extender
    ... and now the mpeg files are playing on the xbox. ... disabled the firewall but I still could not play the vids. ... I still get the video error when I try start the tv or try and watch a ... - Is this a clean install of Windows Vista, ...
    (microsoft.public.windows.mediacenter)
  • FC8 kde : Im having some configuration issues...
    ... I've got a new install of FC8 on a Gateway laptop ... uncheck KDED media manager ... Though I note that when I try to play a music cd by calling kscd on the ...
    (Fedora)