Skip to content

Commit

Permalink
Remove panning_constants.h
Browse files Browse the repository at this point in the history
Moves the four constants in panning_constants.h into panning.h, then
removes panning.h.
  • Loading branch information
rubiefawn committed Nov 28, 2024
1 parent 3a61877 commit 0794170
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 44 deletions.
2 changes: 1 addition & 1 deletion include/MidiEvent.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

#include <cstdlib>
#include "Midi.h"
#include "panning_constants.h"
#include "panning.h"
#include "volume.h"

namespace lmms
Expand Down
5 changes: 4 additions & 1 deletion include/panning.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
#define LMMS_PANNING_H

#include "lmms_basics.h"
#include "panning_constants.h"
#include "Midi.h"
#include "volume.h"

Expand All @@ -36,6 +35,10 @@
namespace lmms
{

inline constexpr panning_t PanningRight = 100;
inline constexpr panning_t PanningLeft = -PanningRight;
inline constexpr panning_t PanningCenter = 0;
inline constexpr panning_t DefaultPanning = PanningCenter;

inline StereoVolumeVector panningToVolumeVector( panning_t _p,
float _scale = 1.0f )
Expand Down
41 changes: 0 additions & 41 deletions include/panning_constants.h

This file was deleted.

2 changes: 1 addition & 1 deletion src/tracks/SampleTrack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

#include "EffectChain.h"
#include "Mixer.h"
#include "panning_constants.h"
#include "panning.h"
#include "PatternStore.h"
#include "PatternTrack.h"
#include "SampleClip.h"
Expand Down

0 comments on commit 0794170

Please sign in to comment.