diff --git a/.clang-format b/.clang-format index f44524e..a36c471 100644 --- a/.clang-format +++ b/.clang-format @@ -11,9 +11,10 @@ IndentWidth: 4 UseTab: Always BraceWrapping: AfterCaseLabel: true - AfterEnum: true + AfterEnum: false AfterFunction: true BreakBeforeBraces: Custom +AllowShortEnumsOnASingleLine: false SeparateDefinitionBlocks: Leave MaxEmptyLinesToKeep: 2 diff --git a/source/StreamIO.h b/source/StreamIO.h index baed3d3..23bb17e 100644 --- a/source/StreamIO.h +++ b/source/StreamIO.h @@ -112,8 +112,7 @@ class StreamIO : public BAdapterIO, BUrlProtocolListener { void _ProcessMeta(); private: - enum FrameSync - { + enum FrameSync { none, first, done diff --git a/source/StreamPlayer.h b/source/StreamPlayer.h index c5437ce..424b047 100644 --- a/source/StreamPlayer.h +++ b/source/StreamPlayer.h @@ -48,8 +48,7 @@ class StreamPlayer : private BLocker { float Volume(); void SetVolume(float volume); - enum PlayState - { + enum PlayState { InActive = -1, Stopped, Playing,