Re: Audio Streaming

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi Tom all the links you send was to Record and play the wave files. What I
need is to stream the wave files. That is the main file will be there in an
Internet server. And I have to stream or buffer a portion of the wave file
in to my client system and play it here. How can I do this. Hope to see some
mail from you regarding this.



Hi Joseph from where can I get the examples for mmseek. I have searched on
MSDN online and installed one for mmseek but I cant get even a help for
this. Also can you send me the links for the MSDN samples you used to work
for this
"Joseph M. Newcomer" <newcomer@xxxxxxxxxxxx> wrote in message
news:v29cm15vgpnoeh7jqp51jtj0p7glevc874@xxxxxxxxxx
> Depends on the nature of the file. If it is a .wav file, there is an
mmseek, which knows
> how to seek within the structure of a .wav file. It isn't as simple as
CFile::Seek
> because a .wav file has internal structure. I'd suggest seeing if there
is anything on
> www.codeproject.com, and reading the examples in MSDN (I have working
code, but it is
> definitely proprietary so I can't post any examples. OTOH, the code I
have is clearly
> based on the MSDN examples, which I actually read so I could understand
the structure of
> the code I have). Note that mmseek requires identifying the correct
"segment" of the .wav
> file, then seeking within that. Along the way, the metadata, such as the
sampling rate
> and other critical information required to convert the signal to audible
sound, and to
> convert time to a seek offset in the segment, can be discovered.
>
> (Note also that if A transcribes 0:60 and B transcribes 60:120, then you
should actually
> send A some larger amount, like 0:62 and B would get 58:122, or something
like that.
> Otherwise, each might get half a syllable in the middle of a word and
you'd have a gap at
> the boundary)
> joe
>
> On Mon, 31 Oct 2005 08:50:36 -0500, "Scott McPhillips [MVP]"
<org-dot-mvps-at-scottmcp>
> wrote:
>
> >Vinod S wrote:
> >> Hi all.
> >>
> >>
> >>
> >> My doubt is regarding audio streaming techniques. I will narrate my
> >> requirement first. We are in to transcription tool. We have big audio
> >> files -wave- in our main server. Different transcription clients will
be
> >> doing the transcription of different portions of the big file, say 0 -
30
> >> minutes conversion will be done by Mr A, 30 - 60 minutes transcription
will
> >> be done by Mr. B and so. Now what we are doing is downloading the
complete
> >> file in to the client machines and playing only the portion of file
which
> >> each transcriptors need. But its taking too much time and bandwidth as
the
> >> files are really too big in size. So what we think now is to retrieve
only
> >> the portion of file which each transcriptors need.
> >>
> >>
> >>
> >> Now my question is how can I implement this. Which technology will be
giving
> >> maximum support for this. We were working on VC 7. Do other
technologies
> >> like C# or ASP .NET provide better option for this requirement. Can any
one
> >> give me some hints and directions J.
> >>
> >>
> >
> >You can use CFile::Seek to start reading a portion within a file. The
> >SetFilePointerEx API does the same thing. You could use one of these
> >methods to copy to a local file, or you could simply read a few seconds
> >into buffers and begin playing immediately, without waiting for the copy.
> Joseph M. Newcomer [MVP]
> email: newcomer@xxxxxxxxxxxx
> Web: http://www.flounder.com
> MVP Tips: http://www.flounder.com/mvp_tips.htm


.



Relevant Pages

  • Re: Handling Process Input and Output Streams
    ... Can I please have the link to the MSDN reference? ... the stdin and stdout in separate threads. ... separate thread that reads my file input stream into a buffer, ... async i/o methods, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: how to check the scanf function if it will read more than one number
    ... > The fflush function flushes a stream. ... > the buffer associated with the stream. ... The fact that MSDN includes bad code examples is hardly ...
    (comp.lang.c)
  • Bug in Realtek sound drivers???
    ... secondary directsound buffer. ... works fine if I play only one stream at a time system-wide. ... sound is playing at the same time, the notifications for my sound buffer get ... Try playing a wav file with it and while it's playing open a nother instance ...
    (microsoft.public.win32.programmer.directx.audio)
  • Re: Newbie : file handling
    ... > I'm just starting to write a lisp program for music and I want to open a ... > wav file and read its content and put it into an array. ... "Read an unsigned byte of WIDTH bits, from STREAM. ... To extend it to read in little-endian order (which I'm guessing WAV ...
    (comp.lang.lisp)
  • Re: Problem playing mms stream using mplayer or other players
    ... save the incoming stream to disk, ... hoo.mp3 with mplayer or xmms. ... system record the audio as a wav file. ... I haven't tried running lame on a growing file, ...
    (alt.os.linux.suse)