You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the problem or limitation you are having in your project
To get the data that needs to be outputted in any other format than int32_t, the buffer should be created. Which is memory allocation that can be easily prevented.
Describe the feature / enhancement and how it helps to overcome the problem or limitation
Change void AudioDriver::audio_server_process(int p_frames, int32_t *p_buffer, bool p_update_mix_time) to the template function and create private functions that convert from int32_t to the needed type.
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
Through, this might be optimized by the compiler ¯_(ツ)_/¯. The solution might seem overcomplicated, but it's all because of the 24-bit type, that's the reason why the index and buffer is passed to the function, cause c++ doesn't have built-in 24-bit type and the way the value is set to the buffer is weird. Maybe it would be better to create a class that would represent the array and support 24-bit type.
If this enhancement will not be used often, can it be worked around with a few lines of script?
You can always create buffer with int32_t type, but for this the memory should be allocated.
Is there a reason why this should be core and not an add-on in the asset library?
Can't be addon.
The text was updated successfully, but these errors were encountered:
Describe the project you are working on
Oboe AudioDriver
Describe the problem or limitation you are having in your project
To get the data that needs to be outputted in any other format than int32_t, the buffer should be created. Which is memory allocation that can be easily prevented.
Describe the feature / enhancement and how it helps to overcome the problem or limitation
Change
void AudioDriver::audio_server_process(int p_frames, int32_t *p_buffer, bool p_update_mix_time)
to the template function and create private functions that convert from int32_t to the needed type.Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
Through, this might be optimized by the compiler ¯_(ツ)_/¯. The solution might seem overcomplicated, but it's all because of the 24-bit type, that's the reason why the index and buffer is passed to the function, cause c++ doesn't have built-in 24-bit type and the way the value is set to the buffer is weird. Maybe it would be better to create a class that would represent the array and support 24-bit type.
If this enhancement will not be used often, can it be worked around with a few lines of script?
You can always create buffer with int32_t type, but for this the memory should be allocated.
Is there a reason why this should be core and not an add-on in the asset library?
Can't be addon.
The text was updated successfully, but these errors were encountered: