Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

play_midi(3alleg4) [linux man page]

play_midi(3alleg4)						  Allegro manual						play_midi(3alleg4)

NAME
play_midi - Starts playing the specified MIDI file. Allegro game programming library. SYNOPSIS
#include <allegro.h> int play_midi(MIDI *midi, int loop); DESCRIPTION
Starts playing the specified MIDI file, first stopping whatever music was previously playing. If the loop flag is set to non-zero, the data will be repeated until replaced with something else, otherwise it will stop at the end of the file. Passing a NULL pointer will stop what- ever music is currently playing. RETURN VALUE
Returns non-zero if an error occurs (this may happen if a patch-caching wavetable driver is unable to load the required samples, or at least it might in the future when somebody writes some patch-caching wavetable drivers :-) SEE ALSO
install_sound(3alleg4), load_midi(3alleg4), play_looped_midi(3alleg4), stop_midi(3alleg4), midi_pause(3alleg4), midi_seek(3alleg4), midi_pos(3alleg4), midi_time(3alleg4), midi_msg_callback(3alleg4), exmidi(3alleg4) Allegro version 4.4.2 play_midi(3alleg4)

Check Out this Related Man Page

play_midi(3alleg4)						  Allegro manual						play_midi(3alleg4)

NAME
play_midi - Starts playing the specified MIDI file. Allegro game programming library. SYNOPSIS
#include <allegro.h> int play_midi(MIDI *midi, int loop); DESCRIPTION
Starts playing the specified MIDI file, first stopping whatever music was previously playing. If the loop flag is set to non-zero, the data will be repeated until replaced with something else, otherwise it will stop at the end of the file. Passing a NULL pointer will stop what- ever music is currently playing. RETURN VALUE
Returns non-zero if an error occurs (this may happen if a patch-caching wavetable driver is unable to load the required samples, or at least it might in the future when somebody writes some patch-caching wavetable drivers :-) SEE ALSO
install_sound(3alleg4), load_midi(3alleg4), play_looped_midi(3alleg4), stop_midi(3alleg4), midi_pause(3alleg4), midi_seek(3alleg4), midi_pos(3alleg4), midi_time(3alleg4), midi_msg_callback(3alleg4), exmidi(3alleg4) Allegro version 4.4.2 play_midi(3alleg4)
Man Page

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Windows Buffering during playing

(0 Replies)
Discussion started by: kayode
0 Replies

2. What is on Your Mind?

What do you do during weekends ? :)

Its been a while since we had any fun polls or interesting topics in this forum. So, here I start a thread rather calling it as a question - " What do you do during weekends ? :) " For many, on hearing the term - weekends should excite them :b: for ( few ) some - uhhh .. its just another day... (11 Replies)
Discussion started by: matrixmadhan
11 Replies

3. Shell Programming and Scripting

use of while loop

Legends, Could you please let me know if the below while loop is correct? I want to kill the processes that are in PLIST variable. Wanted to use "for" loop but thought of playing it with while. Please help to correct if you find any missing code. I doubt what to pass after kill -TERM ???... (5 Replies)
Discussion started by: sdosanjh
5 Replies

4. UNIX for Dummies Questions & Answers

PS1 issue between Solaris and Ubuntu

I'm relatively new to *nix, and have been playing around with my .profile. I've been using ksh as my shell. Specifically I've been playing with my PS1 prompt, and trying to make it look uniform across Ubuntu and Solaris. I've posted what I currently have below. HOSTNAME=$(hostname) ; export... (4 Replies)
Discussion started by: bobwilson
4 Replies

5. Shell Programming and Scripting

unexpected output within a for loop using awk

Hi all, after hours of playing around with this and scouring the web I decided to ask my fellow UNIX operators as I can't wrap my head around this. First off, I want to parse an input file with tabs (I could pull this off easily with different delimiters) but I was trying to make nicer... (2 Replies)
Discussion started by: Keepcase
2 Replies

6. Programming

I don't know how to replace input char with appropriate integer

Hi guys, I asked for help on programming forums and no one didn't helped me so I ask for help here. I am playing with some tasks from my book and I can't figure where did I get wrong. From the first program I get a blank screen, program won't generate 10*10 matrix. And second problem is I... (6 Replies)
Discussion started by: solaris_user
6 Replies

7. Programming

warning: comparison between pointer and integer

Hi guys :D I am still playing with my C handbook and yes, as you can see I have small problem as always :cool: I wrote a C code #include <stdio.h> #define MESSAGE 100 int main(void) { char input_mes - Pastebin.com And when I try to compile it I get following errors from gcc ... (1 Reply)
Discussion started by: solaris_user
1 Replies

8. OS X (Apple)

Virtual mixer

Hi, I am setting up a Radio Broadcast from my laptop and looking for the software I need. As I will be playing music from a software, voice from a usb microphone and jingles from another software I was wondering if anybody knows a virtual mixer software that allows me to regulate the... (2 Replies)
Discussion started by: Tameto
2 Replies