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
f37df9a8
Commit
f37df9a8
authored
Feb 09, 2019
by
David Reid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove some unused properties from device and config structures.
parent
32c64703
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
265 additions
and
336 deletions
+265
-336
mini_al.h
mini_al.h
+262
-333
tests/mal_duplex.c
tests/mal_duplex.c
+3
-3
No files found.
mini_al.h
View file @
f37df9a8
This diff is collapsed.
Click to expand it.
tests/mal_duplex.c
View file @
f37df9a8
...
...
@@ -23,7 +23,7 @@ void stop_callback(mal_device* pDevice)
void
data_callback
(
mal_device
*
pDevice
,
void
*
pOutput
,
const
void
*
pInput
,
mal_uint32
frameCount
)
{
/* In this test the format and channel count are the same for both input and output which means we can just memcpy(). */
mal_copy_memory
(
pOutput
,
pInput
,
frameCount
*
mal_get_bytes_per_frame
(
pDevice
->
format
,
pDevice
->
channels
));
mal_copy_memory
(
pOutput
,
pInput
,
frameCount
*
mal_get_bytes_per_frame
(
pDevice
->
capture
.
format
,
pDevice
->
capture
.
channels
));
/* Also write to a wav file for debugging. */
drwav
*
pWav
=
(
drwav
*
)
pDevice
->
pUserData
;
...
...
@@ -50,7 +50,7 @@ int main(int argc, char** argv)
}
mal_backend
backend
=
mal_backend_
wasapi
;
mal_backend
backend
=
mal_backend_
dsound
;
mal_context_config
contextConfig
=
mal_context_config_init
();
contextConfig
.
logCallback
=
log_callback
;
...
...
@@ -70,7 +70,7 @@ int main(int argc, char** argv)
deviceConfig
.
playback
.
format
=
mal_format_f32
;
deviceConfig
.
playback
.
channels
=
2
;
deviceConfig
.
sampleRate
=
44100
;
deviceConfig
.
bufferSizeInMilliseconds
=
100
0
;
deviceConfig
.
bufferSizeInMilliseconds
=
5
0
;
deviceConfig
.
periods
=
3
;
deviceConfig
.
dataCallback
=
data_callback
;
deviceConfig
.
stopCallback
=
stop_callback
;
...
...
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