Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8531891
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T09:35:16+00:00 2026-06-11T09:35:16+00:00

I work with Cocos2d. This CocosDention not have the property that i need. Maybe

  • 0

I work with Cocos2d. This CocosDention not have the property that i need.
Maybe anybody know what the way record and save to file all sound using in the current stage on ios. How about DJ app – they keep the music from different pieces and put them on each other.

For example, in the game play background music. When player jumping, cocosdenchion can play jumping sound. Can i create new track combine background music and other music effects realtime and save it?

How i understand AVAudioRecorder only for recording for microphone devices.
What i can use for this – AudioToolbox? OpenAL? CoreAudio? Other frameworks?

Before i think use FMOD, but there are license 500$ and i’m not sure my project give me some match money. On this i find free method or framework.
Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T09:35:17+00:00Added an answer on June 11, 2026 at 9:35 am

    I found some solution. I use BASS iOS library.
    one minus – it’s paid. And second minus – it’s written on C++.
    And not some example for iOS. But have good help on the forum.

        //BASS initialisation. use BASS_free for free resources
        BASS_Init(-1,44100,0,NULL,NULL);
    
        //create mixer
        BASS_GetInfo(&info); // get output device info. needet to get freq
        mixer=BASS_Mixer_StreamCreate(info.freq, 2, 0); // create a stereo mixer with the same sample rate
    NSString *shortSound = [[NSBundle mainBundle] pathForResource:@"piano2" ofType:@"wav"];
        //create channel
        chan2 = BASS_StreamCreateFile(FALSE, [shortSound cStringUsingEncoding:NSUTF8StringEncoding], 0, 0, BASS_STREAM_DECODE);
    
        //create channel from file use absolute path url
        NSString *soundFileName = [[NSBundle mainBundle] pathForResource:@"ff13" ofType:@"mp3"];
        chan = BASS_StreamCreateFile(FALSE, [soundFileName cStringUsingEncoding:NSUTF8StringEncoding], 0, 0, BASS_STREAM_DECODE|BASS_SAMPLE_FLOAT|BASS_SAMPLE_LOOP);
    
        //add channel into mixer
        BASS_Mixer_StreamAddChannel(mixer, chan, 0);
    
        //point the dirrectory and file name for our new file saved mixer data
        NSString *documentDir = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0];
        NSString *filename = [documentDir stringByAppendingString:@"/file.mp3"];
    
        //start encode mixer to file when view did load. With parameters for encode.
        BASS_Encode_StartCAFile(mixer, 'm4af', 'alac', 0, 0, [filename cStringUsingEncoding:NSUTF8StringEncoding]);
    
        //mixer add any delay for play added channel. Fix it using this option
        BASS_ChannelSetAttribute(mixer, BASS_ATTRIB_NOBUFFER, 1);
    
        BASS_ChannelPlay(mixer, 0); // start mixer
    

    Here used mixer for record all sounds and microphone voice.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

ok i am new to coding and cocos2d i have this shooting code that
Im beginning work with Cocos2d and have been working off this tutorial (link is
I need some recommendations how to work better with the same sprites using Cocos2d.
Work on this small test application to learn threading/locking. I have the following code,
In Cocos2d, I have read that [[[[CCDirector sharedDirector] openGLView] window] addSubview:someButton]; will add a
I'm having a strange problem that I can't work out and wonder if anybody
If I have two objects in chipmunk (I'm using cocos2d-iphone), once I've detected that
I'm developing something for iOS with cocos2d. Now I have this CCLabelBMFont instance variable
I just started with cocos2D and came across something that looks like this ..
I'm not sure if there's a name for this, but essentially what I need

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.