diff options
author | Chris Robinson <[email protected]> | 2018-11-18 08:01:50 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-11-18 08:01:50 -0800 |
commit | 8b8f01e25d31e7874acb5af7e0c3c7c801497410 (patch) | |
tree | 87656be5fa086259978724dbdda186439a93fc63 /Alc/backends/qsa.cpp | |
parent | 336b7b77999fec857093c82c050c96b8ead3cb97 (diff) |
Avoid more cases of an enum variable and type name clash
Diffstat (limited to 'Alc/backends/qsa.cpp')
-rw-r--r-- | Alc/backends/qsa.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Alc/backends/qsa.cpp b/Alc/backends/qsa.cpp index f710f080..e171fb92 100644 --- a/Alc/backends/qsa.cpp +++ b/Alc/backends/qsa.cpp @@ -206,7 +206,7 @@ FORCE_ALIGN static int qsa_proc_playback(void *ptr) SchedSet(0, 0, SCHED_NOCHANGE, ¶m); const ALint frame_size = FrameSizeFromDevFmt( - device->FmtChans, device->FmtType, device->AmbiOrder + device->FmtChans, device->FmtType, device->mAmbiOrder ); PlaybackWrapper_lock(self); @@ -394,13 +394,13 @@ static ALCboolean qsa_reset_playback(PlaybackWrapper *self) data->cparams.stop_mode=SND_PCM_STOP_STOP; data->cparams.buf.block.frag_size=device->UpdateSize * - FrameSizeFromDevFmt(device->FmtChans, device->FmtType, device->AmbiOrder); + FrameSizeFromDevFmt(device->FmtChans, device->FmtType, device->mAmbiOrder); data->cparams.buf.block.frags_max=device->NumUpdates; data->cparams.buf.block.frags_min=device->NumUpdates; data->cparams.format.interleave=1; data->cparams.format.rate=device->Frequency; - data->cparams.format.voices=ChannelsFromDevFmt(device->FmtChans, device->AmbiOrder); + data->cparams.format.voices=ChannelsFromDevFmt(device->FmtChans, device->mAmbiOrder); data->cparams.format.format=format; if ((snd_pcm_plugin_params(data->pcmHandle, &data->cparams))<0) @@ -584,7 +584,7 @@ static ALCboolean qsa_reset_playback(PlaybackWrapper *self) SetDefaultChannelOrder(device); device->UpdateSize=data->csetup.buf.block.frag_size/ - FrameSizeFromDevFmt(device->FmtChans, device->FmtType, device->AmbiOrder); + FrameSizeFromDevFmt(device->FmtChans, device->FmtType, device->mAmbiOrder); device->NumUpdates=data->csetup.buf.block.frags; data->size=data->csetup.buf.block.frag_size; @@ -776,13 +776,13 @@ static ALCenum qsa_open_capture(CaptureWrapper *self, const ALCchar *deviceName) data->cparams.stop_mode=SND_PCM_STOP_STOP; data->cparams.buf.block.frag_size=device->UpdateSize* - FrameSizeFromDevFmt(device->FmtChans, device->FmtType, device->AmbiOrder); + FrameSizeFromDevFmt(device->FmtChans, device->FmtType, device->mAmbiOrder); data->cparams.buf.block.frags_max=device->NumUpdates; data->cparams.buf.block.frags_min=device->NumUpdates; data->cparams.format.interleave=1; data->cparams.format.rate=device->Frequency; - data->cparams.format.voices=ChannelsFromDevFmt(device->FmtChans, device->AmbiOrder); + data->cparams.format.voices=ChannelsFromDevFmt(device->FmtChans, device->mAmbiOrder); data->cparams.format.format=format; if(snd_pcm_plugin_params(data->pcmHandle, &data->cparams) < 0) @@ -840,7 +840,7 @@ static ALCuint qsa_available_samples(CaptureWrapper *self) ALCdevice *device = STATIC_CAST(ALCbackend,self)->mDevice; qsa_data *data = self->ExtraData; snd_pcm_channel_status_t status; - ALint frame_size = FrameSizeFromDevFmt(device->FmtChans, device->FmtType, device->AmbiOrder); + ALint frame_size = FrameSizeFromDevFmt(device->FmtChans, device->FmtType, device->mAmbiOrder); ALint free_size; int rstatus; @@ -877,7 +877,7 @@ static ALCenum qsa_capture_samples(CaptureWrapper *self, ALCvoid *buffer, ALCuin int selectret; struct timeval timeout; int bytes_read; - ALint frame_size=FrameSizeFromDevFmt(device->FmtChans, device->FmtType, device->AmbiOrder); + ALint frame_size=FrameSizeFromDevFmt(device->FmtChans, device->FmtType, device->mAmbiOrder); ALint len=samples*frame_size; int rstatus; |