Menu

#386 Fix SDL sound under FreeBSD

v1.3.4
closed-fixed
nobody
sdl freebsd (1)
5
2017-03-11
2017-02-19
Rene Ladan
No

At least on FreeBSD, SDL sound only works if the sample size is a power of two. If not, an message appears and Fuse stays silent.

"fuse: error: Couldn't open sound device: Fragment size must be a power of two"

Tested with Fuse 1.3.3 and libspectrum 1.3.2 and sdl 1.2.15

Originally submitted by wulf@mail.mipt.ru in https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=183694

1 Attachments

Discussion

  • Rene Ladan

    Rene Ladan - 2017-02-19

    Sorry, first patch didn't came through as I was testing a bit.

     
  • Fredrick Meunier

    Hmm, that's weird - do you know where the underlying requirement for the power of two fragments comes from (so we can detect it more specifically as it doesn't seem to be a SDL requirement as such)?

    We used to have power of two fragments for Amiga-related platforms - does the attached patch also work for FreeBSD?

     

    Last edit: Fredrick Meunier 2017-02-21
  • Rene Ladan

    Rene Ladan - 2017-02-25

    I tested your patch on my laptop (running a development version of FreeBSD), it works fine there. I also build-tested it against FreeBSD 10.3-RELEASE and 11.0-RELEASE for x86 (32-bit and 64-bit) and armv6 (Raspberry PI) platforms.

     
  • Rene Ladan

    Rene Ladan - 2017-02-25

    I didn't look into the underlying reason for the "power of 2" requirement yet.

     
  • Fredrick Meunier

    • Group: future --> NextRelease
     
  • Fredrick Meunier

    Thanks for the feedback, proposed patch applied for the next release.

    I'd still be nice to know whether the requirement comes from a specific underlying sound software stack like OSS.

     
  • Fredrick Meunier

    • status: open --> closed-fixed
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.