Skip to content

Commit

Permalink
cmake corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
pschatzmann committed Jun 23, 2024
1 parent 5432842 commit 99c0675
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/AudioConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@
*/
#pragma once
#if defined(IS_MIN_DESKTOP)
# define EXIT_ON_STOP
# include "AudioLibs/Desktop/NoArduino.h"
#elif defined(IS_DESKTOP_WITH_TIME_ONLY)
# include "AudioLibs/Desktop/x.h"
# define EXIT_ON_STOP
# include "AudioLibs/Desktop/Time.h"
# include "AudioLibs/Desktop/NoArduino.h"
#elif defined(IS_DESKTOP)
# define EXIT_ON_STOP
# include "Arduino.h"
#elif defined(ARDUINO)
# include "Arduino.h"
Expand Down
3 changes: 2 additions & 1 deletion src/AudioTools/AudioTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,13 @@ struct AudioInfo {
setAudioInfo(info);
}

#ifndef SWIG
/// Same as set
AudioInfo& operator= (const AudioInfo& info){
setAudioInfo(info);
return *this;
}

#endif
/// Returns true if all components are defined (no component is 0)
operator bool() {
return sample_rate > 0 && channels > 0 && bits_per_sample > 0;
Expand Down

0 comments on commit 99c0675

Please sign in to comment.