[Vm-dev] [commit] r2328 - iOS take Cog soundplugin.h back to thrunk implementation

commits at squeakvm.org commits at squeakvm.org
Wed Oct 13 18:37:39 UTC 2010


Author: johnmci
Date: 2010-10-13 11:37:38 -0700 (Wed, 13 Oct 2010)
New Revision: 2328

Modified:
   branches/Cog/platforms/Cross/plugins/SoundPlugin/SoundPlugin.h
Log:
iOS take Cog soundplugin.h back to thrunk implementation

Modified: branches/Cog/platforms/Cross/plugins/SoundPlugin/SoundPlugin.h
===================================================================
--- branches/Cog/platforms/Cross/plugins/SoundPlugin/SoundPlugin.h	2010-10-11 04:29:11 UTC (rev 2327)
+++ branches/Cog/platforms/Cross/plugins/SoundPlugin/SoundPlugin.h	2010-10-13 18:37:38 UTC (rev 2328)
@@ -1,39 +1,28 @@
 /* SoundPlugin.h - header for Sound Plugins :-) tim at sumeru.stanford.edu */
 
 /* module initialization/shutdown */
-int soundInit(void);
-int soundShutdown(void);
+sqInt soundInit(void);
+sqInt soundShutdown(void);
 
 /* sound output */
-int snd_AvailableSpace(void);
-int snd_InsertSamplesFromLeadTime(int frameCount, int srcBufPtr, int samplesOfLeadTime);
-int snd_PlaySamplesFromAtLength(int frameCount, int arrayIndex, int startIndex);
-int snd_PlaySilence(void);
-int snd_Start(int frameCount, int samplesPerSec, int stereo, int semaIndex);
-int snd_Stop(void);
+sqInt snd_AvailableSpace(void);
+sqInt snd_InsertSamplesFromLeadTime(sqInt frameCount, void *srcBufPtr, sqInt samplesOfLeadTime);
+sqInt snd_PlaySamplesFromAtLength(sqInt frameCount, void *srcBufPtr, sqInt startIndex);
+sqInt snd_PlaySilence(void);
+sqInt snd_Start(sqInt frameCount, sqInt samplesPerSec, sqInt stereo, sqInt semaIndex);
+sqInt snd_Stop(void);
 
 /* sound input */
-int snd_SetRecordLevel(int level);
-int snd_GetRecordLevel(void);	// howard.stearns at qwaq.com October 24 2008
-int snd_StartRecording(int desiredSamplesPerSec, int stereo, int semaIndex);
-int snd_StopRecording(void);
+void snd_SetRecordLevel(sqInt level);
+sqInt snd_StartRecording(sqInt desiredSamplesPerSec, sqInt stereo, sqInt semaIndex);
+sqInt snd_StopRecording(void);
 double snd_GetRecordingSampleRate(void);
-int snd_RecordSamplesIntoAtLength(int buf, int startSliceIndex, int bufferSizeInBytes);
-void snd_Volume(double *left, double *right); //johnmci at smalltalkconsulting.com Nov 6th 2000
-void snd_SetVolume(double left, double right);//johnmci at smalltalkconsulting.com Nov 6th 2000
-int snd_EnableAEC(int trueOrFalse); //josh.gargus at teleplace.com  March 23 2010
-int snd_SupportsAEC(); //josh.gargus at teleplace.com  March 24 2010
+sqInt snd_RecordSamplesIntoAtLength(void *buf, sqInt startSliceIndex, sqInt bufferSizeInBytes);
+void snd_Volume(double *left, double *right);  /* johnmci at smalltalkconsulting.com Nov 6th 2000 */
+void snd_SetVolume(double left, double right); /* johnmci at smalltalkconsulting.com Nov 6th 2000 */
 
-int getNumberOfSoundPlayerDevices(void);	// howard.stearns at qwaq.com October 20 2008 ...
-int getNumberOfSoundRecorderDevices(void);
-char * getDefaultSoundPlayer(void);					
-char * getDefaultSoundRecorder(void);
-char * getSoundPlayerDeviceName(int i);
-char * getSoundRecorderDeviceName(int i);
-void setDefaultSoundPlayer(char *deviceName);	
-void setDefaultSoundRecorder(char *deviceName);
-
 /* mixer interface */
-int snd_GetSwitch(int id, int captureFlag, int channel);
-int snd_SetSwitch(int id, int captureFlag, int parameter);
-int snd_SetDevice(int id, char *name);
+sqInt snd_GetSwitch(sqInt identifier, sqInt captureFlag, sqInt channel);
+sqInt snd_SetSwitch(sqInt identifier, sqInt captureFlag, sqInt parameter);
+sqInt snd_SetDevice(sqInt identifier, char *name);
+



More information about the Vm-dev mailing list