GSDP:GAM100/CProcessing/CP Sound Free()

From Inside
< GSDP:GAM100‎ | CProcessing
Revision as of 15:49, 27 October 2020 by >Kenny.mecham (New page: =CP_Sound_Free()= == Description == Free a CP_Sound by inputting the CP_Sound that you want to free. The CProcess...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

CP_Sound_Free()

Description

Free a CP_Sound by inputting the CP_Sound that you want to free.

The CProcessing Sound Manager will remove the given sound from memory, making it an invalid CP_Sound.

Parameters

CP_Sound_Free(CP_Sound sound)

  • sound - (CP_Sound) The sound that you want to free.

Example

CP_Sound mySound = NULL;

void init()
{
  mySound = CP_Sound_Load("./Assets/Justins_voice.wav");
}

void update()
{
  CP_Settings_Background(CP_Color_Create(255, 255, 255, 255));

  CP_Sound_Play(mySound);
}

void shutdown()
{
  CP_Sound_Free(mySound);
}

Related

Personal tools
Namespaces

Variants
Actions
Navigation
NameSpaces:>
Tools
Dynamic:>