Re: play audio file continuously without gaps



Francesco wrote:


I'm trying to write a code to play a wav file in a loop.
I succeeded in doing it (quite easy task,you may say!),but I still
have a problem: a blank can be heard between one play and the next.
can anyone help me?
there is any way to play it continuously without spot when the
audio
file starts again?

If you read in you wav file into memory you end up with the
matrix/vector of sound amplitudes.

You can use size to determine the length of your sound. Create an
indexing mechanism that counts modulo sound length, then output the
data from that out to your sound system.

Data Acquisition Toolbox has some very nice functions that make this
almost trivial.

Regards

Dave Robinson
.



Relevant Pages

  • Background WAV doesnt play
    ... that I wanted to play in the background of my e-mail. ... The sound played flawlessly. ... WAV file without having to re-save the file as an EML file? ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • RE: Play .wav file at DB start-up
    ... RejectSteelBarCodes - just copy the wav file into this and it should work. ... is that I move that database around and the sound file wont be in the same ... MsgBox "The Sound Did Not Play!" ...
    (microsoft.public.access.gettingstarted)
  • Re: A pps. file in Front Page...no audio!!!
    ... files play at the same time. ... playing more than one sound at a time, ... Is there anyway to have the one wav file play ... >> Steve Rindsberg, PPT MVP ...
    (microsoft.public.powerpoint)
  • Re: PlaySound resource wont play sound in emulator..
    ... To check you don't miss anything in your OSDesign, can you try to play the ... ychammings AT adeneo DOT adetelgroup DOT com> ... sound, and while I can get sound to play if it's a system sound either ... I have the wav file embedded in the resources properly, ...
    (microsoft.public.windowsce.embedded)
  • Re: Shostakovichs 8th symphony?
    ... but the PSO simply doesn't have enough sound and impact ... They play very well, but they just don't have a very impactful ... playing style. ... the conductors who shape the sound of the orchestra. ...
    (rec.music.classical.recordings)