Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
bigdogdk
bigdogdk's Profile
1
Posts
6
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Expanded view
List view
Private Message
Minim Problem
[11 Replies]
28-Apr-2012 11:51 AM
Forum:
Core Library Questions
Im trying to play an audio file in a program. I had it working but when i went to convert it into a class it wont work.
song song;
void setup (){
song = new song();
}
void draw(){
song.play();
}
import ddf.minim.*;
//import processing.core.*;
class song {
Minim minim;
AudioPlayer song;
song() {
}
void play()
{
size(100, 100);
song
// this loads mysong.wav from the data folder
song = minim.loadFile("12.wav");
song.play();
}
void draw()
{
background(0);
}
void stop()
{
song.close();
minim.stop();
super.stop();
}
}
Edit: The error im getting is "cannot convert from AudioPlayer to audio_test.song".
«Prev
Next »
Moderate user : bigdogdk
Forum