coreaudio: Replaced an int with an SDL_bool.
--HG-- extra : rebase_source : 138647f0ffe75f92eb0390ca9703583e09265bf8
This commit is contained in:
parent
e41b4d3b34
commit
c89347abed
2 changed files with 2 additions and 2 deletions
|
@ -564,7 +564,7 @@ prepare_audiounit(_THIS, void *handle, int iscapture,
|
||||||
result = AudioComponentInstanceNew(comp, &this->hidden->audioUnit);
|
result = AudioComponentInstanceNew(comp, &this->hidden->audioUnit);
|
||||||
CHECK_RESULT("AudioComponentInstanceNew");
|
CHECK_RESULT("AudioComponentInstanceNew");
|
||||||
|
|
||||||
this->hidden->audioUnitOpened = 1;
|
this->hidden->audioUnitOpened = SDL_TRUE;
|
||||||
|
|
||||||
if (iscapture) { /* have to do EnableIO only for capture devices. */
|
if (iscapture) { /* have to do EnableIO only for capture devices. */
|
||||||
UInt32 enable = 1;
|
UInt32 enable = 1;
|
||||||
|
|
|
@ -44,7 +44,7 @@
|
||||||
struct SDL_PrivateAudioData
|
struct SDL_PrivateAudioData
|
||||||
{
|
{
|
||||||
AudioUnit audioUnit;
|
AudioUnit audioUnit;
|
||||||
int audioUnitOpened;
|
SDL_bool audioUnitOpened;
|
||||||
void *buffer;
|
void *buffer;
|
||||||
UInt32 bufferOffset;
|
UInt32 bufferOffset;
|
||||||
UInt32 bufferSize;
|
UInt32 bufferSize;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue