<div dir="ltr"><div><div><div><div>Thank you for your answer.<br><br><br>1. "It is planned, although there's no ETA. It's up to either someone 
contributing code for it, or me finding the time to learn how to do it.<span class="">"<br><br></span></div><div><span class="">Good to know :)<br><br></span></div><div><br>2. "Does trying to set the effect generate an error, either with the effect 
object or the auxiliary effect slot? Maybe the effect is only supported 
on certain hardware with the hardware drivers.<span class="">"<br><br></span></div><span class="">There is no error, none at all. This is why it is very strange.<br><br><br>3. "</span>You should use alGetProcAddress to get al* function pointers, which 
requires an active context, and alcGetProcAddress for alc* function 
pointers. Same for alGetEnumValue for AL_* enums and alcGetEnumValue for
 ALC_* enums.<br>
<br>
OpenAL Soft, and a couple other implementations I believe, use a single 
list for the al* and alc* function pointers, which is why it may work 
anyway, but perhaps the hardware driver doesn't do this."<span class=""><br></span></div><span class=""><br></span></div><span class="">That explains why it was crashing before, thanks :)<br><br><br>4. "</span>By the sounds of it, your code seems to be okay (since you say the 
effect works, if poorly, with sens_oal, and other effects work in place 
of it with other drivers), but it wouldn't hurt to let us take a look at
 it."<br><br></div>Thanks, I attached the files to this message but one can also get them on GitHub: (OpenALStream.cpp and OpenALStream.h)<br><br><a href="https://github.com/LAGonauta/dolphin/tree/x-fi-EFX-timestretch">https://github.com/LAGonauta/dolphin/tree/x-fi-EFX-timestretch</a><br><div><div><div><div><div><div><br></div><div>Besides adding EFX time-stretching support I am also adding support to 32-bit fixed point to X-Fi cards. The effect is not working on 16-bit and 32-bit.<br><br></div><div>I have a hunch that it has something to do with how samples are buffered on Dolphin, but I don't know where to look...<br><br></div><div>Anyway, any help would be appreciated :)<br></div><div><div class="gmail_extra"><br><div class="gmail_quote">2015-09-16 9:27 GMT-03:00 Chris Robinson <span dir="ltr"><<a href="mailto:chris.kcat@gmail.com" target="_blank">chris.kcat@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="">On 09/13/2015 08:42 AM, Luís Felipe Safady wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Hello everyone,<br>
I am new here so I would like to ask some questions first. Is list just for<br>
OpenAL Soft or for anything related to OpenAL? I am having some problems<br>
using the EFX extension with hardware based cards, and it would be good if<br>
I could ask it here.<br>
</blockquote>
<br></span>
This is for OpenAL in general. I don't know if anyone from Creative actively reads this list (maybe Ian?), so it may not be good for direct support of Creative's drivers, but perhaps someone can still give some advice.<span class=""><br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Is there any plan on adding other EFX effects to OpenAL Soft, like the<br>
pitch shifter?<br>
</blockquote>
<br></span>
It is planned, although there's no ETA. It's up to either someone contributing code for it, or me finding the time to learn how to do it.<span class=""><br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
When using OpenAL Soft, wrap_oal and Sens_oal everything works perfectly<br>
(obviously I could only test with other effects other than the pitch<br>
shifter, and Sens_oal pitch shifter is very bad), but with ct_oal (for<br>
hardware based OpenAL cards) the effect just doesn't work.<br>
</blockquote>
<br></span>
Does trying to set the effect generate an error, either with the effect object or the auxiliary effect slot? Maybe the effect is only supported on certain hardware with the hardware drivers.<span class=""><br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
When I compile the samples from the SDK it works, when I use OpenTK's<br>
OpenAL it works (I know a lot more about C# than I know about C/C++).<br>
At first I was generating the function pointers before setting current the<br>
context, with OpenAL Soft it worked fine but it crashed with a read to an<br>
invalid address with hardware OpenAL cards, so it seems there may be a<br>
sequence to follow when using them.<br>
</blockquote>
<br></span>
You should use alGetProcAddress to get al* function pointers, which requires an active context, and alcGetProcAddress for alc* function pointers. Same for alGetEnumValue for AL_* enums and alcGetEnumValue for ALC_* enums.<br>
<br>
OpenAL Soft, and a couple other implementations I believe, use a single list for the al* and alc* function pointers, which is why it may work anyway, but perhaps the hardware driver doesn't do this.<span class=""><br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
I can post the edited files here if anyone want, they are GPL'd anyway.<br>
(they are just two, a .h and a .cpp)<br>
</blockquote>
<br></span>
By the sounds of it, your code seems to be okay (since you say the effect works, if poorly, with sens_oal, and other effects work in place of it with other drivers), but it wouldn't hurt to let us take a look at it.<br>
_______________________________________________<br>
openal mailing list<br>
<a href="mailto:openal@openal.org" target="_blank">openal@openal.org</a><br>
<a href="http://openal.org/mailman/listinfo/openal" rel="noreferrer" target="_blank">http://openal.org/mailman/listinfo/openal</a></blockquote></div><br></div></div></div></div></div></div></div></div>