Log in or register to post comments

[help] how to play audio when image trackable

March 11, 2013 - 5:10pm #1

hello all,

i'm beginer native programmer,

anyone help me, how to play sound using when image trackable and rendering 3d object,

I want play different sound in each target.. i'm using ImageTargets sample code..

thanks before :)

[help] how to play audio when image trackable

September 23, 2016 - 4:47am #8

I want play different sound in each target.. i'm using ImageTargets sample code.. any one pls help me out

[help] how to play audio when image trackable

November 8, 2013 - 8:06pm #7

May I see the script? 

[help] how to play audio when image trackable

March 13, 2013 - 5:03am #6

Sure, you can combine the 3D model rendering code (for instance from ImageTargets sample), with the code to play audio (taking the necessary MediaPlayer specific  code from VideoPlayback sample);

but we don't have a specific tutorial about that.

 

[help] how to play audio when image trackable

March 13, 2013 - 3:03am #5

thanks AlessandroB :D i've try it and it's success..

but is it possible play music and rendering 3d object at same time??
 

[help] how to play audio when image trackable

March 12, 2013 - 11:18pm #4

The VideoPlayback sample shows how to use the Android MediaPlayer (to play videos, but you can also use it just for audio).

 

[help] how to play audio when image trackable

March 12, 2013 - 6:19pm #3

I've tried it, but the sound comes when the 3D object is not rendered and also the sound only appears in 5 seconds,
can give me tutorial can using the MediaPlayer instead of using soundpool..
please help me :)

[help] how to play audio when image trackable

March 12, 2013 - 1:22am #2

Hi, the Dominoes sample shows how to play a simple sound using the SoundPool Android API;

have a look at the class SoundManager class (SoundManager.java), and also to the file DominoesRenderer.java where this is used;

on the native side, have a look at the playSoundEffect() function in Dominoes.cpp (thius actually invokes the Java playSound method from native code).

Note however that how to play sounds in Android is beyond the scope of this Forum.

Log in or register to post comments