Skip to content

Conversation

@ripxorip
Copy link
Owner

@ripxorip ripxorip commented Sep 6, 2025

No description provided.

Introduces a standalone Windows simulator replicating the PWAR ASIO driver's UDP networking and IOCP-based processing. Adds CMake configuration, documentation, and main implementation for protocol testing and development without DAW or ASIO registration.
Changed DEFAULT_SERVER_IP to '196.168.66.2' and DEFAULT_CLIENT_PORT to 8321 to match the current setup requirements.
Replaces IOCP-based UDP listener with a simplified socket-based implementation for improved reliability and maintainability. Removes dependency on pwar_router and related code, updates buffer and channel constants, and streamlines packet processing and response logic.
Removed windows/torture from CMakeLists.txt. Updated client_simulator to use 'packet size' terminology instead of 'buffer size' and changed related command-line options and validation. Modified pwarASIO.cpp to handle audio packets in interleaved format and removed unused latency manager initialization.
@umbertov
Copy link

umbertov commented Sep 27, 2025

tested this and i'm getting many less x-runs compared to the current main branch. previously, i'd get overruns by just playing a sine wave, now it takes more CPU load before i start getting them. I see you simplified the ring buffer and got read of one pthread_cond which probably helped.

I was thinking that the ASIO driver's buffer size could be read at startup from the config file, because i currently see no way in my DAW (ableton) to change that.

i've made PR #9 (with this branch as the base) for reading a buffer_size variable from pwarASIO.cfg, it uses pwaraASIO::setBufferSize which was already there. Feel free to merge or close it, in case i'm missing some configuration step on my DAW.

@umbertov
Copy link

by the way, now if i change the "Chunk Size" in the Linux GUI to anything else than 128, i get crazy sound artifacts, which did not happen in the master branch. It sounds like a sped up and choppy version of the audio i generate.

@ripxorip
Copy link
Owner Author

Yeah, I noticed that too. I will try to finalize this PR in the next few days and then we try to incorporate all your contributions after that 👍 Greateful for your time and effort @umbertov

@umbertov
Copy link

hey @ripxorip has development halted? I reckon this is probably a hobby project of yours and you may be busy with other things in your life, but if you'd like some help, you could write up a small list of things to do & to fix for this PR and i may try to send some patches in my free time. I abstained from contributing to this since I did not want to duplicate efforts but if my time allows, I may put some effort in.

@ripxorip
Copy link
Owner Author

Hi man, yeah that is correct. I have been swamped with work. I would really like your contributions, how about I merge this PR and then I will only create smaller PRs in the future so that I wont risk duplication of work? Cheers, really appreciate your efforts :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants