Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sndio sound support for OpenBSD #451

Merged
merged 1 commit into from Dec 12, 2019
Merged

Add sndio sound support for OpenBSD #451

merged 1 commit into from Dec 12, 2019

Conversation

ckeen
Copy link
Contributor

@ckeen ckeen commented Dec 9, 2019

This commit introduces a new plugin "vm-sound-sndio" which uses the
native OpenBSD sound system as backend.

This commit is meant as an initial introduction of the plugin, as
sound output currently blocks the whole VM.

The plugin is not loaded by default and should only get built when
running on OpenBSD.

My intention with this pull request is to get the infrastructure for future improvements up and running, so further development is easier for me and people have a way of testing the plugin.

Copy link
Member

@krono krono left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall

@@ -11,7 +11,7 @@ LDFLAGS=""
case $(uname -s) in
OpenBSD)
CFLAGS="$CFLAGS -I/usr/local/include"
LIBS="$LIBS -lexecinfo"
LIBS="$LIBS -lexecinfo -lsndio"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should go in Makefile.inc in the plugins dir as such:

PLIBS=-lsndio

@@ -0,0 +1,201 @@
/* sqUnixSndioSound.c -- sound module for sndio sound system
*
* Last edited: 2005-04-06 05:44:40 by piumarta on pauillac.hpl.hp.com
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe adapt that one ;)

#include <stdio.h>
#include <sndio.h>

#define trace() fprintf(stderr, "%s:%d %s\n", __FILE__, __LINE__, __FUNCTION__)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a debug guard

This commit introduces a new plugin "vm-sound-sndio" which uses the
native OpenBSD sound system as backend.

This commit is meant as an initial introduction of the plugin, as
sound output currently blocks the whole VM.

The plugin is not loaded by default and should only get built when
running on OpenBSD.
@ckeen
Copy link
Contributor Author

ckeen commented Dec 11, 2019

Many thanks for your feedback and sorry for the late reply. I have updated the branch incorporating your suggestions. If you can find the time to have a loot at it again, I'd appreciate it.

@krono
Copy link
Member

krono commented Dec 11, 2019

Looks good to me. Anyone else having a look?

@OpenSmalltalk-Bot
Copy link

OpenSmalltalk-Bot commented Dec 12, 2019 via email

@krono krono merged commit d58235c into OpenSmalltalk:Cog Dec 12, 2019
krono added a commit that referenced this pull request Dec 21, 2019
hogoww referenced this pull request in hogoww/opensmalltalk-vm Dec 23, 2021
…: ] on method [ lastPointerOfWhileSwizzling: ]
hogoww referenced this pull request in hogoww/opensmalltalk-vm Dec 23, 2021
… ] on method [ lastPointerOfWhileSwizzling: ] KILLED by 1/209 test cases.
hogoww referenced this pull request in hogoww/opensmalltalk-vm Dec 29, 2021
hogoww referenced this pull request in hogoww/opensmalltalk-vm Dec 29, 2021
…se] ] on method [ freeTreeNodesDo: ] KILLED by 1/234 test cases.
hogoww referenced this pull request in hogoww/opensmalltalk-vm Feb 26, 2022
… true ] on method [ popObjStack: ] 14 test cases.
hogoww referenced this pull request in hogoww/opensmalltalk-vm Feb 26, 2022
…true ] on method [ popObjStack: ] 10/14 Test Cases are NOT EQUIVALENT
tesonep added a commit to tesonep/opensmalltalk-vm that referenced this pull request Nov 28, 2022
…-windows

Adding Libgit2-1.4.4 in Windows
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.

None yet

3 participants