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
6e6823d9
Commit
6e6823d9
authored
Aug 31, 2023
by
David Reid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update deviceio test.
parent
568e0ae9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
tests/test_deviceio/ma_test_deviceio.c
tests/test_deviceio/ma_test_deviceio.c
+6
-4
No files found.
tests/test_deviceio/ma_test_deviceio.c
View file @
6e6823d9
...
...
@@ -344,13 +344,15 @@ void on_data(ma_device* pDevice, void* pFramesOut, const void* pFramesIn, ma_uin
{
case
ma_device_type_playback
:
{
/* In the playback case we just read from our input source. */
/*
In the playback case we just read from our input source. We're going to use ma_data_source_read_pcm_frames() for this
to ensure the data source abstraction is working properly for each type. */
if
(
g_State
.
sourceType
==
source_type_decoder
)
{
ma_d
ecoder
_read_pcm_frames
(
&
g_State
.
decoder
,
pFramesOut
,
frameCount
,
NULL
);
ma_d
ata_source
_read_pcm_frames
(
&
g_State
.
decoder
,
pFramesOut
,
frameCount
,
NULL
);
}
else
if
(
g_State
.
sourceType
==
source_type_waveform
)
{
ma_
waveform
_read_pcm_frames
(
&
g_State
.
waveform
,
pFramesOut
,
frameCount
,
NULL
);
ma_
data_source
_read_pcm_frames
(
&
g_State
.
waveform
,
pFramesOut
,
frameCount
,
NULL
);
}
else
if
(
g_State
.
sourceType
==
source_type_noise
)
{
ma_
nois
e_read_pcm_frames
(
&
g_State
.
noise
,
pFramesOut
,
frameCount
,
NULL
);
ma_
data_sourc
e_read_pcm_frames
(
&
g_State
.
noise
,
pFramesOut
,
frameCount
,
NULL
);
}
}
break
;
...
...
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