📄 sound.java
字号:
package com.brackeen.javagamebook.sound;
/**
The Sound class is a container for sound samples. The sound
samples are format-agnostic and are stored as a byte array.
*/
public class Sound {
private byte[] samples;
/**
Create a new Sound object with the specified byte array.
The array is not copied.
*/
public Sound(byte[] samples) {
this.samples = samples;
}
/**
Returns this Sound's objects samples as a byte array.
*/
public byte[] getSamples() {
return samples;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -