summaryrefslogtreecommitdiff
path: root/drivers/coreaudio
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/coreaudio')
-rwxr-xr-xdrivers/coreaudio/coreaudio_driver.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/coreaudio/coreaudio_driver.c b/drivers/coreaudio/coreaudio_driver.c
index 4664f7a..d37940e 100755
--- a/drivers/coreaudio/coreaudio_driver.c
+++ b/drivers/coreaudio/coreaudio_driver.c
@@ -424,15 +424,12 @@ static jack_driver_t *coreaudio_driver_new(char *name,
driver->start = (JackDriverStartFunction) coreaudio_driver_audio_start;
driver->stop = (JackDriverStopFunction) coreaudio_driver_audio_stop;
- char deviceName[64];
- bzero(&deviceName[0], sizeof(char) * 64);
-
if (!driver_name) {
- if (get_device_name_from_id(deviceID, deviceName) != noErr)
+ if (get_device_name_from_id(deviceID, driver->driver_name) != noErr)
goto error;
} else {
JCALog("Use driver name from command line \n");
- strcpy(&deviceName[0], driver_name);
+ strcpy(driver->driver_name, driver_name);
}
driver->client = client;
@@ -443,8 +440,6 @@ static jack_driver_t *coreaudio_driver_new(char *name,
driver->playback_nchannels = chan_out;
driver->capture_nchannels = chan_in;
driver->device_id = deviceID;
-
- strcpy(&driver->driver_name[0], &deviceName[0]);
// Setting buffer size
outSize = sizeof(UInt32);