mirror of
https://github.com/BluestormDNA/ProjectPSX.git
synced 2025-04-02 10:52:34 -04:00
OpenTK: Simplify OpenAL bufferdata
This commit is contained in:
parent
87ee1af1f9
commit
f8c5fe39df
1 changed files with 1 additions and 4 deletions
|
@ -47,10 +47,7 @@ namespace ProjectPSX.OpenTK {
|
|||
|
||||
if (queueLength < 5) {
|
||||
alBuffer = AL.GenBuffer();
|
||||
fixed (byte* s = samples) {
|
||||
IntPtr ptr = (IntPtr)s;
|
||||
AL.BufferData(alBuffer, ALFormat.Stereo16, s, samples.Length, 44100);
|
||||
}
|
||||
AL.BufferData(alBuffer, ALFormat.Stereo16, samples, 44100);
|
||||
AL.SourceQueueBuffer(audioSource, alBuffer);
|
||||
queueLength++;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue