home *** CD-ROM | disk | FTP | other *** search
- /*
- This is example of source code for playing sounds via NED PLAYER
- from your program. NED PLAYER must be running as ACC or should
- be running as one of applikations on multitasking systems.
-
- This source code is free. You can use it in your applications
- without any fee. I have no warranty for it.
-
- (C) New Design - September 1997
-
- email: xsumbe00@stud.fee.vutbr.cz
- http://www.stud.fee.vutbr.cz/~xsumbe00
- */
-
- #include <aes.h>
-
- #define VA_START 0x4711
-
- int main ( void ) {
-
- /* name of sound file you want to play by NED PLAYER */
-
- char *fname="E:\\BEATLES.DVS";
- int msg[8];
-
- msg[0] = VA_START;
- msg[1] = appl_init();
- msg[2] = 0;
- msg[4] = (unsigned int) (((unsigned long)fname << 16) >> 16);
- msg[3] = (unsigned int) ((unsigned long)fname >> 16);
-
- if (appl_find("N_PLAYER") != -1)
- appl_write(appl_find("N_PLAYER"), 16, msg);
-
- appl_exit();
-
- return 0;
- }