iPhoneOS audio support in SDL 1.3

Greetings,

I am developing an application that uses SDL 1.3 to play wav samples from
memory. Now I’d like to port the code for iOS 4.3, but found that it does
not work since there’s no support for iPhone audio (there’s an
AudioBootStrap array in SDL, that does not contain any suitable ‘driver’).
So I moved to my browser cheking mercurial repository of the project - I
found there’s some support in src/audio/iphoneos, but only on some branches.
I took the ‘experimental’ branch, but this one lacks of some missing APIs
(e.g. GetWindowSurface) which I am using in my project. Besides that, I
noticed that the experimental branch was closed during April 2011.

My question is - where could I get the audio support?

Greetings,

I am developing an application that uses SDL 1.3 to play wav samples from
memory. Now I’d like to port the code for iOS 4.3, but found that it does
not work since there’s no support for iPhone audio (there’s an
AudioBootStrap array in SDL, that does not contain any suitable ‘driver’) so
that SDL_AudioInit() fails with negative return value.
So I moved to my browser cheking mercurial repository of the project - I
found there’s some support in src/audio/iphoneos, but only on some branches.
I took the ‘experimental’ branch, but this one lacks of some missing APIs
(e.g. GetWindowSurface) which I am using in my project. Besides that, I
noticed that the experimental branch was closed during April 2011.

My question is - where could I get the audio support?

I am developing an application that uses SDL 1.3 to play wav samples
from memory. Now I’d like to port the code for iOS 4.3, but found that
it does not work since there’s no support for iPhone audio (there’s an
AudioBootStrap array in SDL, that does not contain any suitable
’driver’) so that SDL_AudioInit() fails with negative return value.

The “default” branch in Merurial (which, as the name implies, is what
you get if you don’t explicitly pick another) has iOS audio support.
There are only two active branches: default, and SDL-1.2 (1.2 doesn’t
have iOS support at all)…the rest of the branches are old experiments
and completed side projects.

The iOS audio support is in the AudioBootStrap array you mentioned; it’s
the “COREAUDIO_bootstrap” entry.

How are you building SDL? Perhaps the audio support didn’t get compiled in?

–ryan.

Verify <SDL-1.3.0-5605>/include/SDL_config_iphoneos.h, and make sure exist
below statement:
#define SDL_AUDIO_DRIVER_COREAUDIO 1> ----- Original Message -----

From: sdl-bounces@lists.libsdl.org [mailto:sdl-bounces at lists.libsdl.org] On
Behalf Of Ryan C. Gordon
Sent: Tuesday, September 20, 2011 10:26 PM
To: SDL Development List
Subject: Re: [SDL] iPhoneOS audio support in SDL 1.3

I am developing an application that uses SDL 1.3 to play wav samples
from memory. Now I’d like to port the code for iOS 4.3, but found that
it does not work since there’s no support for iPhone audio (there’s an
AudioBootStrap array in SDL, that does not contain any suitable
’driver’) so that SDL_AudioInit() fails with negative return value.

The “default” branch in Merurial (which, as the name implies, is what
you get if you don’t explicitly pick another) has iOS audio support.
There are only two active branches: default, and SDL-1.2 (1.2 doesn’t
have iOS support at all)…the rest of the branches are old experiments
and completed side projects.

The iOS audio support is in the AudioBootStrap array you mentioned; it’s
the “COREAUDIO_bootstrap” entry.

How are you building SDL? Perhaps the audio support didn’t get compiled in?

–ryan.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Hi, that’s it! Indeed, there’s incorrect define set, changing it as
suggested solves my problem.
Thanks!

2011/9/20 li zhuo > Verify <SDL-1.3.0-5605>/include/SDL_config_iphoneos.h, and make sure exist

below statement:
#define SDL_AUDIO_DRIVER_COREAUDIO 1

-----Original Message-----
From: sdl-bounces at lists.libsdl.org [mailto:sdl-bounces at lists.libsdl.org]
On
Behalf Of Ryan C. Gordon
Sent: Tuesday, September 20, 2011 10:26 PM
To: SDL Development List
Subject: Re: [SDL] iPhoneOS audio support in SDL 1.3

I am developing an application that uses SDL 1.3 to play wav samples
from memory. Now I’d like to port the code for iOS 4.3, but found that
it does not work since there’s no support for iPhone audio (there’s an
AudioBootStrap array in SDL, that does not contain any suitable
’driver’) so that SDL_AudioInit() fails with negative return value.

The “default” branch in Merurial (which, as the name implies, is what
you get if you don’t explicitly pick another) has iOS audio support.
There are only two active branches: default, and SDL-1.2 (1.2 doesn’t
have iOS support at all)…the rest of the branches are old experiments
and completed side projects.

The iOS audio support is in the AudioBootStrap array you mentioned; it’s
the “COREAUDIO_bootstrap” entry.

How are you building SDL? Perhaps the audio support didn’t get compiled in?

–ryan.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Hi, that’s it! Indeed, there’s incorrect define set, changing it as
suggested solves my problem.

Were you on an older revision, or did this header get overwritten somehow?

(the #define used to be named something else, we changed the name in
revision control fairly recently.)

–ryan.

I am using latest snapshot published (i.e. @5605). In the head revision
(@5961) I’ve checked that the macro is named correctly.

2011/9/20 Ryan C. Gordon >

Hi, that’s it! Indeed, there’s incorrect define set, changing it as

suggested solves my problem.

Were you on an older revision, or did this header get overwritten somehow?

(the #define used to be named something else, we changed the name in
revision control fairly recently.)

–ryan.

_____________**
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/**listinfo.cgi/sdl-libsdl.orghttp://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org