🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.multimedia
4 messages
4 total messages Started by Hugh W Stewart Fri, 24 May 2002 21:01
Multimedia programming
#884
Author: Hugh W Stewart
Date: Fri, 24 May 2002 21:01
13 lines
1409 bytes
I am a converted C programmer, struggling with multimedia.
I am developing an application that includes audio and video clips.
I use MCI functions.  My problem is that I want the clips to start as
specified times, but since the data must be loaded from files, it takes
time to get them started.
My thought is to have the files loaded into memory, and play them from
there.
Great idea, if I knew how to do it.

Any and all help will be gratefully received.

Thanks in advance
HughStewart@usa.net
Re: Multimedia programming
#886
Author: Michael Warner
Date: Sat, 25 May 2002 17:01
14 lines
1583 bytes
On Fri, 24 May 2002 17:01:40 -0400, Hugh W Stewart
<hughstewart@usa.net> wrote:

>I am a converted C programmer, struggling with multimedia.
>I am developing an application that includes audio and video clips.
>I use MCI functions.  My problem is that I want the clips to start as
>specified times, but since the data must be loaded from files, it takes
>time to get them started.
>My thought is to have the files loaded into memory, and play them from
>there.

I'm not very familiar with the MCI interface, but is it possible to
start and immediately pause the clips? If so, you could do this well
ahead of schedule, then unpause them at the desired moment.
Re: Multimedia programming
#887
Author: Hugh W Stewart
Date: Sat, 25 May 2002 19:18
12 lines
1676 bytes
Thanks - actually that's what I'm doing now.  I use MCIWinCreate to open the
files in separate TStreams, and start them when I'm ready.  It's really
awkward, and I'd really like to play them from memory.  I just don't know
how to tell MCIWinCreate to use a memory location instead of a file.

Thanks for your interest.

Michael Warner wrote:

> I'm not very familiar with the MCI interface, but is it possible to
> start and immediately pause the clips? If so, you could do this well
> ahead of schedule, then unpause them at the desired moment.
Re: Multimedia programming
#888
Author: Corey Murtagh
Date: Sat, 25 May 2002 22:45
19 lines
1806 bytes
"Hugh W Stewart" <hughstewart@usa.net> wrote in message
news:3CEFE3A0.B9496C15@usa.net...
> Thanks - actually that's what I'm doing now.  I use MCIWinCreate to open
> the files in separate TStreams, and start them when I'm ready.  It's
> really awkward, and I'd really like to play them from memory.  I just
> don't know how to tell MCIWinCreate to use a memory location instead of
> a file.

I've just had a brief wander through the MCI functions and macros in the
PSDK.  Looks to me like you can pre-open the file using an IAVIFile object,
then pass the file to your MCI window using MCIWndOpenInterface.  Of course
being COM, it's likely to not be that simple.

Anyone done it this way?  Comments?

--
Corey Murtagh
The Electric Monk
"Quidquid latine dictum sit, altum viditur!"
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads