mirror of https://github.com/McSinyx/palace
Change cdef enum to ctypedef enum to avoid redeclaration
Apparently this redeclaration error (C3431) only happens on Windows.
This commit is contained in:
parent
292ef0393d
commit
24192360f8
|
@ -141,9 +141,9 @@ cdef extern from 'alure2.h' namespace 'alure' nogil:
|
|||
unsigned send 'mSend'
|
||||
|
||||
# Enum classes:
|
||||
cdef enum SampleType:
|
||||
ctypedef enum SampleType:
|
||||
pass
|
||||
cdef enum ChannelConfig:
|
||||
ctypedef enum ChannelConfig:
|
||||
pass
|
||||
|
||||
# The following relies on C++ implicit conversion from char* to string.
|
||||
|
@ -152,24 +152,24 @@ cdef extern from 'alure2.h' namespace 'alure' nogil:
|
|||
cdef unsigned frames_to_bytes 'FramesToBytes'(unsigned, ChannelConfig, SampleType) except +
|
||||
cdef unsigned bytes_to_frames 'BytesToFrames'(unsigned, ChannelConfig, SampleType)
|
||||
|
||||
cdef enum DeviceEnumeration:
|
||||
ctypedef enum DeviceEnumeration:
|
||||
Basic 'alure::DeviceEnumeration::Basic'
|
||||
Full 'alure::DeviceEnumeration::Full'
|
||||
Capture 'alure::DeviceEnumeration::Capture'
|
||||
|
||||
cdef enum DefaultDeviceType:
|
||||
ctypedef enum DefaultDeviceType:
|
||||
Basic 'alure::DefaultDeviceType::Basic'
|
||||
Full 'alure::DefaultDeviceType::Full'
|
||||
Capture 'alure::DefaultDeviceType::Capture'
|
||||
|
||||
cdef enum PlaybackName:
|
||||
ctypedef enum PlaybackName:
|
||||
Basic 'alure::PlaybackName::Basic'
|
||||
Full 'alure::PlaybackName::Full'
|
||||
|
||||
cdef enum DistanceModel:
|
||||
ctypedef enum DistanceModel:
|
||||
pass
|
||||
|
||||
cdef enum Spatialize:
|
||||
ctypedef enum Spatialize:
|
||||
Off 'alure::Spatialize::Off'
|
||||
On 'alure::Spatialize::On'
|
||||
Auto 'alure::Spatialize::Auto'
|
||||
|
|
Loading…
Reference in New Issue