Memory in General Sound
ZXNet echo conference «code.zx»
From jtn → To All 13 December 2005
Hello, moroz1999
I didn’t understand the question - in the basic version of GS there was 112kb for music and, accordingly,
All calculations given are for this size. then the expander appeared - obviously
change 112 to 466 in formulas - you will get the required values
From moroz1999 → To All 13 December 2005
Hello, All
The GS documentation says:
> When loading the module, it is highly recommended to leave 2k free
> memory, i.e. load modules with a maximum length of 110K. This condition is not
> is necessary, but its execution is highly desirable for purposes
> compatibility with subsequent versions.
>
> Similarly, it is highly recommended to leave 80 bytes for each
> sample, for example, if you need to load a 63-kilobyte module and
> 18 samples, then we have:
>
> Total_Sample_Length=112*1024-63*1024-2*1024-18*80=46688 bytes
>
> This is the total length of samples that, in this state of affairs
> can be loaded.
>
> If, for example, you need to calculate how much will fit in
> GS's memory is 2 kilobyte samples, then this is calculated as follows
> like this:
> 112*1024/(2048+80)=53 samples.
if we take the amount of free memory from GS using its own command, then
466 kb is returned.
Then what do recommendations have to do with this if this is actually how it is implemented?maybe someone knows what's the matter?
From moroz1999 → To All 14 December 2005
Hello jtn
Sorry, I slowed down properly :)