Compare commits

...
2 Commits
Author SHA1 Message Date
Paul Dino Jones d465db0055 Remove more debug code 2026-03-04 01:09:45 -05:00
Paul Dino Jones 2eb48907a0 fix compilation error 2026-03-03 23:42:18 -05:00
2 changed files with 3 additions and 8 deletions
+1 -6
View File
@@ -28,13 +28,8 @@ int setupsound()
pa_threaded_mainloop_lock(mainloop);
// Start the mainloop
<<<<<<< Updated upstream
assert(pa_threaded_mainloop_start(mainloop) == 0);
assert(pa_context_connect(context, NULL, 0, NULL) == 0);
=======
pa_threaded_mainloop_start(mainloop);
pa_context_connect(context, NULL, PA_CONTEXT_NOAUTOSPAWN, NULL);
>>>>>>> Stashed changes
pa_context_connect(context, NULL, 0, NULL);
// Wait for the context to be ready
for(;;) {
@@ -207,14 +207,14 @@ int usb_generic_shaker_init(SoundDevice* sounddevice, pa_threaded_mainloop* main
// for now i'm only supporting playing on one specified channel which is the concept you should build your setups around
cv.values[pan] = channel_volume;
assert(pa_stream_connect_playback(stream, devname, &buffer_attr, stream_flags, &cv, NULL) == 0);
pa_stream_connect_playback(stream, devname, &buffer_attr, stream_flags, &cv, NULL);
//pa_stream_connect_playback(stream, devname, &buffer_attr, stream_flags, &cv, NULL);
// Wait for the stream to be ready
for(;;)
{
pa_stream_state_t stream_state = pa_stream_get_state(stream);
assert(PA_STREAM_IS_GOOD(stream_state));
PA_STREAM_IS_GOOD(stream_state);
//PA_STREAM_IS_GOOD(stream_state);
if (stream_state == PA_STREAM_READY) break;
pa_threaded_mainloop_wait(mainloop);