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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - jeffkilledjohn

Pages: [1]
1
Audio / Re: No audio comes out of my program
« on: November 05, 2018, 05:54:17 pm »
Aaaaah thanks!!! I thought only sf::Sound must be alive, because you are passing the SoundBuffer to sf::Sound, so it would be implicit. Anyway, thanks!!

2
Audio / No audio comes out of my program
« on: November 05, 2018, 12:54:39 am »
Hi at all! I'm trying to add sounds into my game, but I am getting into troubles.
I am currently using Irrlicht, and I know I can't mix these two engines without problems, but I want only to play audio (and maybe networking, later)!!!

I followed this guide (I am using Visual Studio 2017):
https://www.sfml-dev.org/tutorials/2.5/start-vc.php

I linked against these SFML libraries (Debug config):
sfml-system-d.lib
sfml-audio-d.lib
openal32.lib
flac.lib
vorbisenc.lib
vorbisfile.lib
vorbis.lib
ogg.lib

But no sounds comes out of my game when I copy-paste this code:
sf::SoundBuffer buffer;
if (!buffer.loadFromFile("sounds/select.ogg"))
    return;
sf::Sound sound;
sound.setBuffer(buffer);
sound.setLoop(true);
sound.play();


No errors appear in console. Where is the problem?

Thanks in advance!!

Pages: [1]
anything