Comments (14)
@thebigsmileXD - the click sound works fine on my Ubuntu 18.04 based distro (although it's super low volume). Try a git pull
and run it again? (on Linux)
from miniaudio.
Happy New Year!
It baffles me because the frames_read
is silenced in master?
from miniaudio.
Oh my god how can i fail that step twice in a row ^^" I will do, thanks for reminding
from miniaudio.
@thebigsmileXD weird. Can you attach your wav? Maybe the file has header information the wav loader doesn't like
from miniaudio.
https://github.com/thebigsmileXD/v-pong/blob/master/click.wav
from miniaudio.
Here is the error report of windows, maybe that helps
Quelle
sound.exe
Zusammenfassung
Nicht mehr funktionsfähig
Datum
â24.â12.â2019 02:20
Status
Der Bericht wurde gesendet.
Beschreibung
Pfad der fehlerhaften Anwendung: C:\Users\XenialDan\Desktop\V\vcode\v-pong\sound.exe
Problemsignatur
Problemereignisame: BEX64
Anwendungsname: sound.exe
Anwendungsversion: 0.0.0.0
Anwendungszeitstempel: 5e0167c4
Fehlermodulname: StackHash_3703
Fehlermodulversion: 0.0.0.0
Fehlermodulzeitstempel: 00000000
Ausnahmeoffset: PCH_60_FROM_ntdll+0x000000000009CC14
Ausnahmecode: c0000005
Ausnahmedaten: 0000000000000008
Betriebsystemversion: 10.0.18362.2.0.0.256.48
Gebietsschema-ID: 1031
Zusatzinformation 1: 3703
Zusatzinformation 2: 370315630e8318662060278dbe0a557f
Zusatzinformation 3: db67
Zusatzinformation 4: db67c0a595146918a4bfa5020a2303dc
Weitere Informationen Ăźber das Problem
Bucket-ID: 310b2e85a9820ced8d47b6313fb404de (2109855273084781790)
Sorry that it is in german, i can not figure out a quick way to change the language
from miniaudio.
đ
from miniaudio.
R.I.P., my Linux device just literally died in front of me. I will have to test it later
I got to test the file in VLC on linux though, and it failed too, maybe actually something with my audio
from miniaudio.
So, same on WSL (bash on ubuntu on windows):
v -g run sound.v
C compiler=cc
warning: miniaudio/miniaudio.v:53:15: `frames_read` declared and not used
Loading wav
[ALSA] Failed to open shared object.
[miniaudio] Endian: LE
[miniaudio] SSE2: YES
[miniaudio] AVX2: NO
[miniaudio] AVX512F: NO
[miniaudio] NEON: NO
[Null]
NULL Playback Device (Playback)
Format: 16-bit Signed Integer -> 16-bit Signed Integer
Channels: 2 -> 2
Sample Rate: 44100 -> 44100
Buffer Size: 1320/3 (440)
Conversion:
Pre Format Conversion: NO
Post Format Conversion: NO
Channel Routing: NO
SRC: NO
Channel Routing at Start: NO
Passthrough: YES
Playing wav 1593
Seeking frame 0
Seek PCM frame 0
Starting device
Started device
Segmentation fault (core dumped)
from miniaudio.
I will check why the submodule won't properly update, it seems i am stuck on https://github.com/Larpon/v-miniaudio/blob/4de91bbf96413c5e08c5ae4b514c4c3dd3d47ffc/miniaudio.v#L53
from miniaudio.
Wohoo, got some sound on windows! đž Thanks!
from miniaudio.
Great stuff! What about Linux?
from miniaudio.
C compiler=cc
warning: miniaudio/miniaudio.v:53:15: `frames_read` declared and not used
warning: pong.v:141:2: reference field `gg.Cfg.window_user_ptr` must be initialized
warning: pong.v:323:31: casting `int` to `int` is not needed
In file included from /home/xenialdan/Documents/v/vcode/v-pong/pong.v:528:
/home/xenialdan/Documents/v/vcode/v-pong/miniaudio/c/miniaudio/miniaudio.h:636: warning: "MA_LOG_LEVEL_VERBOSE" redefined
#define MA_LOG_LEVEL_VERBOSE 4
<command-line>: note: this is the location of the previous definition
In file included from /home/xenialdan/Documents/v/thirdparty/stb_image/stb_image.h:547,
from /home/xenialdan/Documents/v/vcode/v-pong/pong.v:530:
/home/xenialdan/Documents/v/thirdparty/stb_image/stb_image.h: In function âstbi__shiftsignedâ:
/home/xenialdan/Documents/v/thirdparty/stb_image/stb_image.h:5116:18: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
STBI_ASSERT(v >= 0 && v < 256);
^~
/home/xenialdan/Documents/v/thirdparty/stb_image/stb_image.h:5116:4: note: in expansion of macro âSTBI_ASSERTâ
STBI_ASSERT(v >= 0 && v < 256);
^~~~~~~~~~~
/home/xenialdan/Documents/v/thirdparty/stb_image/stb_image.h:5116:18: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
STBI_ASSERT(v >= 0 && v < 256);
^~
/home/xenialdan/Documents/v/thirdparty/stb_image/stb_image.h:5116:4: note: in expansion of macro âSTBI_ASSERTâ
STBI_ASSERT(v >= 0 && v < 256);
^~~~~~~~~~~
/home/xenialdan/Documents/v/vcode/v-pong/pong.v: At top level:
/home/xenialdan/Documents/v/vcode/v-pong/pong.v:533:10: fatal error: ft2build.h: No such file or directory
compilation terminated.
V error: C error. This should never happen.
Please create a GitHub issue: https://github.com/vlang/v/issues/new/choose
from miniaudio.
Alright, well that's unrelated to miniaudio. if you update the submodule to master the audio should work (same frames_read as above) đ
from miniaudio.
Related Issues (8)
- Really long build time HOT 1
- X module HOT 2
- Build errors when using miniaudio auto generated wrapper HOT 1
- simultaneous recording and playback HOT 1
- miniaudio module broken, C structs apparently interfere with V's stdlib HOT 7
- miniaudio unfortunately doesn't work anymore on windows HOT 3
- Does not install, compiler error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
đ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. đđđ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google â¤ď¸ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from miniaudio.