Re: play audio file continuously without gaps
- From: "Dave Robinson" <dave.robinson@xxxxxxxxxxxxx>
- Date: Thu, 29 Mar 2007 09:08:57 -0500
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
.
- Follow-Ups:
- Re: play audio file continuously without gaps
- From: Francesco
- Re: play audio file continuously without gaps
- From: Francesco
- Re: play audio file continuously without gaps
- References:
- play audio file continuously without gaps
- From: Francesco
- play audio file continuously without gaps
- Prev by Date: Re: Colorbar and reference value in it
- Next by Date: Re: How can I determinate a transfer function from the data of a DAQ?
- Previous by thread: play audio file continuously without gaps
- Next by thread: Re: play audio file continuously without gaps
- Index(es):
Relevant Pages
|