Skip to content

Commit

Permalink
Try fix windows not finding M_PI
Browse files Browse the repository at this point in the history
  • Loading branch information
JustDoom committed Dec 17, 2024
1 parent 06d1156 commit a04a91c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/sdl/emulator/SdlSpeaker.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
#include "SdlSpeaker.h"

#include <SDL3/SDL.h>
#include <iostream>
#include <math.h>
#include <valarray>
#include <vector>

#include <SDL3/SDL.h>

SdlSpeaker::SdlSpeaker() : amplitude(28000), sampleRate(44100), frequency(220), duration(500), sampleCount((sampleRate * duration) / 1000), beepData(sampleCount) {
SDL_AudioSpec desiredSpec;
SDL_zero(desiredSpec);
Expand Down

0 comments on commit a04a91c

Please sign in to comment.