Can't get any sound on iphone7s

None of the examples of 1.09 api can work on my iphone7s, and i can play music with other app.
Here’s a log of them.

[LOG] System::create : Header version = 1.09.06. Current version = 1.09.06.
[LOG] Manager::init : maxchannels = 1024 studioflags = 00000000 flags 00000000 extradriverdata 0x0.
[LOG] SystemI::init : FMOD Studio Version: 00010906 (88495)
[LOG] SystemI::init : maxchannels = 1024, flags = 00020000, extradriverdata = 0x0
[LOG] SystemI::setOutputInternal : Setting output to type 0
[LOG] SystemI::setOutputInternal : Setting output to type 12
[LOG] SystemI::setOutputInternal : Setting output to type 12
[LOG] OutputCoreAudio::init : Hardware buffer size: 512 samples, hardware sample rate: 24000Hz, hardware channels: 2
[LOG] OutputCoreAudio::init : Maximum hardware read size: 4096 samples, Software buffer size: 512 samples, Number of software buffers: 4.
[WRN] OutputCoreAudio::init : DSP buffer size * DSP num buffers is potentially too small.
[LOG] SystemI::init : Create master channel group and master sound group.
[LOG] DownMix::init : dspbuffersize: 512 rate: 24000. output speaker mode: 3, input speaker mode 6
[LOG] DownMix::init : done.
[LOG] SystemI::init : Set up emulated output. 1024 channels
[LOG] SystemI::init : create the channel pool
[LOG] SystemI::init : create the stream thread
[LOG] Thread::initThread : Init FMOD stream thread. Priority: 2, Stack Size: 65536, Semaphore: No, Sleep Time: 10, Looping: Yes.
[LOG] Thread::initThread : Init FMOD mixer thread. Priority: 1, Stack Size: 49152, Semaphore: Yes, Sleep Time: 0, Looping: Yes.
[LOG] AsyncManager::init : manager 0x11806e608 isAsync 1 updatePeriod 0.02
[LOG] Thread::initThread : Init FMOD Studio update thread. Priority: 0, Stack Size: 65536, Semaphore: No, Sleep Time: 1, Looping: No.
[LOG] AsyncManager::init : done
[LOG] PlaybackSystem::init :
[LOG] Thread::initThread : Init FMOD Studio sample load thread. Priority: 0, Stack Size: 65536, Semaphore: No, Sleep Time: 1, Looping: No.
[LOG] PlaybackSystem::init : done
[LOG] Thread::initThread : Init FMOD Studio bank load thread. Priority: 0, Stack Size: 65536, Semaphore: No, Sleep Time: 1, Looping: No.
[LOG] Manager::init : done.
[LOG] Manager::readBank : fileversion = 86, compatVersion = 86 (oldest = 44, newest = 88)
[LOG] PlaybackSystem::acquireMasterBus : Setting master channel group format to 6
[LOG] Manager::readBank : fileversion = 86, compatVersion = 86 (oldest = 44, newest = 88)
[LOG] Manager::readBank : fileversion = 86, compatVersion = 86 (oldest = 44, newest = 88)
[LOG] SystemI::createSoundInternal : filename = : mode 02000202
[LOG] SystemI::createSoundInternal : exinfo->cbsize = 232
[LOG] SystemI::createSoundInternal : exinfo->length = 126208
[LOG] SystemI::createSoundInternal : exinfo->fileoffset = 17664
[LOG] SystemI::createSoundInternal : exinfo->numsubsounds = 1
[LOG] SystemI::createSoundInternal : exinfo->inclusionlist = 0x16e452bb8
[LOG] SystemI::createSoundInternal : exinfo->inclusionlistnum = 1
[LOG] SystemI::createSoundInternal : exinfo->suggestedsoundtype = 5
[LOG] SystemI::createSoundInternal : exinfo->useropen = 0x1001d5360
[LOG] SystemI::createSoundInternal : exinfo->userclose = 0x1001d542c
[LOG] SystemI::createSoundInternal : exinfo->userread = 0x1001d5468
[LOG] SystemI::createSoundInternal : exinfo->userseek = 0x1001d5538
[LOG] SystemI::createSoundInternal : exinfo->fileuserdata = 0x117d03c08
[LOG] SystemI::DSPCodecPoolRegister : register codec pool for pool type 5
[LOG] SystemI::createSoundInternal : Format has 1 subsounds.
[LOG] SystemI::createSoundInternal : Create as FMOD_CREATESAMPLE
[LOG] SystemI::createSoundInternal : Multi-sample sound (1 subsounds), create a sample container.
[LOG] SystemI::createSoundInternal : creating subsound 0/1
[LOG] SystemI::createSample : mode 02000202 length 144000 samples, lengthbytes 25344
[LOG] SystemI::createSample : channels = 1
[LOG] SystemI::createSample : output = 0x117d085b8
[LOG] OutputSoftware::createSample : lengthpcm 144000, lengthbytes 25344, channels 1, format 2, freq 48000, mode 0200020a
[LOG] SystemI::createSoundInternal : No name found in file, use filename.
[LOG] SystemI::createSoundInternal : done. OpenState now = FMOD_OPENSTATE_READY.

