19 May '13 - 05:23 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
  Home Help Search Login Register  
  Show Posts
Pages: [1]
1  Developments / BASS / Re: BASS for iOS (iPhone/iPad) on: 27 Sep '12 - 13:40
I use bass for my iOS game. I have a lot of small sound in ogg format (~5.5 MB) and music (also ogg format). I did profiling of app and found, game without sound takes ~100MB real memory, and with sounds (and music) it is about 140MB.

For music I use BASS_StreamCreateFileUser with custom reader from zip archive.
For sound I use BASS_SampleLoad and keep buffer for encoded data (ogg).

So, as I understand it should takes only 5.5 MB for sounds, and nothing for music (as it is streamed directly from fs).

How could it be 40MB difference? What is the best practice to use bass on iOS? How to minimize real memory usage?
ReplyReply Reply with quoteQuote
2  Developments / BASS / Re: BASS for iOS (iPhone/iPad) on: 15 Jun '12 - 19:39
For the mute switch to affect your app, I think it needs to be using an "ambient" audio session category. BASS doesn't do that by default, but it can be told to do so via the BASS_CONFIG_IOS_MIXAUDIO config option, like this...

BASS_SetConfig(BASS_CONFIG_IOS_MIXAUDIO, 5);

Please see the first post for the possible BASS_CONFIG_IOS_MIXAUDIO settings.

Thanks! It works now.
ReplyReply Reply with quoteQuote
3  Developments / BASS / Re: BASS for iOS (iPhone/iPad) on: 15 Jun '12 - 09:17
Do bass support "mute" switch on iOS? Or we have to track this event by progamm?
ReplyReply Reply with quoteQuote
4  Developments / BASS / Re: Bass under MacOS (intel 10.6.2) on: 26 Oct '10 - 19:14
Ian, I use latest version. I'm ready to try debug version, just send it to my e-mail or share some link for downloading. This bug is the only thing stops me from releasing the game under Mac.
ReplyReply Reply with quoteQuote
5  Developments / BASS / Bass under MacOS (intel 10.6.2) on: 26 Oct '10 - 11:27
Strange behavior in my game which uses bass library to play all sounds. If I play game 2-3 minutes with a lot of sound effects (small ogg, wav files), then close the game - it hangs for about 10-15 seconds before real close (without sounds it is ok, shutdowns instantly without delays).

I trig a break while delay, and got stack:
0 mach_wait_until
1 nonosleep
2 usleep
3 BASS_StreamCreate

I found what this huge delay is right after BASS_Free() call.

Could anyone suggest any solution?

The more time I play game, the more delay I get before closing. If I play game without sounds (only with music) - everything ok.
ReplyReply Reply with quoteQuote
Pages: [1]
Powered by SMF 1.1.18 | SMF © 2013, Simple Machines