0
0

Hi

I tried the example: playsound, there’s no sound oputput on my android platform 4.03, the following is the log. But if I set the output to FMOD_OUTPUTTYPE_AUDIOTRACK, it’s OK. I don’t know if there’s an option or property for android to enable the default output type is AudioTrack.

Also, I tried openSL example, it’s OK on my android.

I/Optimization-JNI( 155): setFlag:0
I/fmod (31915): FMOD: SystemI::init : FMOD Ex Version: 00044200
I/fmod (31915): FMOD: SystemI::init : maxchannels = 32, flags = 00000000, extradriverdata = 0x0
I/fmod (31915): FMOD: SystemI::close :
I/fmod (31915): FMOD: SystemI::close : Stop all sounds
I/fmod (31915): FMOD: SystemI::close : Remove miscllaneous DSP stuff.
I/fmod (31915): FMOD: SystemI::close : done.
I/fmod (31915):
I/fmod (31915): FMOD: FMOD_OS_Output_Register : Detected Neon instruction support, will use Neon optimized mixing and resampling.
I/fmod (31915): FMOD: OutputOpenSL::init : Initializing…
I/AudioTrack(31915): streamtype=3, sampleRate=24000, format=1, channelMask=3, frameCount=0, flags = 0, cbf=0x59d50ac1, user=0xfcef0, notificationFrames=0, sessionId=13
I/fmod (31915): FMOD: OutputOpenSL::init : Done.
I/fmod (31915): FMOD: SystemI::init : Set up software engine
I/fmod (31915): FMOD: OutputOpenSL::start : Starting…
I/fmod (31915): FMOD: OutputOpenSL::start : Done.
I/fmod (31915): FMOD: Thread::initThread : Initializing FMOD mixer thread. priority 3
I/fmod (31915): FMOD: Thread::initThread : – Stacksize 49152. Stack pointer 0x0 : usesemaphore = 0 : sleeptime = 10
I/fmod (31915): FMOD: Thread::callback : * FMOD mixer thread started
I/fmod (31915): FMOD: Thread::initThread : done.
I/fmod (31915): FMOD: SystemI::init : Set up emulated output
I/fmod (31915): FMOD: SystemI::init : create the channel pool
I/fmod (31915): FMOD: SystemI::init : Set up streamer
I/fmod (31915): FMOD: Thread::initThread : Initializing FMOD stream thread. priority 2
I/fmod (31915): FMOD: Thread::initThread : – Stacksize 49152. Stack pointer 0x0 : usesemaphore = 0 : sleeptime = 10
I/fmod (31915): FMOD: Thread::callback : * FMOD stream thread started
I/fmod (31915): FMOD: Thread::initThread : done.
I/fmod (31915): FMOD: SystemI::init : done
I/fmod (31915):
I/fmod (31915): FMOD: SystemI::createSoundInternal : filename = /sdcard/fmod/drumloop.wav : mode 00000001
I/fmod (31915): FMOD: SystemI::createSoundInternal : 17 codecs found. Scan all until one succeeds
I/fmod (31915): FMOD: CodecTag::openInternal : attempting to open ID3 or ASF tags..
I/fmod (31915): FMOD: Codec::release :
I/fmod (31915): FMOD: Plugin::release : (0x129d78)
I/fmod (31915): FMOD: Plugin::release : done
I/fmod (31915): FMOD: Codec::release : done
I/fmod (31915): FMOD: CodecFSB5::openInternal : attempting to open as FSB5..
I/fmod (31915): FMOD: CodecFSB5::headerReadCheck : Header check failed. Not an FSB5
I/fmod (31915): FMOD: Codec::release :
I/fmod (31915): FMOD: CodecFSB5::closeInternal :
I/fmod (31915): FMOD: CodecFSB5::closeInternal : done
I/fmod (31915): FMOD: Plugin::release : (0x129d78)
I/fmod (31915): FMOD: Plugin::release : done
I/fmod (31915): FMOD: Codec::release : done
I/fmod (31915): FMOD: CodecFSB::openInternal : attempting to open as FSB..
I/fmod (31915): FMOD: CodecFSB::openInternal : Header check failed. Not an FSB
I/fmod (31915): FMOD: Codec::release :
I/fmod (31915): FMOD: CodecFSB::closeInternal :
I/fmod (31915): FMOD: CodecFSB::closeInternal : done
I/fmod (31915): FMOD: Plugin::release : (0x129d78)
I/fmod (31915): FMOD: Plugin::release : done
I/fmod (31915): FMOD: Codec::release : done
I/fmod (31915): FMOD: CodecWav::openInternal : attempting to open as WAV..
I/fmod (31915): FMOD: CodecWav::parseRIFF : chunk : id fmt size 16
I/fmod (31915): FMOD: CodecWav::parseRIFF : offset = 28 / 42262
I/fmod (31915): FMOD: CodecWav::parseRIFF : chunk : id data size 42158
I/fmod (31915): FMOD: CodecWav::parseRIFF : offset = 42194 / 42262
I/fmod (31915): FMOD: CodecWav::parseRIFF : chunk : id smpl size 60
I/fmod (31915): FMOD: CodecWav::parseRIFF : offset = 42262 / 42262
I/fmod (31915): FMOD: CodecWav::openInternal : mSrcFormat->wFormatTag = 1
I/fmod (31915): FMOD: CodecWav::openInternal : mSrcFormat->nChannels = 1
I/fmod (31915): FMOD: CodecWav::openInternal : mSrcFormat->nSamplesPerSec = 44100
I/fmod (31915): FMOD: CodecWav::openInternal : mSrcFormat->nAvgBytesPerSec = 44100
I/fmod (31915): FMOD: CodecWav::openInternal : mSrcFormat->nBlockAlign = 1
I/fmod (31915): FMOD: CodecWav::openInternal : mSrcFormat->wBitsPerSample = 8
I/fmod (31915): FMOD: CodecWav::openInternal : mSrcFormat->cbSize = 0
I/fmod (31915): FMOD: SystemI::createSoundInternal : Format has 0 subsounds.
I/fmod (31915): FMOD: SystemI::createSoundInternal : Create as FMOD_CREATESAMPLE
I/fmod (31915): FMOD: SystemI::createSoundInternal : creating subsound 0/0
I/fmod (31915): FMOD: SystemI::createSample : mode 00000041 length 42158 samples, lengthbytes 42158
I/fmod (31915): FMOD: SystemI::createSample : subsamples = 1, channels = 1
I/fmod (31915): FMOD: SystemI::createSample : subsample 0. output = 0xfdc60
I/fmod (31915): FMOD: SystemI::createSample : mSoftware = 0xfdc60
I/fmod (31915): FMOD: OutputSoftware::createSample : lengthpcm 42158, lengthbytes 42158, channels 1, format 1, freq 44100, mode 00000049
I/fmod (31915): FMOD: OutputSoftware::createSample : done
I/fmod (31915): FMOD: SystemI::createSample : done
I/fmod (31915): FMOD: SystemI::createSoundInternal : No name found in file, use filename.
I/fmod (31915): FMOD: SystemI::createSoundInternal : done. OpenState now = FMOD_OPENSTATE_READY.
I/fmod (31915):
I/fmod (31915): FMOD: SystemI::createSoundInternal : filename = /sdcard/fmod/jaguar.wav : mode 00000000
I/fmod (31915): FMOD: SystemI::createSoundInternal : 17 codecs found. Scan all until one succeeds
I/fmod (31915): FMOD: CodecTag::openInternal : attempting to open ID3 or ASF tags..
I/fmod (31915): FMOD: Codec::release :
I/fmod (31915): FMOD: Plugin::release : (0x1143c8)
I/fmod (31915): FMOD: Plugin::release : done
I/fmod (31915): FMOD: Codec::release : done
I/fmod (31915): FMOD: CodecFSB5::openInternal : attempting to open as FSB5..
I/fmod (31915): FMOD: CodecFSB5::headerReadCheck : Header check failed. Not an FSB5
I/fmod (31915): FMOD: Codec::release :
I/fmod (31915): FMOD: CodecFSB5::closeInternal :
I/fmod (31915): FMOD: CodecFSB5::closeInternal : done
I/fmod (31915): FMOD: Plugin::release : (0x1143c8)
I/fmod (31915): FMOD: Plugin::release : done
I/fmod (31915): FMOD: Codec::release : done
I/fmod (31915): FMOD: CodecFSB::openInternal : attempting to open as FSB..
I/fmod (31915): FMOD: CodecFSB::openInternal : Header check failed. Not an FSB
I/fmod (31915): FMOD: Codec::release :
I/fmod (31915): FMOD: CodecFSB::closeInternal :
I/fmod (31915): FMOD: CodecFSB::closeInternal : done
I/fmod (31915): FMOD: Plugin::release : (0x1143c8)
I/fmod (31915): FMOD: Plugin::release : done
I/fmod (31915): FMOD: Codec::release : done
I/fmod (31915): FMOD: CodecWav::openInternal : attempting to open as WAV..
I/fmod (31915): FMOD: CodecWav::parseRIFF : chunk : id fmt size 16
I/fmod (31915): FMOD: CodecWav::parseRIFF : offset = 28 / 77860
I/fmod (31915): FMOD: CodecWav::parseRIFF : chunk : id data size 77824
I/fmod (31915): FMOD: CodecWav::parseRIFF : offset = 77860 / 77860
I/fmod (31915): FMOD: CodecWav::openInternal : mSrcFormat->wFormatTag = 1
I/fmod (31915): FMOD: CodecWav::openInternal : mSrcFormat->nChannels = 1
I/fmod (31915): FMOD: CodecWav::openInternal : mSrcFormat->nSamplesPerSec = 22050
I/fmod (31915): FMOD: CodecWav::openInternal : mSrcFormat->nAvgBytesPerSec = 44100
I/fmod (31915): FMOD: CodecWav::openInternal : mSrcFormat->nBlockAlign = 2
I/fmod (31915): FMOD: CodecWav::openInternal : mSrcFormat->wBitsPerSample = 16
I/fmod (31915): FMOD: CodecWav::openInternal : mSrcFormat->cbSize = 0
I/fmod (31915): FMOD: SystemI::createSoundInternal : Format has 0 subsounds.
I/fmod (31915): FMOD: SystemI::createSoundInternal : Create as FMOD_CREATESAMPLE
I/fmod (31915): FMOD: SystemI::createSoundInternal : creating subsound 0/0
I/fmod (31915): FMOD: SystemI::createSample : mode 00000040 length 38912 samples, lengthbytes 77824
I/fmod (31915): FMOD: SystemI::createSample : subsamples = 1, channels = 1
I/fmod (31915): FMOD: SystemI::createSample : subsample 0. output = 0xfdc60
I/fmod (31915): FMOD: SystemI::createSample : mSoftware = 0xfdc60
I/fmod (31915): FMOD: OutputSoftware::createSample : lengthpcm 38912, lengthbytes 77824, channels 1, format 2, freq 22050, mode 00000049
I/fmod (31915): FMOD: OutputSoftware::createSample : done
I/fmod (31915): FMOD: SystemI::createSample : done
I/fmod (31915): FMOD: SystemI::createSoundInternal : No name found in file, use filename.
I/fmod (31915): FMOD: SystemI::createSoundInternal : done. OpenState now = FMOD_OPENSTATE_READY.
I/fmod (31915):
I/fmod (31915): FMOD: SystemI::createSoundInternal : filename = /sdcard/fmod/swish.wav : mode 00000000
I/fmod (31915): FMOD: SystemI::createSoundInternal : 17 codecs found. Scan all until one succeeds
I/fmod (31915): FMOD: CodecTag::openInternal : attempting to open ID3 or ASF tags..
I/fmod (31915): FMOD: Codec::release :
I/fmod (31915): FMOD: Plugin::release : (0x16ccb0)
I/fmod (31915): FMOD: Plugin::release : done
I/fmod (31915): FMOD: Codec::release : done
I/fmod (31915): FMOD: CodecFSB5::openInternal : attempting to open as FSB5..
I/fmod (31915): FMOD: CodecFSB5::headerReadCheck : Header check failed. Not an FSB5
I/fmod (31915): FMOD: Codec::release :
I/fmod (31915): FMOD: CodecFSB5::closeInternal :
I/fmod (31915): FMOD: CodecFSB5::closeInternal : done
I/fmod (31915): FMOD: Plugin::release : (0x16ccb0)
I/fmod (31915): FMOD: Plugin::release : done
I/fmod (31915): FMOD: Codec::release : done
I/fmod (31915): FMOD: CodecFSB::openInternal : attempting to open as FSB..
I/fmod (31915): FMOD: CodecFSB::openInternal : Header check failed. Not an FSB
I/fmod (31915): FMOD: Codec::release :
I/fmod (31915): FMOD: CodecFSB::closeInternal :
I/fmod (31915): FMOD: CodecFSB::closeInternal : done
I/fmod (31915): FMOD: Plugin::release : (0x16ccb0)
I/fmod (31915): FMOD: Plugin::release : done
I/fmod (31915): FMOD: Codec::release : done
I/fmod (31915): FMOD: CodecWav::openInternal : attempting to open as WAV..
I/fmod (31915): FMOD: CodecWav::parseRIFF : chunk : id fmt size 20
I/fmod (31915): FMOD: CodecWav::parseRIFF : offset = 32 / 32820
I/fmod (31915): FMOD: CodecWav::parseRIFF : chunk : id fact size 4
I/fmod (31915): FMOD: CodecWav::parseRIFF : offset = 44 / 32820
I/fmod (31915): FMOD: CodecWav::parseRIFF : chunk : id data size 32768
I/fmod (31915): FMOD: CodecWav::parseRIFF : offset = 32820 / 32820
I/fmod (31915): FMOD: CodecWav::openInternal : mSrcFormat->wFormatTag = 17
I/fmod (31915): FMOD: CodecWav::openInternal : mSrcFormat->nChannels = 2
I/fmod (31915): FMOD: CodecWav::openInternal : mSrcFormat->nSamplesPerSec = 22050
I/fmod (31915): FMOD: CodecWav::openInternal : mSrcFormat->nAvgBytesPerSec = 22201
I/fmod (31915): FMOD: CodecWav::openInternal : mSrcFormat->nBlockAlign = 1024
I/fmod (31915): FMOD: CodecWav::openInternal : mSrcFormat->wBitsPerSample = 4
I/fmod (31915): FMOD: CodecWav::openInternal : mSrcFormat->cbSize = 2
I/fmod (31915): FMOD: SystemI::createSoundInternal : Format has 0 subsounds.
I/fmod (31915): FMOD: SystemI::createSoundInternal : Create as FMOD_CREATESAMPLE
I/fmod (31915): FMOD: SystemI::createSoundInternal : creating subsound 0/0
I/fmod (31915): FMOD: SystemI::createSample : mode 00000040 length 32338 samples, lengthbytes 32768
I/fmod (31915): FMOD: SystemI::createSample : subsamples = 1, channels = 2
I/fmod (31915): FMOD: SystemI::createSample : subsample 0. output = 0xfdc60
I/fmod (31915): FMOD: SystemI::createSample : mSoftware = 0xfdc60
I/fmod (31915): FMOD: OutputSoftware::createSample : lengthpcm 32338, lengthbytes 32768, channels 2, format 2, freq 22050, mode 00000049
I/fmod (31915): FMOD: OutputSoftware::createSample : done
I/fmod (31915): FMOD: SystemI::createSample : done
I/fmod (31915): FMOD: SystemI::createSoundInternal : No name found in file, use filename.
I/fmod (31915): FMOD: SystemI::createSoundInternal : done. OpenState now = FMOD_OPENSTATE_READY.
I/fmod (31915):

  • You must to post comments
0
0

That is quite strange, I’m running 4.1 and haven’t experience any problems like that.

What device are you using?

The logging output looks clean, I can’t see any initialization problem so it’s hard to say why you aren’t hearing anything with OpenSL. I did notice an AudioTrack initialization line printed, I’m not sure where that came from. Using the FMODAudioDevice code in Java isn’t necessary when using OpenSL, however it shouldn’t initialize unless you init FMOD natively using FMOD_OUTPUTTYPE_AUDIOTRACK.

Generally AudioTrack gives the best result anyway, so using System::setOutput(FMOD_OUTPUTTYPE_AUDIOTRACK) is a valid option.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.