mirror of
https://github.com/make-42/xyosc
synced 2024-11-23 09:40:09 +01:00
Compare commits
No commits in common. "9babdba06f5a3a8e797381d1d785e4443c512020" and "1a312e5e4a405c3604345432c7c11d7b647be7c4" have entirely different histories.
9babdba06f
...
1a312e5e4a
@ -1,3 +1,2 @@
|
|||||||
# xyosc
|
# xyosc
|
||||||
A simple XY-oscilloscope written in Go.
|
A simple XY-oscilloscope written in Go.
|
||||||
![Screenshot_20241021_143354-xyosc](https://github.com/user-attachments/assets/225dd213-5a26-4e99-ac2a-f2c69f1485e1)
|
|
||||||
|
@ -16,7 +16,7 @@ var SampleSizeInBytes uint32
|
|||||||
const format = malgo.FormatF32
|
const format = malgo.FormatF32
|
||||||
|
|
||||||
func Init() {
|
func Init() {
|
||||||
SampleRingBuffer = ringbuffer.New(int(config.Config.RingBufferSize)).SetBlocking(true)
|
SampleRingBuffer = ringbuffer.New(int(config.Config.RingBufferSize))
|
||||||
SampleSizeInBytes = uint32(malgo.SampleSizeInBytes(format))
|
SampleSizeInBytes = uint32(malgo.SampleSizeInBytes(format))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -37,8 +37,8 @@ var DefaultConfig = ConfigS{
|
|||||||
WindowOpacity: 0.8,
|
WindowOpacity: 0.8,
|
||||||
CaptureDeviceIndex: 0,
|
CaptureDeviceIndex: 0,
|
||||||
SampleRate: 48000,
|
SampleRate: 48000,
|
||||||
RingBufferSize: 4800,
|
RingBufferSize: 192000,
|
||||||
ReadBufferSize: 4800,
|
ReadBufferSize: 192000,
|
||||||
Gain: 1,
|
Gain: 1,
|
||||||
LineOpacity: 50,
|
LineOpacity: 50,
|
||||||
LineThickness: 2,
|
LineThickness: 2,
|
||||||
|
3
main.go
3
main.go
@ -48,9 +48,8 @@ func main() {
|
|||||||
AX = BX
|
AX = BX
|
||||||
AY = BY
|
AY = BY
|
||||||
}
|
}
|
||||||
//audio.SampleRingBuffer.Reset()
|
|
||||||
if config.Config.FPSCounter {
|
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.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)
|
rl.DrawTextEx(fonts.FontIosevka16, media.PlayingMediaInfo.Album, rl.NewVector2(16, 48), 16, 1, config.ThirdColor)
|
||||||
|
@ -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
|
|
Loading…
Reference in New Issue
Block a user