Nim bindings to the soloud audio engine (https://github.com/jarikomppa/soloud/)
Run the example from the project directory with -
nim c -r examples/example.nim
Nim bindings to the soloud audio engine (https://github.com/jarikomppa/soloud/)
License: MIT License
Nim bindings to the soloud audio engine (https://github.com/jarikomppa/soloud/)
Run the example from the project directory with -
nim c -r examples/example.nim
I know it's been a while, but I am also trying to wrap soloud in nim, and got similar output with c2nim
. I keep getting Illegal storage access. (Attempt to read from nil?)
when I try to Soloud_play()
.
import unittest
import ../src/null0/soloud
suite "Soloud":
test "text":
var sl = Soloud_create()
discard Soloud_initEx(sl, ord(SOLOUD_CLIP_ROUNDOFF), ord(SOLOUD_NULLDRIVER), 44100, ord(SOLOUD_AUTO), 2)
Soloud_setGlobalVolume(sl, 1)
var speech = Speech_create()
discard Speech_setText(speech, "1 2 3 A B C Doooooo Reeeeee Miiiiii Faaaaaa Soooooo Laaaaaa Tiiiiii Doooooo!")
discard Soloud_play(speech, sl)
Soloud_deinit(sl)
Soloud_destroy(sl)
I get similar with your example, using your wrap of soloud. Did you ever get this working? Am I missing some steps?
My full wrapper is here. Main difference is that I inline soloud with {.compile}
instead of using a dll, but I think it all works the same, and it seems to fail the same both ways.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.