audio_play_music()


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

audio_pause_music

BGMを再生します(非推奨)

Syntax:

audio_play_music(index, loop);
index
サウンドリソース番号
loop
ループ再生するかどうか

戻り値

N/A
なし

説明

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

This function can be used to start a piece of background music playing. You can only have one piece of background playing at a time when using this function, and starting a sound while a previous one is playing will end the previous one directly. You can also choose whether the sound should loop back to the beginning by setting the loop flag to true, or only to play once by setting it to false.

if !global.Music
{
  audio_stop_music();
}
else
{
  audio_play_music(snd_MusicIntro, true);
}

The above code checks the global variable "Music" and if it returns false, it will stop all background music that is currently playing, and if it returns true, it will loop the music indexed in the variable "snd_MusicIntro".

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件



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