08-20-2008
Ah, I was talking of doing it on the free darwin released by apple on its developers website as opposed to the actual Mac OS X.
It sounds straight forwards enough, I'll have a play. Would make a nice little project
Thanks for the info.
9 More Discussions You Might Find Interesting
1. Programming
I am using Darwin on Mac OS X.I.I (new to both Unix and C++).
I downloaded the ncurses library from http://prdownloads.sourceforge.net/gnu-darwin/ncurses-5.2.tgz,
but I don't know what to do with it now. Stuffit has expanded the archive, but I still have the original .tgz as well (if that's... (1 Reply)
Discussion started by: parmenides
1 Replies
2. UNIX for Dummies Questions & Answers
Hey everyone, just to let you all know "I'm an uber n00b"
I'm connected to Telstra Bigpond's (Australian ISP) ADSL network, now I;m running Darwin 1.41 on an Apple Macintosh PPC computer.
I don't know how to set up ADSL on this system, can someone please guide me. (3 Replies)
Discussion started by: Syphor
3 Replies
3. UNIX for Dummies Questions & Answers
so, what's everyone's opinion on Darwin (x86 rendition)?
is it worth installing at the moment?
pros? cons? comments? (5 Replies)
Discussion started by: Karma
5 Replies
4. OS X (Apple)
Did anyone here about GNU-Darwin?
http://gnu-darwin.org/
Read Bout it!
And Darwin can be found here:
http://www.opendarwin.org
Tell me what U think (4 Replies)
Discussion started by: RedVenim
4 Replies
5. BSD
Does anyone have any Benchmarks for OS X Server in DB Serving.
in comparison to Linux
How bout Darwin?
And How bout Darwin as a Base for a Server?
How bout Ease of Environment Crossplatforms and Various Implementations?
And Finally how bout Develoment? (1 Reply)
Discussion started by: RedVenim
1 Replies
6. BSD
How can I send Ctrl+Alt+Del for Darwin running in PearPC for Linux? (1 Reply)
Discussion started by: eugrus
1 Replies
7. UNIX for Dummies Questions & Answers
This is the first time I've come across this issue
sed -i 's/"//g' iscrmireturns
sed: 1: "iscrmi": command i expects \ followed by textApparently the -i option is non-standard FreeBSD extensions - does that mean it's not available on Darwin? Strange (1 Reply)
Discussion started by: platz
1 Replies
8. OS X (Apple)
Hi there.
I have an MacBookPro and I want to install Darwin ports.
I downloaded & installed MacPorts-1.7.0.pkg and now I don't know what to do.
I tried: # port -d selfupdate
....
error 1
Command output: checking build system type... i686-apple-darwin9.7.0
checking host system type...... (7 Replies)
Discussion started by: hirohitosan
7 Replies
9. Shell Programming and Scripting
Hi
I'm looking for scripts to backup & restore Gnome Desktop and all settings in Gnome. (0 Replies)
Discussion started by: ccc
0 Replies
LEARN ABOUT DEBIAN
sdlx::sound
pods::SDLx::Sound(3pm) User Contributed Perl Documentation pods::SDLx::Sound(3pm)
NAME
SDLx::Sound - SDL sound extension
CATEGORY
Extension
SYNOPSIS
use SDLx::Sound;
my $snd = SDLx::Sound->new();
# loads and plays a single sound now
$snd->play('myfile.wav');
# load a single file
$snd->load('theSound.aif');
# plays it or all loaded files
$snd->play();
# more sounds
my %files = (
channel_01 => "/my_sound1.wav",
channel_02 => "/my_sound2.ogg"
);
# times sounds bangs
my %times = (
channel_01 => 0, # start
channel_01 => 1256, # milliseconds
channel_02 => 2345
);
# Load files in channels for realtime play
$snd->load(%files);
# sets sound channel_01 loudness
$snd->loud('channel_01', 80); # loud at 80%
$snd->play(%times); # play loaded files at times
$snd->play; # play again
# plays sound channel_01 at 578 milliseconds from now
$snd->play('channel_01', 578);
# fades sound
$snd->fade('channel_02', 2345, 3456, -20);
# in a single act do the whole Sound
my $snd = SDLx::Sound->new(
files => (
channel_01 => "/my_sound1.wav",
channel_02 => "/my_sound2.ogg"
),
loud => (
channel_01 => 80,
channel_02 => 75
),
times => (
channel_01 => 0, # start
channel_01 => 1256, # milliseconds
channel_02 => 2345
),
fade => (
channel_02 => [2345, 3456, -20]
)
)->play();
DESCRIPTION
You can think about the SDLx::Sound at 2 approaches.
o A simple sound or
o The sound of your game or app.
Your application will say what the best approach.
In a taste that resembles to perl and to SDL, our SDLx:Sound hooks at SDL::Audio and SDL::Mixer with a graceful and simple interface that
can offer to monks a modern perlish way to manage sounds.
An SDLx::Sound object can load sounds from filesystem, play it, adjust this loudness level or stops the sound.
Each sound will play in the next available channel, so it can be handled isolately.
METHODS
new
Returns a new instance of SDLx::Sound
load
play
$sdlx_sound->play('file.wav');
Play a file
pause
resume
stop
AUTHORS
See "AUTHORS" in SDL.
COPYRIGHT & LICENSE
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2012-05-28 pods::SDLx::Sound(3pm)