Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Error creating sf::SoundBuffer  (Read 2731 times)

0 Members and 1 Guest are viewing this topic.

krab

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • Email
Error creating sf::SoundBuffer
« on: May 06, 2018, 06:15:53 pm »
I get a memory error when trying to create a sf::SoundBuffer:

Code: [Select]
Cannot lock down 82274202 byte memory area (Cannot allocate memory)
Cannot lock down 82274202 byte memory area (Cannot allocate memory)
Cannot use real-time scheduling (RR/5)(1: Operation not permitted)
JackClient::AcquireSelfRealTime error

That's before I try to load from a file. It even happens when this is the only code:

Code: [Select]
sf::SoundBuffer buf;
Besides this problem, I've been trying to understand why SFML uses jack server to output audio, but I can't find any useful information on that topic (I use Ubuntu 17.10)

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11033
    • View Profile
    • development blog
    • Email
Re: Error creating sf::SoundBuffer
« Reply #1 on: May 06, 2018, 06:21:42 pm »
SFML uses the default ouput device. If you set it to Jack server it will use that and it doesn't seem to be configured correctly or SFML may simply not be fully compatible with Jack (or the other way around).
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything