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
8774f70d
Commit
8774f70d
authored
Oct 26, 2016
by
David Reid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OpenSL|ES: Explicitly fail for known unsupported formats.
parent
6901b5ca
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
mini_al.h
mini_al.h
+8
-1
No files found.
mini_al.h
View file @
8774f70d
...
...
@@ -3033,6 +3033,13 @@ static mal_result mal_device_init__sles(mal_device* pDevice, mal_device_type typ
return
MAL_NO_BACKEND
;
#endif
// Currently only supporting simple PCM formats. Floating-point and A-law/Mu-law are not
// currently supported, but may be emulated later on.
if
(
pConfig
->
format
==
mal_format_f32
||
pConfig
->
format
==
mal_format_f64
||
pConfig
->
format
==
mal_format_alaw
||
pConfig
->
format
==
mal_format_mulaw
)
{
return
MAL_FORMAT_NOT_SUPPORTED
;
}
// Initialize global data first if applicable.
if
(
mal_atomic_increment_32
(
&
g_malSLESInitCounter
)
==
1
)
{
SLresult
resultSL
=
slCreateEngine
(
&
g_malEngineObjectSL
,
0
,
NULL
,
0
,
NULL
,
NULL
);
...
...
@@ -3880,7 +3887,7 @@ mal_uint32 mal_get_sample_size_in_bytes(mal_format format)
// OpenSL|ES / Android
// -------------------
// - Test!
// - Add software f32 conversion
// - Add software f32
, f64, A-law and Mu-law
conversion
// - 32-bit floating point formats are only supported from API Level 21.
...
...
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