Compare commits

..

No commits in common. "9babdba06f5a3a8e797381d1d785e4443c512020" and "1a312e5e4a405c3604345432c7c11d7b647be7c4" have entirely different histories.

5 changed files with 4 additions and 11 deletions

View File

@ -1,3 +1,2 @@
# xyosc
A simple XY-oscilloscope written in Go.
![Screenshot_20241021_143354-xyosc](https://github.com/user-attachments/assets/225dd213-5a26-4e99-ac2a-f2c69f1485e1)

View File

@ -16,7 +16,7 @@ var SampleSizeInBytes uint32
const format = malgo.FormatF32
func Init() {
SampleRingBuffer = ringbuffer.New(int(config.Config.RingBufferSize)).SetBlocking(true)
SampleRingBuffer = ringbuffer.New(int(config.Config.RingBufferSize))
SampleSizeInBytes = uint32(malgo.SampleSizeInBytes(format))
}

View File

@ -37,8 +37,8 @@ var DefaultConfig = ConfigS{
WindowOpacity: 0.8,
CaptureDeviceIndex: 0,
SampleRate: 48000,
RingBufferSize: 4800,
ReadBufferSize: 4800,
RingBufferSize: 192000,
ReadBufferSize: 192000,
Gain: 1,
LineOpacity: 50,
LineThickness: 2,

View File

@ -48,9 +48,8 @@ func main() {
AX = BX
AY = BY
}
//audio.SampleRingBuffer.Reset()
if config.Config.FPSCounter {
rl.DrawFPS(16, config.Config.WindowHeight-32)
rl.DrawFPS(16, config.Config.WindowHeight)
}
rl.DrawTextEx(fonts.FontIosevka32, media.PlayingMediaInfo.Artist+" - "+media.PlayingMediaInfo.Title, rl.NewVector2(16, 16), 32, 2, config.AccentColor)
rl.DrawTextEx(fonts.FontIosevka16, media.PlayingMediaInfo.Album, rl.NewVector2(16, 48), 16, 1, config.ThirdColor)

View File

@ -1,5 +0,0 @@
sudo apt-get install gcc-multilib
sudo apt-get install gcc-mingw-w64
sudo apt-get install golang
GOOS=windows GOARCH=386 CGO_ENABLED=1 CXX=i686-w64-mingw32-g++ CC=i686-w64-mingw32-gcc go build -tags noaudio