Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
halo
frameworks_wilhelm
Commits
2ab5ad96
Commit
2ab5ad96
authored
9 years ago
by
Glenn Kasten
Browse files
Options
Download
Email Patches
Plain Diff
Don't specify sub-buffer count for non-fast tracks
Bug: 28695447 Change-Id: I81bfd3a02c9600e3f1d9abc68bb2d70d45112260
parent
f9300116
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
src/android/AudioPlayer_to_android.cpp
src/android/AudioPlayer_to_android.cpp
+6
-4
No files found.
src/android/AudioPlayer_to_android.cpp
View file @
2ab5ad96
...
...
@@ -1489,16 +1489,18 @@ SLresult android_audioPlayer_realize(CAudioPlayer *pAudioPlayer, SLboolean async
channelMask
);
audio_output_flags_t
policy
;
int32_t
notificationFrames
;
if
(
canUseFastTrack
(
pAudioPlayer
))
{
policy
=
(
audio_output_flags_t
)(
AUDIO_OUTPUT_FLAG_FAST
|
AUDIO_OUTPUT_FLAG_RAW
);
// negative notificationFrames is the number of notifications (sub-buffers) per track buffer
// for details see the explanation at frameworks/av/include/media/AudioTrack.h
notificationFrames
=
-
pAudioPlayer
->
mBufferQueue
.
mNumBuffers
;
}
else
{
policy
=
AUDIO_OUTPUT_FLAG_NONE
;
// use default notifications
notificationFrames
=
0
;
}
// negative notificationFrames is the number of notifications (sub-buffers) per track buffer
// for details see the explanation at frameworks/av/include/media/AudioTrack.h
const
int32_t
notificationFrames
=
-
pAudioPlayer
->
mBufferQueue
.
mNumBuffers
;
pAudioPlayer
->
mAudioTrack
=
new
android
::
AudioTrack
(
pAudioPlayer
->
mStreamType
,
// streamType
sampleRate
,
// sampleRate
...
...
This diff is collapsed.
Click to expand it.
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