Haydn: Make SoundIO session implementation lock-free (#2068)
* Haydn: Fix race condition in SoundIO Update implementation This should fix weird crashes happening for some people with SoundIO. Fix #2062 * haydn: Make SoundIO session lock-free
This commit is contained in:
parent
460a98390e
commit
d02eeed9c1
2 changed files with 28 additions and 40 deletions
|
@ -2,8 +2,15 @@
|
|||
{
|
||||
class SoundIoAudioBuffer
|
||||
{
|
||||
public ulong DriverIdentifier;
|
||||
public ulong SampleCount;
|
||||
public readonly ulong DriverIdentifier;
|
||||
public readonly ulong SampleCount;
|
||||
public ulong SamplePlayed;
|
||||
|
||||
public SoundIoAudioBuffer(ulong driverIdentifier, ulong sampleCount)
|
||||
{
|
||||
DriverIdentifier = driverIdentifier;
|
||||
SampleCount = sampleCount;
|
||||
SamplePlayed = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue