Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
fafec810
Commit
fafec810
authored
Jan 12, 2016
by
Adam Barth
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1193 from afandria/patch-1
Add reference to "mojo:media_service" in sound.dart
parents
7fb70ecc
9bf16fbd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
piano.dart
examples/widgets/piano.dart
+1
-1
sound.dart
packages/flutter_sprites/lib/src/sound.dart
+2
-2
No files found.
examples/widgets/piano.dart
View file @
fafec810
...
...
@@ -64,7 +64,7 @@ class PianoApp extends StatelessComponent {
Future
loadSounds
()
async
{
MediaServiceProxy
mediaService
=
new
MediaServiceProxy
.
unbound
();
try
{
shell
.
connectToService
(
null
,
mediaService
);
shell
.
connectToService
(
"mojo:media_service"
,
mediaService
);
List
<
Future
<
MediaPlayerPrepareResponseParams
>>
pending
=
<
Future
<
MediaPlayerPrepareResponseParams
>>[];
for
(
PianoKey
key
in
keys
)
pending
.
add
(
key
.
load
(
mediaService
));
...
...
packages/flutter_sprites/lib/src/sound.dart
View file @
fafec810
...
...
@@ -67,7 +67,7 @@ class SoundEffectStream {
class
SoundEffectPlayer
{
SoundEffectPlayer
(
int
maxStreams
)
{
MediaServiceProxy
mediaService
=
new
MediaServiceProxy
.
unbound
();
shell
.
connectToService
(
null
,
mediaService
);
shell
.
connectToService
(
"mojo:media_service"
,
mediaService
);
_soundPool
=
new
SoundPoolProxy
.
unbound
();
mediaService
.
ptr
.
createSoundPool
(
_soundPool
,
maxStreams
);
}
...
...
@@ -146,7 +146,7 @@ class SoundTrackPlayer {
SoundTrackPlayer
()
{
_mediaService
=
new
MediaServiceProxy
.
unbound
();
shell
.
connectToService
(
null
,
_mediaService
);
shell
.
connectToService
(
"mojo:media_service"
,
_mediaService
);
}
MediaServiceProxy
_mediaService
;
...
...
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