Catch, Load and Play the Core Audio Format

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
J. Baker
Addict
Addict
Posts: 2181
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Catch, Load and Play the Core Audio Format

Post by J. Baker »

Topic says it all. ;)
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef


Even the vine knows it surroundings but the man with eyes does not.
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: Catch, Load and Play the Core Audio Format

Post by ts-soft »

J. Baker wrote:Topic says it all. ;)
What is Core Audio Format?
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
User avatar
J. Baker
Addict
Addict
Posts: 2181
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Re: Catch, Load and Play the Core Audio Format

Post by J. Baker »

ts-soft wrote:
J. Baker wrote:Topic says it all. ;)
What is Core Audio Format?
It's Mac's main audio format and audio technology (*.caf). It's a container for AAC, IMA4, ect. ;)
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef


Even the vine knows it surroundings but the man with eyes does not.
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: Catch, Load and Play the Core Audio Format

Post by ts-soft »

What is the advantage of this apple only format.
Is it not better to add a crossplattform format, like most other formats?
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
User avatar
J. Baker
Addict
Addict
Posts: 2181
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Re: Catch, Load and Play the Core Audio Format

Post by J. Baker »

ts-soft wrote:What is the advantage of this apple only format.
Is it not better to add a crossplattform format, like most other formats?
Well, since it's built into Apple's OS and technology, I would assume better or the use of less resources to play. I know it is on the iPhone and iTouch. If you load a Ogg file and play it, it will start off using around 160MB of memory. Then if you're making game, you could imagine how many audio files you have loaded and playing at the same time. Now maybe that's mostly the plugin take up most of that memory to play the files but I'm always looking for better use of resources and so forth. ;)
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef


Even the vine knows it surroundings but the man with eyes does not.
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: Catch, Load and Play the Core Audio Format

Post by ts-soft »

A OGG File run on my windows, linux, on my smartphone,on my TV and on your mac but i have no machine to play your very specific format :mrgreen:

but i wish you luck :D
( and i will never wish WMA-Support :wink: )
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
User avatar
J. Baker
Addict
Addict
Posts: 2181
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Re: Catch, Load and Play the Core Audio Format

Post by J. Baker »

ts-soft wrote:A OGG File run on my windows, linux, on my smartphone,on my TV and on your mac but i have no machine to play your very specific format :mrgreen:

but i wish you luck :D
( and i will never wish WMA-Support :wink: )
The request is more for app and game development for Mac. Not so much for music on multiple platforms or devices. I mean if you knew something was going to optimize your app or game and wasn't cross platform, wouldn't you use it? I prefer things I develop to be as optimized as I can get it. ;)
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef


Even the vine knows it surroundings but the man with eyes does not.
wilbert
PureBasic Expert
PureBasic Expert
Posts: 3942
Joined: Sun Aug 08, 2004 5:21 am
Location: Netherlands

Re: Catch, Load and Play the Core Audio Format

Post by wilbert »

J. Baker wrote:Topic says it all. ;)
For Cocoa there's NSSound.
You won't have something like SoundFrequency or SoundPan but playing, stopping and changing volume are supported.
User avatar
J. Baker
Addict
Addict
Posts: 2181
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Re: Catch, Load and Play the Core Audio Format

Post by J. Baker »

wilbert wrote:
J. Baker wrote:Topic says it all. ;)
For Cocoa there's NSSound.
You won't have something like SoundFrequency or SoundPan but playing, stopping and changing volume are supported.
Haven't read about NSSound yet but will look into it. ;)
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef


Even the vine knows it surroundings but the man with eyes does not.
User avatar
J. Baker
Addict
Addict
Posts: 2181
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Re: Catch, Load and Play the Core Audio Format

Post by J. Baker »

Wilberts new lib pretty much covers this feature request.
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef


Even the vine knows it surroundings but the man with eyes does not.
chris319
Enthusiast
Enthusiast
Posts: 782
Joined: Mon Oct 24, 2005 1:05 pm

Re: Catch, Load and Play the Core Audio Format

Post by chris319 »

PortAudio is cross platform and is well developed for PureBasic.
wilbert
PureBasic Expert
PureBasic Expert
Posts: 3942
Joined: Sun Aug 08, 2004 5:21 am
Location: Netherlands

Re: Catch, Load and Play the Core Audio Format

Post by wilbert »

chris319 wrote:PortAudio is cross platform and is well developed for PureBasic.
:?:

PortAudio is great for realtime rendering of audio samples but how does it help you with loading a .caf or .aac file ?
Orreven
User
User
Posts: 10
Joined: Fri Sep 21, 2012 12:47 am

Re: Catch, Load and Play the Core Audio Format

Post by Orreven »

TBH, wouldn't you want something that's cross-platform, and non-memory-hogging, such as possibly MP3's (I've been told that they are very compressed, and they seem to use very little of my computer's resources)? I'm new to this language in specific, but not computers. In fact, just googled a survey tonight, and about 39% of people have Macs. Wouldn't you want a larger market (Market being figuratively. IDK if you plan to sell any of this or not) than 40% of the computing world?
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: Catch, Load and Play the Core Audio Format

Post by IdeasVacuum »

39% of people have Macs
That sounds like a very unlikely figure.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
ricardo
Addict
Addict
Posts: 2438
Joined: Fri Apr 25, 2003 7:06 pm
Location: Argentina

Re: Catch, Load and Play the Core Audio Format

Post by ricardo »

I thought it was like 2% which had Mac

You can play ACC or M4a in Windows and Linux using FFPlay from FFMPEG.
Or even better, using Bass dll which is a real advanced sound system.
Last edited by ricardo on Fri Sep 21, 2012 12:13 pm, edited 1 time in total.
ARGENTINA WORLD CHAMPION
Post Reply