forked from openframeworks/openFrameworks
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
**needs testing** -fixed retina bug
- Loading branch information
zach gage
committed
Jul 21, 2011
1 parent
85e9f53
commit a617b38
Showing
6 changed files
with
162 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#pragma once | ||
|
||
#include "ofConstants.h" | ||
|
||
#include "ofBaseSoundStream.h" | ||
#include "ofTypes.h" | ||
|
||
|
||
class ofxiPhoneSoundStream : public ofBaseSoundStream{ | ||
public: | ||
ofxiPhoneSoundStream(); | ||
~ofxiPhoneSoundStream(); | ||
|
||
void listDevices(); | ||
void setDeviceID(int deviceID); | ||
|
||
void setInput(ofBaseSoundInput * soundInput); | ||
void setOutput(ofBaseSoundOutput * soundOutput); | ||
bool setup(int outChannels, int inChannels, int sampleRate, int bufferSize, int nBuffers); | ||
bool setup(ofBaseApp * app, int outChannels, int inChannels, int sampleRate, int bufferSize, int nBuffers); | ||
|
||
void start(); | ||
void stop(); | ||
void close(); | ||
|
||
long unsigned long getTickCount(); // always returns 0. not implemented on iphone | ||
|
||
int getNumInputChannels(); | ||
int getNumOutputChannels(); | ||
|
||
private: | ||
long unsigned long tickCount; | ||
int nInputChannels; | ||
int nOutputChannels; | ||
int sampleRate; | ||
}; | ||
|
||
|
Oops, something went wrong.