mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 06:01:14 +00:00
Update Opus driver to 1.1.2
And opusfile to 0.7.
This commit is contained in:
parent
a3d81cab8a
commit
7c59d819a7
270 changed files with 12814 additions and 5061 deletions
|
|
@ -24,12 +24,9 @@ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
***********************************************************************/
|
||||
|
||||
#ifdef OPUS_ENABLED
|
||||
#include "opus/opus_config.h"
|
||||
#endif
|
||||
|
||||
#include "opus/silk/silk_main.h"
|
||||
#include "opus/silk/main.h"
|
||||
|
||||
/* shell coder; pulse-subframe length is hardcoded */
|
||||
|
||||
|
|
@ -58,8 +55,8 @@ static OPUS_INLINE void encode_split(
|
|||
}
|
||||
|
||||
static OPUS_INLINE void decode_split(
|
||||
opus_int *p_child1, /* O pulse amplitude of first child subframe */
|
||||
opus_int *p_child2, /* O pulse amplitude of second child subframe */
|
||||
opus_int16 *p_child1, /* O pulse amplitude of first child subframe */
|
||||
opus_int16 *p_child2, /* O pulse amplitude of second child subframe */
|
||||
ec_dec *psRangeDec, /* I/O Compressor data structure */
|
||||
const opus_int p, /* I pulse amplitude of current subframe */
|
||||
const opus_uint8 *shell_table /* I table of shell cdfs */
|
||||
|
|
@ -117,12 +114,12 @@ void silk_shell_encoder(
|
|||
|
||||
/* Shell decoder, operates on one shell code frame of 16 pulses */
|
||||
void silk_shell_decoder(
|
||||
opus_int *pulses0, /* O data: nonnegative pulse amplitudes */
|
||||
opus_int16 *pulses0, /* O data: nonnegative pulse amplitudes */
|
||||
ec_dec *psRangeDec, /* I/O Compressor data structure */
|
||||
const opus_int pulses4 /* I number of pulses per pulse-subframe */
|
||||
)
|
||||
{
|
||||
opus_int pulses3[ 2 ], pulses2[ 4 ], pulses1[ 8 ];
|
||||
opus_int16 pulses3[ 2 ], pulses2[ 4 ], pulses1[ 8 ];
|
||||
|
||||
/* this function operates on one shell code frame of 16 pulses */
|
||||
silk_assert( SHELL_CODEC_FRAME_LENGTH == 16 );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue