8000 Muted sound in OpenBSD (sndio) · Issue #1203 · mackron/miniaudio · GitHub
[go: up one dir, main page]

Skip to content

Muted sound in OpenBSD (sndio) #1203

Backlog
Backlog

Description

@krsanky

main.c

I am playing an wav file using two simple ways.
The wav file is a radio call from the game urban terror. It's short.
I am using OpenBSD, and including miniaudio as:

      7 #define MA_ENABLE_SNDIO
      8 #define MA_ENABLE_ONLY_SPECIFIC_BACKENDS
      9 #include "miniaudio.h"
     10
     11 #define WAV1 "URT_RADIO_RAW/radio/female/female11.wav"

TEST 1:

     25         ma_result       result;
     26         ma_engine       engine;
     27         /* ma_engine* pEngine = malloc(sizeof(*pEngine)); */
     28
     29         result = ma_engine_init(NULL, &engine);
     30         printf("result:%d\n", result);
     31         printf("MA_SUCCESS:%d\n", MA_SUCCESS);
     32
     33         ma_engine_play_sound(&engine, WAV1, NULL);
     34         sleep(3);

AND

     45         ma_sound        sound;
     46         ma_engine       engine;
     47         ma_engine_init(NULL, &engine);
     48         ma_sound_init_from_file(
     49                 &engine,
     50                 WAV1,
     51                 MA_SOUND_FLAG_DECODE |
     52                 MA_SOUND_FLAG_NO_PITCH |
     53                 MA_SOUND_FLAG_NO_SPATIALIZATION,
     54                 NULL, NULL, &sound);
     55
     56         ma_sound_start(&sound);
     57         sleep(3);

Both ways the sound is muted compared to playing it
with the builtin play command or using mpv.
By muted I mean it plays fine and I can hear it, but it sounds
dull or like it's far away.
I have the audio volume maxed in all cases.

Any idea what the issue could be?

Thanks!,
Paul

Edit: I also tried another random wav file and it does the same thing.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0