Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(322)

Issue 12114013: Fix openal NaCl port. (Closed)

Created:
7 years, 10 months ago by Sam Clegg
Modified:
7 years, 10 months ago
CC:
native-client-reviews_googlegroups.com
Visibility:
Public.

Description

Fix openal NaCl port. The example code was only decoding the first few openAl buffers and then just playing the same buffer in loop. This was due to MinBufferSizeInBytes being less than the PPAPI buffer size which could lead to the buffer being too empty for the reader (PPAPI) and not empty enough for writer. This change consists of: - go-between buffer size takes into account PPAPI buffer size as well as openAL buffer size. - having PPAPI callback buffer whatever samples are in the buffer, even if there are not enough BUG=None TEST=run openal-ogg example app Committed: https://code.google.com/p/naclports/source/detail?r=699

Patch Set 1 : #

Total comments: 10

Patch Set 2 : #

Total comments: 1

Patch Set 3 : #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -92 lines) Patch
M examples/audio/openal-ogg/Makefile View 2 chunks +7 lines, -1 line 0 comments Download
A + examples/audio/openal-ogg/index.html View 0 chunks +-1 lines, --1 lines 0 comments Download
M examples/audio/openal-ogg/nacl-openal-ogg.sh View 1 1 chunk +0 lines, -1 line 0 comments Download
M examples/audio/openal-ogg/openal_ogg.c View 1 2 1 chunk +0 lines, -5 lines 0 comments Download
D examples/audio/openal-ogg/openal_ogg.html View 1 chunk +0 lines, -65 lines 0 comments Download
D examples/audio/openal-ogg/pkg_info View 1 chunk +0 lines, -1 line 0 comments Download
M libraries/openal-soft/nacl-openal-soft.patch View 1 2 3 12 chunks +49 lines, -20 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Sam Clegg
7 years, 10 months ago (2013-01-30 21:55:30 UTC) #1
bradn
lgtm
7 years, 10 months ago (2013-01-30 22:08:32 UTC) #2
nfullagar1
https://codereview.chromium.org/12114013/diff/4001/libraries/openal-soft/nacl-openal-soft.patch File libraries/openal-soft/nacl-openal-soft.patch (right): https://codereview.chromium.org/12114013/diff/4001/libraries/openal-soft/nacl-openal-soft.patch#newcode153 libraries/openal-soft/nacl-openal-soft.patch:153: + pthread_mutex_unlock(&data->mutex); Putting locks in the audio callback is ...
7 years, 10 months ago (2013-01-30 22:19:31 UTC) #3
Sam Clegg
On 2013/01/30 22:19:31, nfullagar1 wrote: > https://codereview.chromium.org/12114013/diff/4001/libraries/openal-soft/nacl-openal-soft.patch > File libraries/openal-soft/nacl-openal-soft.patch (right): > > https://codereview.chromium.org/12114013/diff/4001/libraries/openal-soft/nacl-openal-soft.patch#newcode153 > ...
7 years, 10 months ago (2013-01-30 22:53:41 UTC) #4
Sam Clegg
On 2013/01/30 22:53:41, Sam Clegg wrote: > On 2013/01/30 22:19:31, nfullagar1 wrote: > > > ...
7 years, 10 months ago (2013-01-30 22:56:28 UTC) #5
Sam Clegg
+elijahtaylor (the original author)
7 years, 10 months ago (2013-01-30 23:47:33 UTC) #6
elijahtaylor1
Please wait for L_GTM from nfullagar from mutex comments, but in general I'm ok with ...
7 years, 10 months ago (2013-01-31 00:32:24 UTC) #7
Sam Clegg
I think I'm going to split the pthread part of this change into a seperate ...
7 years, 10 months ago (2013-01-31 01:10:30 UTC) #8
Sam Clegg
+mseaborn (for his input on locks/signal/schedulers).
7 years, 10 months ago (2013-01-31 01:11:14 UTC) #9
Sam Clegg
Removed thread communication changes. PTAL. https://codereview.chromium.org/12114013/diff/4001/libraries/openal-soft/nacl-openal-soft.patch File libraries/openal-soft/nacl-openal-soft.patch (right): https://codereview.chromium.org/12114013/diff/4001/libraries/openal-soft/nacl-openal-soft.patch#newcode127 libraries/openal-soft/nacl-openal-soft.patch:127: + buffer_size_in_bytes = available_bytes; ...
7 years, 10 months ago (2013-01-31 17:13:45 UTC) #10
nfullagar1
optional suggestion otherwise lgtm... https://codereview.chromium.org/12114013/diff/11003/libraries/openal-soft/nacl-openal-soft.patch File libraries/openal-soft/nacl-openal-soft.patch (right): https://codereview.chromium.org/12114013/diff/11003/libraries/openal-soft/nacl-openal-soft.patch#newcode124 libraries/openal-soft/nacl-openal-soft.patch:124: + /* Zero the part ...
7 years, 10 months ago (2013-01-31 18:58:50 UTC) #11
nfullagar1
7 years, 10 months ago (2013-01-31 19:05:36 UTC) #12
Also, please update the CL description - still has the pthread changes listed.

Powered by Google App Engine
This is Rietveld 408576698