[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xaudio-sdk
Subject:    Re: [xaudio-sdk] How to use two spectrums with Xaudio3295
From:       "Peter Luijer" <pluijer () pop3 ! NL ! net>
Date:       2001-11-08 21:43:19
[Download RAW message or body]

Hi,

First of all let me remind you that the spectrum/wave display I wrote was only meant
as an example of how to use my XAudio component...
You're free to use and modify it, but it was not really meant as a display component
on it's own...

Having this said...

If you want to use more than one XAudio-player, the first thing you have to do is \
that you must work-around a bug in loading and unloading the DLL
It looks like when a second instance of the DLL is loaded, the first one disappears
because Delphi uses both components as a shared source.
This was something someone pointed me out a few days after I'd released the latest
version and I haven't had the time yet to take a look into it, sorry.

When using multiple players you have to make sure each of the players have
their own display (instance) initialized.
With another picture size you have to make sure the paint operations are also
adjusted to the new sizes (both vertical as horizontal).


Greetz,

Peter.

  ----- Original Message ----- 
  From: Eduard 
  To: xaudio-sdk@mpegtv.com 
  Sent: Thursday, November 08, 2001 5:43 AM
  Subject: [xaudio-sdk] How to use two spectrums with Xaudio3295


  Hi everybody,

  How can i use two spectrum/wave with the new Xaudio3295 package.
  It's only working when i init one of the two players.

  And it seems that the spectrum is building outside the DisplayHeight and \
DisplayWidth. I use a smaller bitmap. How can i solve that.

  I hope somebody have a solution. 
  Regards,
  Eduard.


[Attachment #3 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4134.600" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>First of all let me remind you that the 
spectrum/wave display I wrote was only meant</FONT></DIV>
<DIV><FONT face=Arial size=2>as an example of how to use my XAudio 
component...</FONT></DIV>
<DIV><FONT face=Arial size=2>You're free to use and modify it, but it was not 
really meant as a display component</FONT></DIV>
<DIV><FONT face=Arial size=2>on it's own...</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Having this said...</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>If you want to use more than one XAudio-player, the 
first thing you have to do is that</FONT></DIV>
<DIV><FONT face=Arial size=2>you must work-around a bug in loading and unloading 
the DLL</FONT></DIV>
<DIV><FONT face=Arial size=2>It looks like when a second instance of the DLL is 
loaded, the first one disappears</FONT></DIV>
<DIV><FONT face=Arial size=2>because Delphi uses both components as a shared 
source.</FONT></DIV>
<DIV><FONT face=Arial size=2>This was something someone pointed me out a few 
days after I'd released the latest</FONT></DIV>
<DIV><FONT face=Arial size=2>version and </FONT><FONT face=Arial size=2>I 
haven't had the time yet to take a look into it, sorry.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>When using multiple players you have to make sure 
each of the players have</FONT></DIV>
<DIV><FONT face=Arial size=2>their own display 
(instance)&nbsp;initialized.</FONT></DIV>
<DIV><FONT face=Arial size=2>With another picture size you have to make sure the 
paint operations are also</FONT></DIV>
<DIV><FONT face=Arial size=2>adjusted to the new sizes (both vertical as 
horizontal).</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Greetz,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Peter.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<BLOCKQUOTE dir=ltr 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 \
2px solid; MARGIN-RIGHT: 0px">  <DIV style="FONT: 10pt arial">----- Original Message \
----- </DIV>  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=mattsoft@zeelandnet.nl 
  href="mailto:mattsoft@zeelandnet.nl">Eduard</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=xaudio-sdk@mpegtv.com 
  href="mailto:xaudio-sdk@mpegtv.com">xaudio-sdk@mpegtv.com</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, November 08, 2001 5:43 
  AM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> [xaudio-sdk] How to use two 
  spectrums with Xaudio3295</DIV>
  <DIV><BR></DIV>
  <DIV><FONT face=Arial size=2>Hi everybody,</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>How can i use two spectrum/wave with the new 
  </FONT><FONT face=Arial size=2>Xaudio3295 package.</FONT></DIV>
  <DIV><FONT face=Arial size=2>It's&nbsp;only working when i init one of the two 
  players.</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>And it seems that the spectrum is building 
  outside the DisplayHeight and DisplayWidth. I use a smaller bitmap. How can i 
  solve that.</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>I hope somebody have a solution. </FONT></DIV>
  <DIV><FONT face=Arial size=2>Regards,</FONT></DIV>
  <DIV><FONT face=Arial size=2>Eduard.</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV></BLOCKQUOTE></BODY></HTML>


_______________________________________________
xaudio-sdk mailing list
xaudio-sdk@mpegtv.com
http://mailman.bok.net/mailman/listinfo/xaudio-sdk


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic