Thread Rating:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
My first real QB64PE game is up.
#15
(04-19-2024, 10:21 PM)Delsus Wrote: Thank you for your insight! 

For some reason I thought I didn't need to free the memory like for images.

It's an easy fix and I will get to it to prevent memory leaks Big Grin

You can also use _SNDPLAYFILE which automatically loads, plays and then closes the sound for you. This is usually ok. However, if I were to play some sounds often (say an explosion sound in a shooter game), then I'd rather pre-load the sound and keep the sound handle throughout the lifetime of the program. This is purely for performance reasons.
Reply


Messages In This Thread
My first real QB64PE game is up. - by Delsus - 04-17-2024, 04:28 PM
RE: My first real QB64PE game is up. - by Delsus - 04-17-2024, 04:57 PM
RE: My first real QB64PE game is up. - by Delsus - 04-17-2024, 05:08 PM
RE: My first real QB64PE game is up. - by Tim - 04-18-2024, 03:04 AM
RE: My first real QB64PE game is up. - by Tim - 04-18-2024, 01:56 AM
RE: My first real QB64PE game is up. - by Delsus - 04-18-2024, 07:26 AM
RE: My first real QB64PE game is up. - by Tim - 04-18-2024, 05:08 PM
RE: My first real QB64PE game is up. - by Delsus - 04-18-2024, 06:25 PM
RE: My first real QB64PE game is up. - by Delsus - 04-19-2024, 08:55 PM
RE: My first real QB64PE game is up. - by Delsus - 04-19-2024, 10:21 PM
RE: My first real QB64PE game is up. - by a740g - 04-20-2024, 12:38 PM
RE: My first real QB64PE game is up. - by Delsus - 05-11-2024, 06:40 AM
RE: My first real QB64PE game is up. - by Delsus - 05-31-2024, 01:34 PM



Users browsing this thread: 1 Guest(s)