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 - marcf3

Pages: [1]
1
General discussions / Re: SFML 3 - What is your vision?
« on: July 05, 2014, 04:44:55 am »
How can I tell how many samples to load with soundBuffer.loadFromStream()? It seems to me that it loads the entire sound data too (from a file or a stream that contains an audio entity), and already sends it to OpenAL with alBufferData(). Or am I missing something?
By "audio streaming", I really mean to read a part of an audio entity and play it while the next part is loaded chunk by chunk, wether it is from a file or a C++ input stream (it's a bit ambiguous I guess).

2
General discussions / Re: SFML 3 - What is your vision?
« on: July 05, 2014, 04:10:17 am »
Quote
It is even explained that you would want to derive from it to implement your own class that streams data from whatever source you want,  including a filter you wrote
I know, but a filter wouldn't be a source here, just some code between the raw samples and the filtered samples. The real source would be a file, and since the SoundFile wrapper is not exposed, it's difficult to stream them simply. I could use sf::SoundBuffers as in the tutorials, but it's not file streaming.

3
General discussions / Re: SFML 3 - What is your vision?
« on: July 05, 2014, 03:23:33 am »
Ok, I understand for hardware... :)
For software effects, I actually meant "real-time" ones, those we could tweak while the sound is playing. I don't know how it would be done for sf::Sounds since they are entirely uploaded to OpenAL before playing. But for streams, it would need to override onGetData() and perform the effect before returning the chunk. However, there is a SoundFile class here that is not exposed to the API ^^"

4
General discussions / Re: SFML 3 - What is your vision?
« on: July 05, 2014, 02:47:42 am »
I remember there is an EFX extension to OpenAL that handles some effects. But if it can't be hardware-accelerated, could software post-processing be achieved (like many audio softwares do) as well by the ability to write filtering code before the samples to be sent to OpenAL?

5
General discussions / Re: SFML 3 - What is your vision?
« on: July 05, 2014, 01:37:31 am »
I don't think it has been mentionned before, but adding audio effects and more fine-grained control would be great. It seems to me that the area is often lacking features :p

As the graphics API supports shaders, it would be nice to be able to (at least) apply audio filters to create reverberations, echos, convolutions, 3D effects etc.  :D

I agree to the need for loop points too, especially when streaming audio. Also, if possible, an option for low-latency playing of streamed sounds (preload first chunks on openFromFile())?


Pages: [1]
anything