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
9da8df1b
Commit
9da8df1b
authored
Jan 13, 2025
by
HeroesOfBalkan
Committed by
David Reid
Jan 22, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add explicit casts to suppress -Wfloat-conversion warnings
parent
ed5964c9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
miniaudio.h
miniaudio.h
+3
-3
No files found.
miniaudio.h
View file @
9da8df1b
...
...
@@ -57826,7 +57826,7 @@ MA_API ma_result ma_data_source_seek_seconds(ma_data_source* pDataSource, float
}
/* We need PCM frames instead of seconds */
frameCount =
secondCount * sampleRate
;
frameCount =
(ma_uint64)(secondCount * sampleRate)
;
result = ma_data_source_seek_pcm_frames(pDataSource, frameCount, &framesSeeked);
...
...
@@ -57851,7 +57851,7 @@ MA_API ma_result ma_data_source_seek_to_second(ma_data_source* pDataSource, floa
}
/* We need PCM frames instead of seconds */
frameIndex =
secondIndex * sampleRate
;
frameIndex =
(ma_uint64)(secondIndex * sampleRate)
;
return ma_data_source_seek_to_pcm_frame(pDataSource, frameIndex);
}
...
...
@@ -77470,7 +77470,7 @@ MA_API ma_result ma_sound_seek_to_second(ma_sound* pSound, float secondIndex)
}
/* We need PCM frames. We need to convert first */
frameIndex =
secondIndex * sampleRate
;
frameIndex =
(ma_uint64)(secondIndex * sampleRate)
;
return ma_sound_seek_to_pcm_frame(pSound, frameIndex);
}
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