Questions tagged [soundbuffer]

5 questions
2
votes
1 answer

SFML SoundBuffer to Music buffer

I have SoundBuffer. I want this buffer move to Music. For now I save in file and read out, but I don't want saving. What can I do? Now I have this code: sf::SoundBuffer sb =…
Nejc Galof
  • 2,538
  • 3
  • 31
  • 70
2
votes
1 answer

Circular buffers in OpenAL

In DirectSound, there was a very distinct concept of circular buffers In particular there was a current read position, a current write position, and clear methods to GetPosition and lock the buffer and start writing. I'm looking for a similar…
bobobobo
  • 64,917
  • 62
  • 258
  • 363
0
votes
1 answer

SFML: How to overload Packet operator>> with a SoundBuffer?

I am struggling with this one. I'd like to overload operator >> in order to send SoundBuffer to client , but Packet doesn't support Int16* which is type of a.getSamples(); sf::Packet& operator >>(sf::Packet& packet, SoundBuffer& a) { return…
Patrick
  • 1
  • 1
0
votes
0 answers

SFML, how to send SoundBuffer with a packet?

I am trying to create a voice chat using SFML. Program records 1 second-long parts with a SoundbufferRecorder. when I test the code below, console shows this: Failed to load sound file from memory void receiveData() { received_data = false; …
Patrick
  • 1
  • 1
0
votes
1 answer

Xna (MonoGame) DynamicSoundEffectInstance Buffer already Full exception

I'm making this game in MonoGame (basically Xna) that uses DynamicSoundEffectInstance class. MonoGame does not have an implementation of DynamicSoundEffectInstance yet, so I made my own: using System; using System.Collections.Generic; using…
pjrader1
  • 491
  • 7
  • 22