[LOG] SystemI::createSound : filename = /var/containers/Bundle/Application/1D242982-38C0-4A2D-9322-284C154A323A/programmer_sound.app/media/640169main_Press to ATO.ogg : mode 00010202
[LOG] SystemI::createSound : FMOD_NONBLOCKING specified. Putting into queue to be opened asynchronously!
[LOG] OutputSoftware::createSample : lengthpcm 0, lengthbytes 0, channels 0, format 0, freq 0, mode 00000000
[LOG] Thread::initThread : Init FMOD nonblocking thread (0). Priority: 1, Stack Size: 81920, Semaphore: Yes, Sleep Time: 0, Looping: Yes.
[LOG] SystemI::createSound : setdata soundi = 0x117dc1c08 : node = 0x117d03c20
[LOG] SystemI::createSound : add node to async list : head = 0x117d03618. list count = 0
[LOG] AsyncThread::threadFunc : Starting Asynchronous operation on sound 0x117dc1c08
[LOG] SystemI::createSoundInternal : filename = /var/containers/Bundle/Application/1D242982-38C0-4A2D-9322-284C154A323A/programmer_sound.app/media/640169main_Press to ATO.ogg : mode 00010202
[LOG] SystemI::createSoundInternal : Format has 0 subsounds.
[LOG] SystemI::createSoundInternal : Create as FMOD_CREATESAMPLE
[LOG] SystemI::createSoundInternal : creating subsound 0/0
[LOG] SystemI::createSample : mode 00010002 length 111744 samples, lengthbytes 44767
[LOG] SystemI::createSample : channels = 2
[LOG] SystemI::createSample : output = 0x117d085b8
[LOG] OutputSoftware::createSample : lengthpcm 111744, lengthbytes 44767, channels 2, format 2, freq 44100, mode 0001000a
[LOG] SystemI::createSoundInternal : No name found in file, use filename.
[LOG] SystemI::createSoundInternal : done. OpenState now = FMOD_OPENSTATE_READY.

[LOG] AsyncThread::threadFunc : Finished Asynchronous operation on sound 0x117dc1c08
[LOG] SoundI::release : Press to ATO (0x117dc1c08)
[LOG] SoundI::release : release codec. (0x117dc1c08)
[LOG] SoundI::release : done

My headphone can hear the sound.

yes, it’s correct with my headphones. And i don’t get any sound from the main speaker of the phone with this example, but i can get sound from other apps.

Can I confirm, is the sound playing correctly through your headphones? But not through the main speaker of the phone?

2 Likes

What settings/calls are you making to AudioSessions?

2 Likes

I didn’t change the example settings, and the code is exactly the same with the official api example.
http://www.fmod.org/download/fmodstudio/api/iOS/fmodstudioapi10906ios-installer.dmg

It’s my fault, I have found the reason. My girlfriend had turned the sound button off !!! It’s a little button on one side of the iphone.

1 Like

No worries, glad you found the solution.

What FMOD example is that logging output from?

1 Like

it’s “programmer_sound”.

My xcode is 8.3.3.