Skip to content

Commit

Permalink
Allow AUD_init with nullptr to use default device.
Browse files Browse the repository at this point in the history
  • Loading branch information
neXyon committed Mar 10, 2021
1 parent fc68868 commit be1cb25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bindings/C/AUD_Special.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ AUD_API AUD_Device* AUD_init(const char* device, AUD_DeviceSpecs specs, int buff
{
try
{
std::shared_ptr<IDeviceFactory> factory = DeviceManager::getDeviceFactory(device);
std::shared_ptr<IDeviceFactory> factory = device ? DeviceManager::getDeviceFactory(device) : DeviceManager::getDefaultDeviceFactory();

if(factory)
{
Expand Down

0 comments on commit be1cb25

Please sign in to comment.