Page 1 of 2
Catch, Load and Play the Core Audio Format
Posted: Fri Aug 10, 2012 9:22 pm
by J. Baker
Topic says it all.

Re: Catch, Load and Play the Core Audio Format
Posted: Fri Aug 10, 2012 9:42 pm
by ts-soft
J. Baker wrote:Topic says it all.

What is Core Audio Format?
Re: Catch, Load and Play the Core Audio Format
Posted: Fri Aug 10, 2012 10:54 pm
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.

Re: Catch, Load and Play the Core Audio Format
Posted: Fri Aug 10, 2012 11:07 pm
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?
Re: Catch, Load and Play the Core Audio Format
Posted: Fri Aug 10, 2012 11:19 pm
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.

Re: Catch, Load and Play the Core Audio Format
Posted: Sat Aug 11, 2012 12:04 am
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
but i wish you luck

( and i will never wish WMA-Support

)
Re: Catch, Load and Play the Core Audio Format
Posted: Sat Aug 11, 2012 12:50 am
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
but i wish you luck

( and i will never wish WMA-Support

)
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.

Re: Catch, Load and Play the Core Audio Format
Posted: Sat Aug 11, 2012 5:56 am
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.
Re: Catch, Load and Play the Core Audio Format
Posted: Sat Aug 11, 2012 6:15 am
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.

Re: Catch, Load and Play the Core Audio Format
Posted: Sun Aug 12, 2012 7:07 am
by J. Baker
Wilberts new lib pretty much covers this feature request.
Re: Catch, Load and Play the Core Audio Format
Posted: Wed Aug 15, 2012 8:24 am
by chris319
PortAudio is cross platform and is well developed for PureBasic.
Re: Catch, Load and Play the Core Audio Format
Posted: Wed Aug 15, 2012 8:55 am
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 ?
Re: Catch, Load and Play the Core Audio Format
Posted: Fri Sep 21, 2012 1:34 am
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?
Re: Catch, Load and Play the Core Audio Format
Posted: Fri Sep 21, 2012 11:46 am
by IdeasVacuum
39% of people have Macs
That sounds like a very unlikely figure.
Re: Catch, Load and Play the Core Audio Format
Posted: Fri Sep 21, 2012 12:10 pm
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.