PropWare
C++ objects and CMake build system for Parallax Propeller
Home
Download
Getting Started
Documentation
Reference
About
Related Links
Namespace List
Class List
File List
Examples
Build System
File List
File Members
propsideworkspace
Learn
Simple Libraries
Audio
libwavplayer
libwavplayer.c
1
/*
2
* @file libwavplayer.c
3
*
4
* @author Andy Lindsay
5
*
6
* @copyright
7
* Copyright (C) Parallax, Inc. 2013. All Rights MIT Licensed.
8
*
9
* @brief Project and test harness for the wavplayer library.
10
*/
11
12
#include "simpletools.h"
13
#include "wavplayer.h"
14
15
int
main
()
16
{
17
int
DO = 22, CLK = 23, DI = 24,
CS
= 25;
18
sd_mount(DO, CLK, DI,
CS
);
19
20
const
char
levels[] = {
"levels.wav"
};
21
wav_play(levels);
22
23
pause(6000);
24
wav_volume(2);
25
pause(6000);
26
wav_volume(6);
27
pause(6000);
28
wav_volume(4);
29
pause(6000);
30
wav_stop();
31
pause(1000);
32
33
const
char
crazy[] = {
"crazy.wav"
};
34
wav_play(crazy);
35
while
(1);
36
}
main
int main(void)
Definition:
GraphicsTest.c:20
CS
const PropWare::Port::Mask CS
Definition:
L3G_Demo.cpp:38
Generated on Sat Aug 27 2016 00:58:09 for PropWare by
1.8.12