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 9039749
In Process

The Archive Base Latest Questions

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

From looking at the AUSampler API it seems like it should support Garage Band

  • 0

From looking at the AUSampler API it seems like it should support Garage Band EXS24 instruments. The AudioUnitProperties.h file says the following:

typedef struct AUSamplerInstrumentData {
    CFURLRef                fileURL;
    UInt8                   instrumentType;
    UInt8                   bankMSB;
    UInt8                   bankLSB;
    UInt8                   presetID;
} AUSamplerInstrumentData;

Where the instrument type can have the following types:

enum
{
    kInstrumentType_DLSPreset   = 1,
    kInstrumentType_SF2Preset   = kInstrumentType_DLSPreset,
    kInstrumentType_AUPreset    = 2,
    kInstrumentType_Audiofile   = 3,
    kInstrumentType_EXS24       = 4
};

I’ve tried to load the instrument using the following function:

-(OSStatus) loadFromEXS: (NSString *) path withSampler: (AudioUnit) sampler {
    OSStatus result = noErr;

    NSURL *presetURL = [[NSURL alloc] initFileURLWithPath:[[NSBundle mainBundle] pathForResource:path ofType:@"exs"]];

    AUSamplerInstrumentData bpdata = {0};

    bpdata.fileURL = (__bridge CFURLRef)(presetURL);
    bpdata.instrumentType = kInstrumentType_EXS24;

    result = AudioUnitSetProperty(sampler,
                              kAUSamplerProperty_LoadInstrument,
                              kAudioUnitScope_Global,
                              0,
                              &bpdata,
                              sizeof(bpdata));
    return result;
}

In my resources I have a group which contains the .exs file and a number of .wav samples. This function produces the following error:

GlobalState::LoadEXS24Instrument: Load failed

So does this mean that the EXS file isn’t correct? Does it mean that I’ve not loaded it correctly? Or maybe, this isn’t supported in iOS6?

  • 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-16T09:48:25+00:00Added an answer on June 16, 2026 at 9:48 am

    Yes it seems like it supports the EXS file format. There’s one problem however: EXS uses absolute file paths. It does not support relative paths. That means you can’t move the .wav samples around, or it will break the EXS instrument. That’s my guess why it isn’t working.

    See this: https://developer.apple.com/library/mac/#technotes/tn2283/_index.html

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

Sidebar

Related Questions

it seems that AR Integration doesn't support to open StatelessSession, from looking at: http://github.com/castleproject/Castle.Facilities.ActiveRecordIntegration/blob/master/src/Castle.Facilities.ActiveRecordIntegration/SessionFactoryDelegate.cs
From looking over the documentation, it seems that the form clean() method is only
From looking at the Java Collections API i see that arrays are not regarded
So from looking around at examples and tutorials, it seems the most common method
I need to use the following: using Microsoft.Deployment.Compression.Zip; From looking online it says I
My question is slightly different from Looking for a recommendation for a lightweight mobile
I have electronic data readings obtained from a probe. From looking at the data
I'm coming to Postgres from Oracle and looking for a way to find the
I'm after a tool to generate decent-looking documents from templates, that needs to: be
I'm getting about the same bad looking resizing from all the 4 algorithms of

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.