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
6d5efde2
Commit
6d5efde2
authored
Jan 13, 2025
by
HeroesOfBalkan
Committed by
David Reid
Jan 22, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename secondIndex variables to seekPointInSeconds
parent
9da8df1b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
miniaudio.h
miniaudio.h
+6
-6
No files found.
miniaudio.h
View file @
6d5efde2
...
...
@@ -5826,7 +5826,7 @@ MA_API ma_result ma_data_source_read_pcm_frames(ma_data_source* pDataSource, voi
MA_API ma_result ma_data_source_seek_pcm_frames(ma_data_source* pDataSource, ma_uint64 frameCount, ma_uint64* pFramesSeeked); /* Can only seek forward. Equivalent to ma_data_source_read_pcm_frames(pDataSource, NULL, frameCount, &framesRead); */
MA_API ma_result ma_data_source_seek_to_pcm_frame(ma_data_source* pDataSource, ma_uint64 frameIndex);
MA_API ma_result ma_data_source_seek_seconds(ma_data_source* pDataSource, float secondCount, float* pSecondsSeeked); /* Can only seek forward. Abstraction to ma_data_source_seek_pcm_frames() */
MA_API ma_result ma_data_source_seek_to_second(ma_data_source* pDataSource, float se
condIndex
); /* Abstraction to ma_data_source_seek_to_pcm_frame() */
MA_API ma_result ma_data_source_seek_to_second(ma_data_source* pDataSource, float se
ekPointInSeconds
); /* Abstraction to ma_data_source_seek_to_pcm_frame() */
MA_API ma_result ma_data_source_get_data_format(ma_data_source* pDataSource, ma_format* pFormat, ma_uint32* pChannels, ma_uint32* pSampleRate, ma_channel* pChannelMap, size_t channelMapCap);
MA_API ma_result ma_data_source_get_cursor_in_pcm_frames(ma_data_source* pDataSource, ma_uint64* pCursor);
MA_API ma_result ma_data_source_get_length_in_pcm_frames(ma_data_source* pDataSource, ma_uint64* pLength); /* Returns MA_NOT_IMPLEMENTED if the length is unknown or cannot be determined. Decoders can return this. */
...
...
@@ -11395,7 +11395,7 @@ MA_API void ma_sound_set_looping(ma_sound* pSound, ma_bool32 isLooping);
MA_API ma_bool32 ma_sound_is_looping(const ma_sound* pSound);
MA_API ma_bool32 ma_sound_at_end(const ma_sound* pSound);
MA_API ma_result ma_sound_seek_to_pcm_frame(ma_sound* pSound, ma_uint64 frameIndex); /* Just a wrapper around ma_data_source_seek_to_pcm_frame(). */
MA_API ma_result ma_sound_seek_to_second(ma_sound* pSound, float se
condIndex
); /* Abstraction to ma_sound_seek_to_pcm_frame() */
MA_API ma_result ma_sound_seek_to_second(ma_sound* pSound, float se
ekPointInSeconds
); /* Abstraction to ma_sound_seek_to_pcm_frame() */
MA_API ma_result ma_sound_get_data_format(ma_sound* pSound, ma_format* pFormat, ma_uint32* pChannels, ma_uint32* pSampleRate, ma_channel* pChannelMap, size_t channelMapCap);
MA_API ma_result ma_sound_get_cursor_in_pcm_frames(ma_sound* pSound, ma_uint64* pCursor);
MA_API ma_result ma_sound_get_length_in_pcm_frames(ma_sound* pSound, ma_uint64* pLength);
...
...
@@ -57835,7 +57835,7 @@ MA_API ma_result ma_data_source_seek_seconds(ma_data_source* pDataSource, float
return result;
}
MA_API ma_result ma_data_source_seek_to_second(ma_data_source* pDataSource, float se
condIndex
)
MA_API ma_result ma_data_source_seek_to_second(ma_data_source* pDataSource, float se
ekPointInSeconds
)
{
ma_uint64 frameIndex;
ma_uint32 sampleRate;
...
...
@@ -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 = (ma_uint64)(se
condIndex
* sampleRate);
frameIndex = (ma_uint64)(se
ekPointInSeconds
* sampleRate);
return ma_data_source_seek_to_pcm_frame(pDataSource, frameIndex);
}
...
...
@@ -77454,7 +77454,7 @@ MA_API ma_result ma_sound_seek_to_pcm_frame(ma_sound* pSound, ma_uint64 frameInd
return MA_SUCCESS;
}
MA_API ma_result ma_sound_seek_to_second(ma_sound* pSound, float se
condIndex
)
MA_API ma_result ma_sound_seek_to_second(ma_sound* pSound, float se
ekPointInSeconds
)
{
ma_uint64 frameIndex;
ma_uint32 sampleRate;
...
...
@@ -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 = (ma_uint64)(se
condIndex
* sampleRate);
frameIndex = (ma_uint64)(se
ekPointInSeconds
* 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