Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MemSound has a deficiency :)
#9
Yeah. We cannot do this using ELEMENTSIZE alone. And I too agree that passing 0x18 in TYPE is not a satisfactory solution as those are related to the sizes of QB64 base data type.

I did not really pay attention to the note:
Quote:If a future integer, float or other type doesn't have a size that is 1,2,4,8,16,32,64,128 or 256 it won't have a size-bit set.

But I notice that TYPE is an _OFFSET and the remaining bits above 16 are unused.

So, we can use say bit 17 like:
  • [bit 17] 131072 = 24-bit audio data usually from _MEMSOUND and _SNDNEW

This is kinda like what bit 11 is doing.

The idea of just adding a new _SND command is tempting. We did talk about it before, but I too do not remember the outcome. Big Grin  I think we decided to use the ELEMENTSIZE and TYPE fields then. Not sure.
Reply


Messages In This Thread
MemSound has a deficiency :) - by Petr - 04-24-2023, 06:37 PM
RE: MemSound has a deficiency :) - by a740g - 04-25-2023, 08:35 AM
RE: MemSound has a deficiency :) - by RhoSigma - 04-25-2023, 12:09 PM
RE: MemSound has a deficiency :) - by DSMan195276 - 04-25-2023, 01:40 PM
RE: MemSound has a deficiency :) - by mnrvovrfc - 04-25-2023, 09:17 AM
RE: MemSound has a deficiency :) - by SMcNeill - 04-25-2023, 04:16 PM
RE: MemSound has a deficiency :) - by DSMan195276 - 04-25-2023, 06:09 PM
RE: MemSound has a deficiency :) - by SMcNeill - 04-25-2023, 06:42 PM
RE: MemSound has a deficiency :) - by mnrvovrfc - 04-26-2023, 02:51 AM
RE: MemSound has a deficiency :) - by a740g - 04-25-2023, 08:58 PM



Users browsing this thread: 4 Guest(s)