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
51ebb048
Commit
51ebb048
authored
Feb 23, 2019
by
David Reid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Work in progress for full-duplex for WebAudio.
parent
212cee59
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
166 additions
and
93 deletions
+166
-93
mini_al.h
mini_al.h
+162
-89
tests/mal_test_0.c
tests/mal_test_0.c
+4
-4
No files found.
mini_al.h
View file @
51ebb048
This diff is collapsed.
Click to expand it.
tests/mal_test_0.c
View file @
51ebb048
...
...
@@ -2244,13 +2244,13 @@ void on_send__playback_test(mal_device* pDevice, void* pOutput, const void* pInp
mal_event_signal
(
&
pData
->
endOfPlaybackEvent
);
}
#else
if
(
pDevice
->
format
==
mal_format_f32
)
{
if
(
pDevice
->
playback
.
format
==
mal_format_f32
)
{
for
(
mal_uint32
iFrame
=
0
;
iFrame
<
frameCount
;
++
iFrame
)
{
float
sample
;
mal_sine_wave_read_f32
(
pData
->
pSineWave
,
1
,
&
sample
);
for
(
mal_uint32
iChannel
=
0
;
iChannel
<
pDevice
->
channels
;
++
iChannel
)
{
((
float
*
)
p
Frames
)[
iFrame
*
pDevice
->
channels
+
iChannel
]
=
sample
;
for
(
mal_uint32
iChannel
=
0
;
iChannel
<
pDevice
->
playback
.
channels
;
++
iChannel
)
{
((
float
*
)
p
Output
)[
iFrame
*
pDevice
->
playback
.
channels
+
iChannel
]
=
sample
;
}
}
}
...
...
@@ -2296,7 +2296,7 @@ int do_playback_test(mal_backend backend)
#if defined(__EMSCRIPTEN__)
deviceConfig
.
format
=
mal_format_f32
;
deviceConfig
.
playback
.
format
=
mal_format_f32
;
#endif
result
=
mal_device_init_ex
(
&
backend
,
1
,
&
contextConfig
,
&
deviceConfig
,
&
device
);
...
...
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