Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
miniaudio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
miniaudio
Commits
018c1713
Commit
018c1713
authored
Aug 04, 2021
by
David Reid
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into dev-0.11
parents
b45a978d
9d9395d7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
extras/miniaudio_libopus.h
extras/miniaudio_libopus.h
+2
-2
extras/miniaudio_libvorbis.h
extras/miniaudio_libvorbis.h
+1
-1
No files found.
extras/miniaudio_libopus.h
View file @
018c1713
...
@@ -82,13 +82,13 @@ static ma_data_source_vtable g_ma_libopus_ds_vtable =
...
@@ -82,13 +82,13 @@ static ma_data_source_vtable g_ma_libopus_ds_vtable =
#if !defined(MA_NO_LIBOPUS)
#if !defined(MA_NO_LIBOPUS)
static
int
ma_libopus_of_callback__read
(
void
*
pUserData
,
void
*
pBufferOut
,
int
bytesToRead
)
static
int
ma_libopus_of_callback__read
(
void
*
pUserData
,
unsigned
char
*
pBufferOut
,
int
bytesToRead
)
{
{
ma_libopus
*
pOpus
=
(
ma_libopus
*
)
pUserData
;
ma_libopus
*
pOpus
=
(
ma_libopus
*
)
pUserData
;
ma_result
result
;
ma_result
result
;
size_t
bytesRead
;
size_t
bytesRead
;
result
=
pOpus
->
onRead
(
pOpus
->
pReadSeekTellUserData
,
pBufferOut
,
bytesToRead
,
&
bytesRead
);
result
=
pOpus
->
onRead
(
pOpus
->
pReadSeekTellUserData
,
(
void
*
)
pBufferOut
,
bytesToRead
,
&
bytesRead
);
if
(
result
!=
MA_SUCCESS
)
{
if
(
result
!=
MA_SUCCESS
)
{
return
-
1
;
return
-
1
;
...
...
extras/miniaudio_libvorbis.h
View file @
018c1713
...
@@ -313,7 +313,7 @@ MA_API ma_result ma_libvorbis_read_pcm_frames(ma_libvorbis* pVorbis, void* pFram
...
@@ -313,7 +313,7 @@ MA_API ma_result ma_libvorbis_read_pcm_frames(ma_libvorbis* pVorbis, void* pFram
break
;
break
;
}
else
{
}
else
{
/* Frames need to be interleaved. */
/* Frames need to be interleaved. */
ma_interleave_pcm_frames
(
format
,
channels
,
libvorbisResult
,
ppFramesF32
,
ma_offset_pcm_frames_ptr
(
pFramesOut
,
totalFramesRead
,
format
,
channels
));
ma_interleave_pcm_frames
(
format
,
channels
,
libvorbisResult
,
(
const
void
**
)
ppFramesF32
,
ma_offset_pcm_frames_ptr
(
pFramesOut
,
totalFramesRead
,
format
,
channels
));
totalFramesRead
+=
libvorbisResult
;
totalFramesRead
+=
libvorbisResult
;
if
(
libvorbisResult
==
0
)
{
if
(
libvorbisResult
==
0
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment