audio_pause_music()


Game Maker Language リファレンス > 組み込み関数 用途別 > サウンド > audio_pause_music

audio_pause_music

BGMを一時停止します(非推奨)

構文

audio_pause_music();

戻り値

N/A
なし

説明

注意! この関数は非推奨です。代わりにaudio_pause_sound()を使用してください。

With this function you can pause a music track that is currently playing.

if keyboard_check_pressed(ord("P"))
{
  global.Pause = !global.Pause;
  if global.Pause
  {
    audio_pause_music();
  }
  else
  {
    audio_resume_music();
  }
}

The above code checks for a press of the keyboard key "P" and if it detects one it sets the global variable "Pause" to true or false and then either pauses the music or it resumes the music from its paused state depending on the returned value.

Wiki内検索

#search(): You already view a search box

MENU

ドキュメント

GMLリファレンス

2ch

その他



最新の30件

2024-03-07 2023-08-09 2023-05-21 2023-05-20 2023-05-04 2022-10-13 2022-07-21 2022-07-02 2022-04-06 2021-11-30 2021-11-26 2021-10-03 2021-09-23 2021-08-15 2021-06-02 2021-01-23 2021-01-21 2021-01-19 2021-01-18 2021-01-16 2021-01-15

人気の10件

今日の10件



これまでの訪問者: 640
今日の訪問者: 1
昨日の訪問者: 0
閲覧者: 3