Este sítio funciona melhor com JavaScript.
Página inicial
Explorar
Ajuda
Iniciar sessão
Archivist
/
raylib-src
espelho de
https://github.com/raysan5/raylib
Vigiar
1
Marcar como favorito
0
Derivar
0
Código
Questões
0
Lançamentos
24
Wiki
Trabalho
Ver a proveniência
[raudio] Fix freeing the wrong memory
pull/5481/head
Marcos Paccor
há 1 mês
ascendente
0bcf79ce28
cometimento
77f61f6843
1 ficheiros alterados
com
1 adições
e
1 eliminações
Visualização em 2 colunas
Opções das diferenças
Mostrar estatísticas
Descarregar ficheiro patch
Descarregar ficheiro diff
+1
-1
src/raudio.c
+ 1
- 1
src/raudio.c
Ver ficheiro
@ -1249,7 +1249,7 @@ void WaveFormat(Wave *wave, int sampleRate, int sampleSize, int channels)
frameCount
=
(
ma_uint32
)
ma_convert_frames
(
data
,
frameCount
,
formatOut
,
channels
,
sampleRate
,
wave
-
>
data
,
frameCountIn
,
formatIn
,
wave
-
>
channels
,
wave
-
>
sampleRate
)
;
if
(
frameCount
=
=
0
)
{
RL_FREE
(
wave
-
>
data
)
;
RL_FREE
(
data
)
;
TRACELOG
(
LOG_WARNING
,
"
WAVE: Failed format conversion
"
)
;
return
;
}
Escrever
Pré-visualizar
Carregando…
Cancelar
Guardar