Author Topic: BASS for iOS (iPhone/iPad)  (Read 744525 times)

Fischert

  • Posts: 4
Re: BASS for iOS (iPhone/iPad)
« Reply #1475 on: 19 Mar '22 - 22:25 »
Hi mdaskal,

That sounds very interesting! Pls. keep me informed!!

Best regards
Thomas

mdaskal

  • Posts: 7
Re: BASS for iOS (iPhone/iPad)
« Reply #1476 on: 25 Mar '22 - 18:08 »
Hi mdaskal,

That sounds very interesting! Pls. keep me informed!!

Best regards
Thomas

Hi Thomas,
We could finalize the integration of the BASSMIDI library into an AUv3, and it works perfectly well!
Best wishes
 

Fischert

  • Posts: 4
Re: BASS for iOS (iPhone/iPad)
« Reply #1477 on: 13 Apr '22 - 06:01 »
Hi mdaskal,

Congratulations!!

Is it possible to get that AUv3?

Best regards
Thomas

Dorian

  • Guest
Re: BASS for iOS (iPhone/iPad)
« Reply #1478 on: 19 Aug '22 - 16:18 »
Can't access the sample app and I can't seem to #import or #include the bass.h file into an iOS objective c code.


Okay, here is a sample app, demonstrating how to make BASS play back music in the background, and control playback with the multitask bar controls. Actually the app can also be remote controlled with some 3rd party iPhone accessories and speakers.

http://cl.ly/4513342M223M3v0s2Y3T

ECSalute

  • Guest
Re: BASS for iOS (iPhone/iPad)
« Reply #1479 on: 9 Sep '22 - 08:10 »
Additional setup steps (may be useful for other people)
> Drag bass.h into your project
> OPTIONAL : create a Header.h file and #include bass.h
> Link your header file with your project (Objective C bridging Header)
> Build
> OPTIONAL : Abilitate "Allow Arbitrary Loads" in "App transport security settings"

With this bass works with my project

mdaskal

  • Posts: 7
Re: BASS for iOS (iPhone/iPad)
« Reply #1480 on: 5 Oct '22 - 16:29 »
Hi mdaskal,

Congratulations!!

Is it possible to get that AUv3?

Best regards
Thomas

Hi Thomas,

We finally could take the time to publish a repository on Github with our AUv3 Audio Unit embedding the BASSMIDI player.
For those interested you can find it here:
https://github.com/newzik/BassMidiAudioUnit

Any suggestions or feedback are welcome !
Best,

rrhh_fx

  • Posts: 35
Re: BASS for iOS (iPhone/iPad)
« Reply #1481 on: 9 Dec '22 - 08:34 »
Hi,

I am trying to integrate the Bass 2.4 library in a Swift iOS project in Xcode 14.1 with a MacBook Air M1 with no success. The steps are next:

1) In General -> Frameworks, libraries and Embedded Content, click on the "+" button and add the Bass xcframework library (plus the rest of required frameworks indicated in the OP)
2) In Build Phases -> Link binary with libraries -> Status required
3) In Build Settings -> Enable bitcode -> "No"

If trying to use the lib in a Swift file using "import BASS" sentence at the top, always the "not such module 'BASS'" is showing.

Any help is appreciated

Ian @ un4seen

  • Administrator
  • Posts: 24784
Re: BASS for iOS (iPhone/iPad)
« Reply #1482 on: 9 Dec '22 - 15:25 »
I'm not a Swift user myself, so I'm not sure if there's a better way to do it, but I believe you need to create a "bridging header" to use C framework/library headers. For example, create a "bridging-header.h" file containing this:

Code: [Select]
#include "bass.h"
// #include any add-on headers here too...

And then set "Objective-C Bridging Header" to "bridging-header.h" in your project's settings. The BASS header(s) should be placed alongside it (or somewhere in the header search path).

Btw, with the switch to dynamic libraries in BASS 2.4.17, any dependency frameworks can be (and are) specified in the BASS libraries themselves, so there's no need to include them to your project's settings any more.

rrhh_fx

  • Posts: 35
Re: BASS for iOS (iPhone/iPad)
« Reply #1483 on: 10 Dec '22 - 10:26 »
I'm not a Swift user myself, so I'm not sure if there's a better way to do it, but I believe you need to create a "bridging header" to use C framework/library headers. For example, create a "bridging-header.h" file containing this:

Code: [Select]
#include "bass.h"
// #include any add-on headers here too...

And then set "Objective-C Bridging Header" to "bridging-header.h" in your project's settings. The BASS header(s) should be placed alongside it (or somewhere in the header search path).

Btw, with the switch to dynamic libraries in BASS 2.4.17, any dependency frameworks can be (and are) specified in the BASS libraries themselves, so there's no need to include them to your project's settings any more.

Thank you Ian. The bridging header works nice