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
78ecf63a
Commit
78ecf63a
authored
May 07, 2018
by
David Reid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up.
parent
39fff52a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
tools/mini_sigvis/mini_sigvis.h
tools/mini_sigvis/mini_sigvis.h
+2
-7
No files found.
tools/mini_sigvis/mini_sigvis.h
View file @
78ecf63a
...
...
@@ -203,7 +203,7 @@ dtk_bool32 msigvis_window_event_handler(dtk_event* pEvent)
mal_uint32
iFirstSample
=
0
;
for
(
mal_uint32
iSample
=
iFirstSample
;
iSample
<
pChannel
->
sampleCount
;
iSample
+=
sampleInterval
)
{
float
samplePosX
=
iSample
*
sampleSpacingX
;
float
samplePosY
=
msigvis_channel_get_sample_f32
(
pChannel
,
iSample
)
*
sampleSpacingY
*
-
1
;
//
Swap
the Y axis for graphics output.
float
samplePosY
=
msigvis_channel_get_sample_f32
(
pChannel
,
iSample
)
*
sampleSpacingY
*
-
1
;
//
Invert
the Y axis for graphics output.
dtk_rect
pointRect
;
pointRect
.
left
=
(
dtk_int32
)
samplePosX
;
...
...
@@ -452,12 +452,7 @@ float msigvis_channel_get_sample_f32(msigvis_channel* pChannel, mal_uint32 iSamp
{
switch
(
pChannel
->
format
)
{
case
mal_format_f32
:
{
float
x
=
*
((
float
*
)
pChannel
->
pBuffer
+
iSample
);
return
x
;
//return *((float*)pChannel->pBuffer + iSample);
}
case
mal_format_f32
:
return
*
((
float
*
)
pChannel
->
pBuffer
+
iSample
);
default:
return
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