Groups > Borland > Borland Delphi multimedia > Re: TMediaPlayer soundcard selection




Re: TMediaPlayer soundcard selection

Re: TMediaPlayer soundcard selection
Fri, 02 Nov 2007 10:22:31 +110
there are a number of DirectX based components available that can get 
you up and running quite quickly depending on your requirements.
what features do you want your media player to have both audio and 
video? what's the development time frame for the application?
would you consider a commercial component or prefer freeware?

Ross Levis wrote:
> I think this question is for the Delphi experts/Windows evangelists.
> 
> 
> 
> My application (in D7) is a media player and I've recently spent a week 
> adding video file support using TMediaPlayer.  It provides masses of
control 
> over the video image, which is great, but it doesn't appear to provide any

> control whatsoever over the audio.  It simply plays to the default
soundcard 
> and that's it.
> 
> 
> 
> I didn't realize this until a long way down the track.  Perhaps this
windows 
> API was written when no one had more than 1 soundcard, but these days it is

> reasonably common to have 2 soundcards, particularly audiophiles or those 
> running internet radio stations, etc, who want to use the PC for other 
> purposes.
> 
> 
> 
> There are MCI commands for changing soundcards for WAV and MIDI devices,
but 
> it appears not for video files (AVI, MPEG, etc).
> 
> 
> 
> I would rather not rewrite using a different component after all this work,

> so my question is...  Is there any way to select a different soundcard for

> the audio when a video is playing?  I could probably change the default 
> soundcard in the registry, but this would be detrimental to other 
> applications.
> 
> 
> 
> From internet searches I see many have asked the same question but I
haven't 
> found any solution.
> 
> 
> 
> I'm willing to modify the MediaPlayer.pas if necessary.
> 
> 
> 
> Many thanks,
> 
> Ross.
> 
Post Reply
Re: TMediaPlayer soundcard selection
Fri, 2 Nov 2007 13:14:32 +1300
I am only interested in free components.

I did have a look at DSPack but it doesn't provide any way to select the 
soundcard as a simple property.  There is apparently some way to do it as I 
see others in the forum asking the same question managed to, but no code was 
ever supplied.

I asked this question on their forum a few days ago but have not received 
the answer as yet.  I was also interested in obtaining the PCM audio samples 
so I can make my VU meter move if possible.

If I ever find out how to do it I may rewrite with DSPack.  The terminology 
in DSPack confuses me such as Filtergraphs and Pins etc.

Regards,
Ross.

"harrie" <hpearce@magian[dot]com> wrote in message 
news:472a5f48$1@newsgroups.borland.com...
> there are a number of DirectX based components available that can get you 
> up and running quite quickly depending on your requirements.
> what features do you want your media player to have both audio and video? 
> what's the development time frame for the application?
> would you consider a commercial component or prefer freeware?
>
> Ross Levis wrote:
>> I think this question is for the Delphi experts/Windows evangelists.
>>
>>
>>
>> My application (in D7) is a media player and I've recently spent a week

>> adding video file support using TMediaPlayer.  It provides masses of 
>> control over the video image, which is great, but it doesn't appear to

>> provide any control whatsoever over the audio.  It simply plays to the

>> default soundcard and that's it.
>>
>>
>>
>> I didn't realize this until a long way down the track.  Perhaps this 
>> windows API was written when no one had more than 1 soundcard, but
these 
>> days it is reasonably common to have 2 soundcards, particularly 
>> audiophiles or those running internet radio stations, etc, who want to

>> use the PC for other purposes.
>>
>>
>>
>> There are MCI commands for changing soundcards for WAV and MIDI
devices, 
>> but it appears not for video files (AVI, MPEG, etc).
>>
>>
>>
>> I would rather not rewrite using a different component after all this 
>> work, so my question is...  Is there any way to select a different 
>> soundcard for the audio when a video is playing?  I could probably
change 
>> the default soundcard in the registry, but this would be detrimental to

>> other applications.
>>
>>
>>
>> From internet searches I see many have asked the same question but I 
>> haven't found any solution.
>>
>>
>>
>> I'm willing to modify the MediaPlayer.pas if necessary.
>>
>>
>>
>> Many thanks,
>>
>> Ross.
>> 
Post Reply
Re: TMediaPlayer soundcard selection
Fri, 02 Nov 2007 14:36:01 -070
   Hi Ross,

You can also try AudioLab and VideoLab from www.mitov.com . It is free 
for non commercial purposes. If you are developing Freeware application, 
please contact me, and if we see no problem with the type of application 
we will grant you the right to use the library in it. We just need to 
make sure your free application will not compete with anything we 
develop. So far we have granted all requests for using the library in 
freeware ;-) .

   Cheers,
     Boian

Ross Levis wrote:
Post Reply
about | contact