diff options
| author | Rémi Verschelde | 2017-03-05 16:44:50 +0100 |
|---|---|---|
| committer | Rémi Verschelde | 2017-03-05 16:44:50 +0100 |
| commit | 5dbf1809c6e3e905b94b8764e99491e608122261 (patch) | |
| tree | 5e5a5360db15d86d59ec8c6e4f7eb511388c5a9a /platform/bb10/audio_driver_bb10.h | |
| parent | 45438e9918d421b244bfd7776a30e67dc7f2d3e3 (diff) | |
| download | godot-5dbf180.tar.gz godot-5dbf180.tar.zst godot-5dbf180.zip | |
A Whole New World (clang-format edition)
I can show you the code
Pretty, with proper whitespace
Tell me, coder, now when did
You last write readable code?
I can open your eyes
Make you see your bad indent
Force you to respect the style
The core devs agreed upon
A whole new world
A new fantastic code format
A de facto standard
With some sugar
Enforced with clang-format
A whole new world
A dazzling style we all dreamed of
And when we read it through
It's crystal clear
That now we're in a whole new world of code
Diffstat (limited to 'platform/bb10/audio_driver_bb10.h')
| -rw-r--r-- | platform/bb10/audio_driver_bb10.h | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/platform/bb10/audio_driver_bb10.h b/platform/bb10/audio_driver_bb10.h index efb98b1b9..2a0ed9c54 100644 --- a/platform/bb10/audio_driver_bb10.h +++ b/platform/bb10/audio_driver_bb10.h @@ -28,23 +28,23 @@ /*************************************************************************/ #include "servers/audio_server.h" -#include "core/os/thread.h" #include "core/os/mutex.h" +#include "core/os/thread.h" #include <sys/asoundlib.h> class AudioDriverBB10 : public AudioDriver { - Thread* thread; - Mutex* mutex; + Thread *thread; + Mutex *mutex; - snd_pcm_t* pcm_handle; + snd_pcm_t *pcm_handle; - int32_t* samples_in; - int16_t* samples_out; + int32_t *samples_in; + int16_t *samples_out; int sample_buf_count; - static void thread_func(void* p_udata); + static void thread_func(void *p_udata); int mix_rate; SpeakerMode speaker_mode; @@ -58,13 +58,12 @@ class AudioDriverBB10 : public AudioDriver { bool pcm_open; public: - - const char* get_name() const { + const char *get_name() const { return "BB10"; }; virtual Error init(); - virtual Error init(const char* p_name); + virtual Error init(const char *p_name); virtual void start(); virtual int get_mix_rate() const; virtual SpeakerMode get_speaker_mode() const; @@ -75,4 +74,3 @@ public: AudioDriverBB10(); ~AudioDriverBB10(); }; - |
