MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / makeBufferFromData

Method makeBufferFromData

src/main/java/trace/sound/Sound.java:236–250  ·  view source on GitHub ↗
(WaveData data)

Source from the content-addressed store, hash-verified

234// data.samplerate);
235 data.dispose();
236
237 return r;
238 }
239
240 public Buffer makeBufferFromData(WaveData data)
241 throws FileNotFoundException {
242
243 System.out.println(" loaded :" + data.format + " " + data.samplerate
244 + " " + data.data);
245 Buffer r = new Buffer();
246 AL10.alGenBuffers(r.buffer);
247 AL10.alBufferData(r.buffer.get(0), data.format, data.data,
248 data.samplerate);
249// AL10.alBufferData(r.buffer.get(0), 0x1205, data.data,
250// data.samplerate);
251 data.dispose();
252
253 return r;

Callers

nothing calls this directly

Calls 2

getMethod · 0.65
printlnMethod · 0.45

Tested by

no test coverage detected