🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.multimedia
Article #357

Re: Recording 24-bit audio -- now working!

#357
From: Chris Croughton
Date: Tue, 17 Aug 2004 13:48
21 lines
2131 bytes
On Tue, 17 Aug 2004 10:23:33 +0200, Michael Kutscher 
   <spam.ignore@pc-coach.de> wrote:

> Just a remark: I did that (but with byte-alignment) in another context 
> some time ago and got lots of errors: Parts of the VCL seemed to be 
> "unhappy" with this setting. I needed Byte-Alignment - Maybe there is no 
> such problem with word-alignment.

I think that the Windows API may be word or byte aligned, but some of
the Borland libraries are using the default I believe.

> But there is also a way, to set the alignment only for special parts of 
> the sourcecode. I don't exectly remember how it is done, but there is 
> some metacommand to achieve this.

#pragma pack (or #pragma option pack) lets you set, push and pop the
option values round the bits of code you need to specify.  There is also
an option to set it for an identifier explicitly, but not much
explanation of how and when to use it.

Chris C
Technical Details
Message-ID: <slrnci435o.o06.chris@ccserver.keris.net>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!not-for-mail
References: <slrncgs56p.j46.chris@ccserver.keris.net> <410f6b8a@newsgroups.borland.com> <slrncgvo3t.5n3.chris@ccserver.keris.net> <4110bf9b@newsgroups.borland.com> <41113590$1@newsgroups.borland.com> <slrnch2mml.ofk.chris@ccserver.keris.net> <opsb9as3elbvaws7@dk-tzx09ucg42z4.s1.sol1.co.uk> <slrnch700h.6t9.chris@ccserver.keris.net> <opscbb6go4kpth9y@athlete> <slrnch7t24.it8.chris@ccserver.keris.net> <opsctvvlh1bvaws7@dk-tzx09ucg42z4.s1.sol1.co.uk> <slrnci1vne.9n7.chris@ccserver.keris.net> <opscu9vmdqkpth9y@athlete> <cfsfs1$tbs$03$1@news.t-online.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10d0fc,56d63b5f0bddbea3
X-Google-Attributes: gid10d0fc,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!not-for-mail
From: Chris Croughton <chris@keristor.net>
Newsgroups: borland.public.cppbuilder.multimedia
Subject: Re: Recording 24-bit audio -- now working!
Date: Tue, 17 Aug 2004 14:48:40 +0100
Lines: 21
Message-ID: <slrnci435o.o06.chris@ccserver.keris.net>
References: <slrncgs56p.j46.chris@ccserver.keris.net> <410f6b8a@newsgroups.borland.com> <slrncgvo3t.5n3.chris@ccserver.keris.net> <4110bf9b@newsgroups.borland.com> <41113590$1@newsgroups.borland.com> <slrnch2mml.ofk.chris@ccserver.keris.net> <opsb9as3elbvaws7@dk-tzx09ucg42z4.s1.sol1.co.uk> <slrnch700h.6t9.chris@ccserver.keris.net> <opscbb6go4kpth9y@athlete> <slrnch7t24.it8.chris@ccserver.keris.net> <opsctvvlh1bvaws7@dk-tzx09ucg42z4.s1.sol1.co.uk> <slrnci1vne.9n7.chris@ccserver.keris.net> <opscu9vmdqkpth9y@athlete> <cfsfs1$tbs$03$1@news.t-online.com>
Reply-To: chris@keristor.net
X-Trace: news.uni-berlin.de +Ork6T/bTgpiq9hHhYHn1wGbVLT/RvekGn3lba5rxaeFjs+3M=
X-Orig-Path: ccserver.keris.net!news
User-Agent: slrn/0.9.7.4 (Linux)