diff options
author | Chris Robinson <[email protected]> | 2017-04-04 06:58:53 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2017-04-04 06:58:53 -0700 |
commit | 26144ca9dffd935c3e7499b417ccb9a6ef93eea0 (patch) | |
tree | cc2cf8d930485be834d9f1d3f78e76825a7c4838 /Alc/backends/jack.c | |
parent | b78ddc7ef7bd145a3468e520e9bc4be5c551a952 (diff) |
Rename al_string_* functions to alstr_*
Diffstat (limited to 'Alc/backends/jack.c')
-rw-r--r-- | Alc/backends/jack.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Alc/backends/jack.c b/Alc/backends/jack.c index f1cd82bd..cce828e9 100644 --- a/Alc/backends/jack.c +++ b/Alc/backends/jack.c @@ -115,7 +115,7 @@ static ALCboolean jack_load(void) p##f = GetSymbol(jack_handle, #f); \ if(p##f == NULL) { \ error = ALC_TRUE; \ - al_string_append_cstr(&missing_funcs, "\n" #f); \ + alstr_append_cstr(&missing_funcs, "\n" #f); \ } \ } while(0) JACK_FUNCS(LOAD_FUNC); @@ -123,11 +123,11 @@ static ALCboolean jack_load(void) if(error) { - WARN("Missing expected functions:%s\n", al_string_get_cstr(missing_funcs)); + WARN("Missing expected functions:%s\n", alstr_get_cstr(missing_funcs)); CloseLib(jack_handle); jack_handle = NULL; } - al_string_deinit(&missing_funcs); + alstr_reset(&missing_funcs); } #endif @@ -220,7 +220,7 @@ static int ALCjackPlayback_bufferSizeNotify(jack_nframes_t numframes, void *arg) device->NumUpdates = 2; bufsize = device->UpdateSize; - if(ConfigValueUInt(al_string_get_cstr(device->DeviceName), "jack", "buffer-size", &bufsize)) + if(ConfigValueUInt(alstr_get_cstr(device->DeviceName), "jack", "buffer-size", &bufsize)) bufsize = maxu(NextPowerOf2(bufsize), device->UpdateSize); bufsize += device->UpdateSize; device->NumUpdates = bufsize / device->UpdateSize; @@ -373,7 +373,7 @@ static ALCenum ALCjackPlayback_open(ALCjackPlayback *self, const ALCchar *name) jack_set_process_callback(self->Client, ALCjackPlayback_process, self); jack_set_buffer_size_callback(self->Client, ALCjackPlayback_bufferSizeNotify, self); - al_string_copy_cstr(&device->DeviceName, name); + alstr_copy_cstr(&device->DeviceName, name); return ALC_NO_ERROR; } @@ -415,7 +415,7 @@ static ALCboolean ALCjackPlayback_reset(ALCjackPlayback *self) device->NumUpdates = 2; bufsize = device->UpdateSize; - if(ConfigValueUInt(al_string_get_cstr(device->DeviceName), "jack", "buffer-size", &bufsize)) + if(ConfigValueUInt(alstr_get_cstr(device->DeviceName), "jack", "buffer-size", &bufsize)) bufsize = maxu(NextPowerOf2(bufsize), device->UpdateSize); bufsize += device->UpdateSize; device->NumUpdates = bufsize / device->UpdateSize; |