BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Mitov newbie pulls hair out

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Multimedia
View previous topic :: View next topic  
Author Message
Staiger
Guest





PostPosted: Thu Aug 10, 2006 3:58 am    Post subject: Mitov newbie pulls hair out Reply with quote



As before, I've posted this to Torry's forum, but it seems to have a much
lower level of activity, hence opening this up to you folks.

The Mitov AudioLab and SignalLab are really superb, and I would recommend
them to everyone. However, I've got in a right mess with using them in
D2006.

I've added a number of Mitov components (TALAudioIn, etc) to my application.
At first it all worked perfectly. But then something weird happened: the
compile failed with the following error:

F2502 Unit ALAudioIn was compiled with a different version of OWPins.TOWPin

At the same time, the wiggly underline appears below the ALAudioIn entry in
the 'uses' section of my main form, and the pop-up hint says:

Cannot resolve unit name 'ALAudioIn'

I've uninstalled and reinstalled AudioLab and SignalLab countless times.
Also I've removed and added the components several times as well.

All sorts of other weird things happen. I'll start a new project, add a
TALAudioIn, and it seems fine. Then I'll close it, open up my 'broken' app,
close that and return to the new project. And this one is broken too!

I've spent literally all day wrestling with this. Now I can't build my
application unless I remove all the Mitov components. Unfortunately, the
whole application relies on them!

Am I doing something obviously wrong? Has anyone else had this problem? I
hope you can help - I'm pretty desperate!

Thanks,

Thack
Back to top
Boian Mitov
Guest





PostPosted: Thu Aug 10, 2006 4:36 am    Post subject: Re: Mitov newbie pulls hair out Reply with quote



Hi Staiger,
In case of such troubles, you can contact me directly at mitov (AT) mitov (DOT) com
. From the description it appears that something gets messed up with
the BDS configuration. Can you please send me the problematic project,
so we can try to see what is wrong with it. If possible, please zip he
full directory and put it on FTP or something, together with the .dcu
files and anything else. We will try to reproduce it on a clean machine.
Also please let us know what version of BDS it is? Professional,
Enterprise, English, German and what updates are installed.

With best regards,
Boian Mitov

Staiger wrote:
Quote:
As before, I've posted this to Torry's forum, but it seems to have a much
lower level of activity, hence opening this up to you folks.
Back to top
Staiger
Guest





PostPosted: Thu Aug 10, 2006 5:47 am    Post subject: Re: Mitov newbie pulls hair out Reply with quote



Hi Boian,

Thank you very much for your kind offer.

I was reluctant to bother you at your private email address - after all,
we've all got to have some time off!

I'll do exactly as you say tomorrow morning.

Thank you again.

Thack
(aka Staiger)


"Boian Mitov" <mitov (AT) mitov (DOT) com> wrote in message
news:44da7188$1 (AT) newsgroups (DOT) borland.com...
Quote:
Hi Staiger,
In case of such troubles, you can contact me directly at mitov (AT) mitov (DOT) com .
From the description it appears that something gets messed up with the BDS
configuration. Can you please send me the problematic project, so we can
try to see what is wrong with it. If possible, please zip he full
directory and put it on FTP or something, together with the .dcu files and
anything else. We will try to reproduce it on a clean machine. Also please
let us know what version of BDS it is? Professional, Enterprise, English,
German and what updates are installed.

With best regards,
Boian Mitov

Staiger wrote:
As before, I've posted this to Torry's forum, but it seems to have a much
lower level of activity, hence opening this up to you folks.
Back to top
Staiger
Guest





PostPosted: Wed Aug 16, 2006 4:10 pm    Post subject: Re: Mitov newbie - SORTED Reply with quote

Boian's colleague Jonathan Benedicto has worked hard on this and sorted out
the problem.

It was caused by my having the compiler Record Alignment set to 1, whereas
the Mitov components are compiled with the alignment set to 8.

For some reason this causes the build to fail with the error:

F2502 Unit ALAudioIn was compiled with a different version of OWPins.TOWPin

....which is misleading and unhelpful.

Note that Delphi defaults to a record alignment of 1, so if you experience
odd problems with the Mitov components try setting it to 8.

I've suggested to Boian that a note of this is added to the documentation
for the Mitov components.

My thanks to Jonathan Benedicto for identifying the problem, and to Boian
Mitov for a superb set of components.

Thack
Back to top
Staiger
Guest





PostPosted: Thu Aug 17, 2006 12:04 am    Post subject: Re: Mitov newbie - SORTED Reply with quote

My apologies. Delphi 2006, at least, defaults to a record alignment of 8,
not 1 as I stated.

Boian suspects that importing the project from D5 maybe caused the alignment
problem.

Anyway, my apologies to Boian and everyone else for my mistake on the record
alignment. Just for the record, leave it at the default 8 if you're using
Boian's components.

My thanks once again to Boian and Jonathan.

Thack
Back to top
Thaddy
Guest





PostPosted: Tue Aug 22, 2006 9:54 pm    Post subject: Re: Mitov newbie - SORTED Reply with quote

Quote:


Note that for audio programming one should ALWAYS use at least an

alignment of 8 and even better 16 (MMX, SSE etc) because the generated
code will be - maybe unexpected for beginners! - much, much faster (more
twice as fast!) Most commercial code is already 8, often 16 byte
aligned. You can use fastmm to do that automatically for you by means of
a switch.
And by the way: Delphi defaults to 8!! out of the box. If yours doesn't
you have saved 1 as the default! yourself. A not so clever attempt to
save on codesize Smile (Most variables are allocated on 4 byte (dword)
boundaries anyway, regardless the setting.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.