GSDP:GAM100/CProcessing/CP Sound PauseAll()

From Inside
Jump to: navigation, search

CP_Sound_PauseAll()

Description

Pause all CP_Sounds that are currently playing.

Example

CP_Sound mySound = NULL;

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

void update()
{
  float songLength = 500;
  static float timer = 0;

  timer += 1;

  CP_Settings_Background(CP_Color_Create(255, 255, 255, 255));

  CP_Sound_Play(mySound);

  if(timer >= .5f * songLength)
  {
    CP_Sound_PauseAll();
  }
}

void shutdown()
{
  CP_Sound_Free(mySound);
}

Related

Personal tools
Namespaces

Variants
Actions
Navigation
NameSpaces:>
Tools
Dynamic:>