summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorAnton Yabchinskiy <arn@bestmx.ru>2014-11-22 03:04:46 +0300
committerAnton Yabchinskiy <arn@bestmx.ru>2014-11-22 13:38:11 +0300
commit4c8bfecc43886ce2414a96100f56d2ba1a0a4078 (patch)
tree00b6a640d18f019733f0f5ec15312e54c3df2a11 /drivers
parent3c2e35ada9f8364355d6fc231e0ca5b6c553233f (diff)
Change 0 to NULL for ao_open_live() and device
It's NULL in other places.
Diffstat (limited to 'drivers')
-rw-r--r--drivers/ao/audio_driver_ao.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ao/audio_driver_ao.cpp b/drivers/ao/audio_driver_ao.cpp
index 6511122583..c43a3b15ae 100644
--- a/drivers/ao/audio_driver_ao.cpp
+++ b/drivers/ao/audio_driver_ao.cpp
@@ -51,8 +51,8 @@ Error AudioDriverAO::init() {
format.byte_format = AO_FMT_LITTLE;
format.matrix = "L,R";
- device = ao_open_live(ao_default_driver_id(), &format, 0);
- ERR_FAIL_COND_V(device == 0, ERR_CANT_OPEN);
+ device = ao_open_live(ao_default_driver_id(), &format, NULL);
+ ERR_FAIL_COND_V(device == NULL, ERR_CANT_OPEN);
int latency = GLOBAL_DEF("audio/output_latency", 25);
buffer_size = nearest_power_of_2( latency * mix_rate / 1000 );