Code Monkey home page Code Monkey logo

Comments (14)

Larpon avatar Larpon commented on June 11, 2024 1

@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.

Larpon avatar Larpon commented on June 11, 2024 1

Happy New Year!
It baffles me because the frames_read is silenced in master?

from miniaudio.

inxomnyaa avatar inxomnyaa commented on June 11, 2024 1

Oh my god how can i fail that step twice in a row ^^" I will do, thanks for reminding

from miniaudio.

Larpon avatar Larpon commented on June 11, 2024

@thebigsmileXD weird. Can you attach your wav? Maybe the file has header information the wav loader doesn't like

from miniaudio.

inxomnyaa avatar inxomnyaa commented on June 11, 2024

https://github.com/thebigsmileXD/v-pong/blob/master/click.wav

from miniaudio.

inxomnyaa avatar inxomnyaa commented on June 11, 2024

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.

Larpon avatar Larpon commented on June 11, 2024

😅

from miniaudio.

inxomnyaa avatar inxomnyaa commented on June 11, 2024

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.

inxomnyaa avatar inxomnyaa commented on June 11, 2024

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.

inxomnyaa avatar inxomnyaa commented on June 11, 2024

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.

inxomnyaa avatar inxomnyaa commented on June 11, 2024

Wohoo, got some sound on windows! 🍾 Thanks!

from miniaudio.

Larpon avatar Larpon commented on June 11, 2024

Great stuff! What about Linux?

from miniaudio.

inxomnyaa avatar inxomnyaa commented on June 11, 2024
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.

Larpon avatar Larpon commented on June 11, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.