 |
 |
 |
 |
| Name |
|
play() |
 |
|
|
| Examples |
|
BSound funky;
void setup() {
beginSound();
funky = loadSound("funky.wav");
play(funky);
}
|
|
BSound count;
void setup() {
beginSound();
count = loadSound("123.wav");
play(count, 1000, 2000);
}
|
|
|
| Description |
|
BSound かBVideo オブジェクトをプレーバックしはじめる。一度サウンドの終わりに到達すると、プレーバックは止まる。
start とend パラメータは、サンプルかフレームのプレーバックがどこから始まり終らなければならないのか決めるのに使われる。もしオブジェクトが現在、プレイされているのなら、play()
をよんでも再生されない。
|
 |
|
|
| Syntax |
|
play(object)
play(object, start, end)
|
 |
|
|
| Parameters |
|
| object |
|
BSound かBVideo: プレイされるオブジェクト
|
| start |
|
整数: 開始点
|
| end |
|
整数: プレーバックを止める場所
|
|
 |
|
|
| Usage |
|
Web & Application |
 |
|
|
| Related |
|
repeat() pause() stop() |
|