mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
CoreAudio: Pass AudioDeviceIOProcID to AudioDeviceStart()/AudioDeviceStop() functions
This commit is contained in:
parent
c0f18670f4
commit
7d349fd68f
1 changed files with 2 additions and 2 deletions
|
|
@ -665,7 +665,7 @@ public:
|
||||||
{
|
{
|
||||||
if (OK (AudioDeviceCreateIOProcID (deviceID, audioIOProc, this, &audioProcID)))
|
if (OK (AudioDeviceCreateIOProcID (deviceID, audioIOProc, this, &audioProcID)))
|
||||||
{
|
{
|
||||||
if (OK (AudioDeviceStart (deviceID, audioIOProc)))
|
if (OK (AudioDeviceStart (deviceID, audioProcID)))
|
||||||
{
|
{
|
||||||
started = true;
|
started = true;
|
||||||
}
|
}
|
||||||
|
|
@ -696,7 +696,7 @@ public:
|
||||||
|
|
||||||
if (started && (deviceID != 0) && ! leaveInterruptRunning)
|
if (started && (deviceID != 0) && ! leaveInterruptRunning)
|
||||||
{
|
{
|
||||||
OK (AudioDeviceStop (deviceID, audioIOProc));
|
OK (AudioDeviceStop (deviceID, audioProcID));
|
||||||
OK (AudioDeviceDestroyIOProcID (deviceID, audioProcID));
|
OK (AudioDeviceDestroyIOProcID (deviceID, audioProcID));
|
||||||
audioProcID = {};
|
audioProcID = {};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue