Browse Source

Merge branch 'libao'

Anton Yabchinskiy 10 năm trước cách đây
mục cha
commit
fff056bdc5
2 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 5 0
      drivers/ao/audio_driver_ao.cpp
  2. 1 0
      drivers/ao/audio_driver_ao.h

+ 5 - 0
drivers/ao/audio_driver_ao.cpp

@@ -6,6 +6,7 @@
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2014 Anton Yabchinskiy.                                 */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
@@ -28,6 +29,8 @@
 /*************************************************************************/
 #include "audio_driver_ao.h"
 
+#ifdef AO_ENABLED
+
 #include "globals.h"
 #include "os/os.h"
 
@@ -154,3 +157,5 @@ AudioDriverAO::AudioDriverAO() {
 AudioDriverAO::~AudioDriverAO() {
 	ao_shutdown();
 };
+
+#endif

+ 1 - 0
drivers/ao/audio_driver_ao.h

@@ -6,6 +6,7 @@
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2014 Anton Yabchinskiy.                                 */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */