Hi Laurent,
as I studied the source of the audio package of SFML I wondered why you were storing the samples in the vector myBuffer in sf::SoundBuffer. AFAIK OpenAL copies the sample data with alBufferData(..), so you just could use temporary memory and free it after the call to alBufferData(..).
Correct me if I'm wrong! If I'm right, I'd like to know why you did it this way :wink:
Martin