package greenfoot.sound;

import javax.sound.sampled.AudioFormat;


| Data for a sound clip. | | @author Davin McCall | public class ClipData { private String url; private byte[] buffer; private AudioFormat format; private int activeUsers; private int length; | Construct a ClipData with a single active user. | public ClipData(String url, byte[] buffer, AudioFormat format, int length) { this.url = url; this.buffer = buffer; this.format = format; this.length = length; this.activeUsers = 1; } public void addUser() { activeUsers++; } public boolean release() { return --activeUsers == 0; } public String getUrl() { return url; } public byte[] getBuffer() { return buffer; } public AudioFormat getFormat() { return format; } public int getLength() { return length; } }
top, use, map, class ClipData

.   ClipData
.   addUser
.   release
.   getUrl
.   getBuffer
.   getFormat
.   getLength




73 neLoCode + 3 LoComm