GSDP:GAM100/CProcessing/soundFree()

From Inside
Jump to: navigation, search

soundFree

Description

Frees a loaded sound from memory.

Parameters

soundFree(PSound sound)

  • sound - (PSound) The loaded PSound to free.

Example

PSound mySound;
void init()
{
  mySound = soundLoad("./Assets/808cowbell.wav");
}

void update() 
{
  // If the left mouse is clicked, play the sound
  if (mouseClicked())
    soundPlay(mySound, false);
}

void shutdown()
{
  soundFree(mySound);
}

Related

Personal tools
Namespaces

Variants
Actions
Navigation
NameSpaces:>
Tools
Dynamic:>