Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
itdan3344
stb
提交
a200fab1
S
stb
项目概览
itdan3344
/
stb
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
stb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
a200fab1
编写于
8月 01, 2015
作者:
S
Sean Barrett
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add some minor comments
上级
d821fd83
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
19 addition
and
3 deletion
+19
-3
stb_vorbis.c
stb_vorbis.c
+19
-3
未找到文件。
stb_vorbis.c
浏览文件 @
a200fab1
// Ogg Vorbis audio decoder - v1.0
4
- public domain
// Ogg Vorbis audio decoder - v1.0
5
- public domain
// http://nothings.org/stb_vorbis/
// http://nothings.org/stb_vorbis/
//
//
// Written by Sean Barrett in 2007, last updated in 2014
// Written by Sean Barrett in 2007, last updated in 2014
...
@@ -24,12 +24,13 @@
...
@@ -24,12 +24,13 @@
// Casey Muratori John Bolton Gargaj
// Casey Muratori John Bolton Gargaj
// Laurent Gomila Marc LeBlanc Ronny Chevalier
// Laurent Gomila Marc LeBlanc Ronny Chevalier
// Bernhard Wodo Evan Balster "alxprd"@github
// Bernhard Wodo Evan Balster "alxprd"@github
// Tom Beaumont Ingo Leitgeb
// Tom Beaumont Ingo Leitgeb
Nicolas Guillemot
// (If you reported a bug but do not appear in this list, it is because
// (If you reported a bug but do not appear in this list, it is because
// someone else reported the bug before you. There were too many of you to
// someone else reported the bug before you. There were too many of you to
// list them all because I was lax about updating for a long time, sorry.)
// list them all because I was lax about updating for a long time, sorry.)
//
//
// Partial history:
// Partial history:
// 1.05 - 2015/04/19 - don't define __forceinline if it's redundant
// 1.04 - 2014/08/27 - fix missing const-correct case in API
// 1.04 - 2014/08/27 - fix missing const-correct case in API
// 1.03 - 2014/08/07 - warning fixes
// 1.03 - 2014/08/07 - warning fixes
// 1.02 - 2014/07/09 - declare qsort comparison as explicitly _cdecl in Windows
// 1.02 - 2014/07/09 - declare qsort comparison as explicitly _cdecl in Windows
...
@@ -553,7 +554,7 @@ enum STBVorbisError
...
@@ -553,7 +554,7 @@ enum STBVorbisError
#define NULL 0
#define NULL 0
#endif
#endif
#if
ndef _MSC_VER
#if
!defined(_MSC_VER) && !(defined(__MINGW32__) && defined(__forceinline))
#if __GNUC__
#if __GNUC__
#define __forceinline inline
#define __forceinline inline
#else
#else
...
@@ -3147,6 +3148,20 @@ static int do_floor(vorb *f, Mapping *map, int i, int n, float *target, YTYPE *f
...
@@ -3147,6 +3148,20 @@ static int do_floor(vorb *f, Mapping *map, int i, int n, float *target, YTYPE *f
return
TRUE
;
return
TRUE
;
}
}
// The meaning of "left" and "right"
//
// For a given frame:
// we compute samples from 0..n
// window_center is n/2
// we'll window and mix the samples from left_start to left_end with data from the previous frame
// all of the samples from left_end to right_start can be output without mixing; however,
// this interval is 0-length except when transitioning between short and long frames
// all of the samples from right_start to right_end need to be mixed with the next frame,
// which we don't have, so those get saved in a buffer
// frame N's right_end-right_start, the number of samples to mix with the next frame,
// has to be the same as frame N+1's left_end-left_start (which they are by
// construction)
static
int
vorbis_decode_initial
(
vorb
*
f
,
int
*
p_left_start
,
int
*
p_left_end
,
int
*
p_right_start
,
int
*
p_right_end
,
int
*
mode
)
static
int
vorbis_decode_initial
(
vorb
*
f
,
int
*
p_left_start
,
int
*
p_left_end
,
int
*
p_right_start
,
int
*
p_right_end
,
int
*
mode
)
{
{
Mode
*
m
;
Mode
*
m
;
...
@@ -5397,6 +5412,7 @@ int stb_vorbis_get_samples_float(stb_vorbis *f, int channels, float **buffer, in
...
@@ -5397,6 +5412,7 @@ int stb_vorbis_get_samples_float(stb_vorbis *f, int channels, float **buffer, in
#endif // STB_VORBIS_NO_PULLDATA_API
#endif // STB_VORBIS_NO_PULLDATA_API
/* Version history
/* Version history
1.05 - 2015/04/19 - don't define __forceinline if it's redundant
1.04 - 2014/08/27 - fix missing const-correct case in API
1.04 - 2014/08/27 - fix missing const-correct case in API
1.03 - 2014/08/07 - Warning fixes
1.03 - 2014/08/07 - Warning fixes
1.02 - 2014/07/09 - Declare qsort compare function _cdecl on windows
1.02 - 2014/07/09 - Declare qsort compare function _cdecl on windows
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录