Home | History | Annotate | Download | only in JetCreator

Lines Matching refs:result

63 # special result codes

227 result = eas_dll.EAS_SetVolume(self.eas.handle, self.handle, volume)
228 if result:
229 raise EAS_Exception(result, 'EAS_SetVolume error %d on file %s' % (result, self.path), 'EAS_SetVolume')
245 result = eas_dll.EAS_SetPriority(self.eas.handle, self.handle, priority)
246 if result:
247 raise EAS_Exception(result, 'EAS_SetPriority error %d on file %s' % (result, self.path), 'EAS_SetPriority')
254 result = eas_dll.EAS_GetPriority(self.eas.handle, self.handle, byref(priority))
255 if result:
256 raise EAS_Exception(result, 'EAS_GetPriority error %d on file %s' % (result, self.path), 'EAS_GetPriority')
264 result = eas_dll.EAS_SetTransposition(self.eas.handle, self.handle, transposition)
265 if result:
266 raise EAS_Exception(result, 'EAS_SetTransposition error %d on file %s' % (result, self.path), 'EAS_SetTransposition')
272 result = eas_dll.EAS_SetPolyphony(self.eas.handle, self.handle, polyphony)
273 if result:
274 raise EAS_Exception(result, 'EAS_SetPolyphony error %d on file %s' % (result, self.path), 'EAS_SetPolyphony')
281 result = eas_dll.EAS_GetPolyphony(self.eas.handle, self.handle, byref(polyphony))
282 if result:
283 raise EAS_Exception(result, 'EAS_GetPolyphony error %d on file %s' % (result, self.path), 'EAS_GetPolyphony')
290 result = eas_dll.EAS_SelectLib(self.eas.handle, self.handle, test_lib)
291 if result:
292 raise EAS_Exception(result, 'EAS_SelectLib error %d on file %s' % (result, self.path), 'EAS_SelectLib')
297 result = eas_dll.EAS_LoadDLSCollection(self.eas.handle, self.handle, path)
298 if result:
299 raise EAS_Exception(result, 'EAS_LoadDLSCollection error %d on file %s lib %s' % (result, self.path, path), 'EAS_LoadDLSCollection')
313 result = eas_dll.EAS_RegExtAudioCallback(self.eas.handle, self.handle, user_data, prog_chg_func, event_func)
314 if result:
315 raise EAS_Exception(result, 'EAS_RegExtAudioCallback error %d on file %s' % (result, self.path), 'EAS_RegExtAudioCallback')
321 result = eas_dll.EAS_SetPlayMode(self.eas.handle, self.handle, play_mode)
322 if result:
323 raise EAS_Exception(result, 'EAS_SetPlayMode error %d on file %s' % (result, self.path), 'EAS_SetPlayMode')
346 result = eas_dll.EAS_Prepare(self.eas.handle, self.handle)
347 if result:
348 raise EAS_Exception(result, 'EAS_Prepare error %d on file %s' % (result, self.path), 'EAS_Prepare')
356 result = eas_dll.EAS_State(self.eas.handle, self.handle, byref(state))
357 if result:
358 raise EAS_Exception(result, 'EAS_State error %d on file %s' % (result, self.path), 'EAS_State')
367 result = eas_dll.EAS_CloseFile(self.eas.handle, self.handle)
368 if result:
369 raise EAS_Exception(result, 'EAS_CloseFile error %d on file %s' % (result, self.path), 'EAS_CloseFile')
383 result = eas_dll.EAS_Pause(self.eas.handle, self.handle)
384 if result:
385 raise EAS_Exception(result, 'EAS_Pause error %d on file %s' % (result, self.path), 'EAS_Pause')
391 result = eas_dll.EAS_Resume(self.eas.handle, self.handle)
392 if result:
393 raise EAS_Exception(result, 'EAS_Resume error %d on file %s' % (result, self.path), 'EAS_Resume')
399 result = eas_dll.EAS_Locate(self.eas.handle, self.handle, int(secs * 1000 + 0.5), offset)
400 if result:
401 raise EAS_Exception(result, 'EAS_Locate error %d on file %s' % (result, self.path), 'EAS_Locate')
408 result = eas_dll.EAS_GetLocation(self.eas.handle, self.handle, byref(msecs))
409 if result:
410 raise EAS_Exception(result, 'EAS_GetLocation error %d on file %s' % (result, self.path), 'EAS_GetLocation')
420 result = eas_dll.EAS_GetFileType(self.eas.handle, self.handle, byref(file_type))
421 if result:
422 raise EAS_Exception(result, 'EAS_GetFileType error %d on file %s' % (result, self.path), 'EAS_GetFileType')
435 result = eas_dll.EAS_SetRepeat(self.eas.handle, self.handle, count)
436 if result:
437 raise EAS_Exception(result, 'EAS_SetRepeat error %d on file %s' % (result, self.path), 'EAS_SetRepeat')
444 result = eas_dll.EAS_GetRepeat(self.eas.handle, self.handle, byref(count))
445 if result:
446 raise EAS_Exception(result, 'EAS_GetRepeat error %d on file %s' % (result, self.path), 'EAS_GetRepeat')
454 result = eas_dll.EAS_SetPlaybackRate(self.eas.handle, self.handle, rate)
455 if result:
456 raise EAS_Exception(result, 'EAS_SetPlaybackRate error %d on file %s' % (result, self.path), 'EAS_SetPlaybackRate')
463 result = eas_dll.EAS_ParseMetaData(self.eas.handle, self.handle, byref(length))
464 if result:
465 raise EAS_Exception(result, 'EAS_ParseMetaData error %d on file %s' % (result, self.path), 'EAS_ParseMetaData')
476 result = eas_dll.EAS_RegisterMetaDataCallback(self.eas.handle, self.handle, callback, buf, buf_size, user_data)
477 if result:
478 raise EAS_Exception(result, 'EAS_RegisterMetaDataCallback error %d on file %s' % (result, self.path), 'EAS_RegisterMetaDataCallback')
485 result = eas_dll.EAS_GetWaveFmtChunk(self.eas.handle, self.handle, byref(wave_fmt_chunk))
486 if result:
487 raise EAS_Exception(result, 'EAS_GetWaveFmtChunk error %d on file %s' % (result, self.path), 'EAS_GetWaveFmtChunk')
513 result = eas_dll.EAS_WriteMIDIStream(self.eas.handle, self.handle, data, len(data))
514 if result:
515 raise EAS_Exception(result, 'EAS_WriteMIDIStream error %d' % result, 'EAS_WriteMIDIStream')
522 result = eas_dll.EAS_CloseMIDIStream(self.eas.handle, self.handle)
523 if result:
524 raise EAS_Exception(result, 'EAS_CloseFile error %d' % result, 'EAS_CloseMIDIStream')
593 result = eas_dll.EAS_Init(byref(self.handle))
594 if result:
595 raise EAS_Exception(result, 'EAS_Init error %d' % result, 'EAS_Init')
633 result = eas_dll.EAS_Shutdown(self.handle)
634 if result:
635 raise EAS_Exception(result, 'EAS_Shutdown error %d' % result, 'EAS_Shutdown')
652 result = eas_dll.EAS_OpenFile(self.handle, path, byref(stream_handle))
653 if result:
654 raise EAS_Exception(result, 'EAS_OpenFile error %d on file %s' % (result, path), 'EAS_OpenFile')
676 result = eas_dll.EAS_OpenMIDIStream(self.handle, byref(stream_handle), stream.handle)
678 result = eas_dll.EAS_OpenMIDIStream(self.handle, byref(stream_handle), 0)
679 if result:
680 raise EAS_Exception(result, 'EAS_OpenMIDIStream error %d' % result, 'EAS_OpenMIDIStream')
701 result = eas_dll.EAS_MMAPIToneControl(self.handle, path, byref(stream_handle))
702 if result:
703 raise EAS_Exception(result, 'EAS_MMAPIToneControl error %d on file %s' % (result, path), 'EAS_OpenToneControlStream')
750 result = eas_dll.OpenWaveOutDevice(dev_num, sampleRate, maxBufSize)
751 if result:
752 raise EAS_Exception(result, 'OpenWaveOutDevice error %d' % result, 'OpenWaveOutDevice')
757 result = eas_dll.CloseWaveOutDevice()
758 if result:
759 raise EAS_Exception(result, 'CloseWaveOutDevice error %d' % result, 'CloseWaveOutDevice')
788 result = eas_dll.EAS_RenderWaveOut(self.handle, byref(self.audio_buffer), self.buf_size, byref(samplesRendered))
790 result = eas_dll.EAS_RenderAuxMixer(self.handle, byref(self.audio_buffer), byref(samplesRendered))
792 if result == 0:
794 if result == EAS_BUFFER_FULL:
797 raise EAS_Exception(result, 'EAS_Render error %d' % result, 'EAS_Render')
808 result = eas_dll.EAS_GetRenderTime(self.handle, byref(msecs))
809 if result:
810 raise EAS_Exception(result, 'EAS_GetRenderTime error %d' % result, 'EAS_GetRenderTime')
819 result = eas_dll.EAS_SetVolume(self.handle, 0, volume)
820 if result:
821 raise EAS_Exception(result, 'EAS_SetVolume error %d' % result, 'EAS_SetVolume')
828 result = eas_dll.EAS_GetVolume(self.handle, 0, byref(volume))
829 if result:
830 raise EAS_Exception(result, 'EAS_GetVolume error %d' % result, 'EAS_GetVolume')
838 result = eas_dll.EAS_SetSynthPolyphony(self.handle, synth_num, polyphony)
839 if result:
840 raise EAS_Exception(result, 'EAS_SetSynthPolyphony error %d on synth %d' % (result, synth_num), 'EAS_SetPolyphony')
847 result = eas_dll.EAS_GetSynthPolyphony(self.handle, synth_num, byref(polyphony))
848 if result:
849 raise EAS_Exception(result, 'EAS_GetSynthPolyphony error %d on synth %d' % (result, synth_num), 'EAS_GetPolyphony')
857 result = eas_dll.EAS_SetMaxLoad(self.handle, max_load)
858 if result:
859 raise EAS_Exception(result, 'EAS_SetMaxLoad error %d' % result, 'EAS_SetMaxLoad')
865 result = eas_dll.EAS_SetParameter(self.handle, module, param, value)
866 if result:
867 raise EAS_Exception(result, 'EAS_SetParameter error %d (param=%d, value=%d)' % (result, param, value), 'EAS_SetParameter')
874 result = eas_dll.EAS_GetParameter(self.handle, module, param, byref(value))
875 if result:
876 raise EAS_Exception(result, 'EAS_SetParameter error %d (param=%d)' % (result, param), 'EAS_GetParameter')
884 result = eas_dll.EAS_SelectLib(self.handle, 0, test_lib)
885 if result:
886 raise EAS_Exception(result, 'EAS_SelectLib error %d' % result, 'EAS_SelectLib')
891 result = eas_dll.EAS_LoadDLSCollection(self.handle, 0, path)
892 if result:
893 raise EAS_Exception(result, 'EAS_LoadDLSCollection error %d lib %s' % (result, path), 'EAS_LoadDLSCollection')
946 result = eas_dll.EAS_InitAuxMixer(eas.handle, num_streams, sample_rate, max_sample_rate, byref(buf_size))
947 if result:
948 raise EAS_Exception(result, 'EAS_InitAuxMixer error %d' % result, 'EAS_InitAuxMixer')
969 result = eas_dll.EAS_ShutdownAuxMixer(self.eas.handle)
970 if result:
971 raise EAS_Exception(result, 'EAS_ShutdownAuxMixer error %d' % result, 'EAS_ShutdownAuxMixer')
991 result = eas_dll.EAS_OpenAudioStream(self.eas.handle, decoder_func, inst_data, sample_rate, num_channels, stream_handle)
992 if result:
993 raise EAS_Exception(result, 'EAS_OpenAudioStream error %d on file %s' % (result, path), 'EAS_OpenAudioStream')
1001 result = eas_dll.JET_CloseFile(self.eas.handle, stream_handle)
1002 if result:
1003 raise EAS_Exception(result, 'EAS_CloseAudioStream error %d' % result, 'EAS_CloseAudioStream')
1068 result = eas_dll.JET_Init(eas.handle, config_handle, config_size)
1069 if result:
1070 raise EAS_Exception(result, 'JET_Init error %d' % result, 'JET_Init')
1085 result = eas_dll.JET_Shutdown(self.eas.handle)
1086 if result:
1087 raise EAS_Exception(result, 'JET_Shutdown error %d' % result, 'JET_Shutdown')
1105 result = eas_dll.JET_OpenFile(self.eas.handle, path)
1106 if result:
1107 raise EAS_Exception(result, 'JET_OpenFile error %d on file %s' % (result, path), 'JET_OpenFile')
1113 result = eas_dll.JET_CloseFile(self.eas.handle)
1114 if result:
1115 raise EAS_Exception(result, 'JET_CloseFile error %d' % result, 'JET_CloseFile')
1128 result = eas_dll.JET_QueueSegment(self.eas.handle, seg_num, dls_num, repeat, tranpose, mute_flags, userID)
1129 if result:
1130 raise EAS_Exception(result, 'JET_QueueSegment error %d' % result, 'JET_QueueSegment')
1136 result = eas_dll.JET_Clear_Queue(self.eas.handle)
1137 if result:
1138 raise EAS_Exception(result, 'JET_Clear_Queue error %d' % result, 'JET_Clear_Queue')
1144 result = eas_dll.JET_GetEvent(self.eas.handle, 0, 0)
1145 return result
1151 result = eas_dll.JET_Play(self.eas.handle)
1152 if result:
1153 raise EAS_Exception(result, 'JET_Play error %d' % result, 'JET_Play')
1159 result = eas_dll.JET_Pause(self.eas.handle)
1160 if result:
1161 raise EAS_Exception(result, 'JET_Pause error %d' % result, 'JET_Pause')
1182 result = eas_dll.JET_Status(self.eas.handle, byref(status))
1183 if result:
1184 raise EAS_Exception(result, 'JET_Status error %d' % result, 'JET_Status')
1193 result = eas_dll.JET_SetVolume(self.eas.handle, volume)
1194 if result:
1195 raise EAS_Exception(result, 'JET_SetVolume error %d' % result, 'JET_SetVolume')
1201 result = eas_dll.JET_SetTransposition(self.eas.handle, transposition)
1202 if result:
1203 raise EAS_Exception(result, 'JET_SetTransposition error %d' % result, 'JET_SetTransposition')
1209 result = eas_dll.JET_TriggerClip(self.eas.handle, clipID)
1210 if result:
1211 raise EAS_Exception(result, 'JET_SetTransposition error %d' % result, 'JET_TriggerClip')
1217 result = eas_dll.JET_SetMuteFlag(self.eas.handle, track_num, mute, sync)
1218 if result:
1219 raise EAS_Exception(result, 'JET_SetMuteFlag error %d' % result, 'JET_SetMuteFlag')
1225 result = eas_dll.JET_SetMuteFlags(self.eas.handle, mute_flags, sync)
1226 if result:
1227 raise EAS_Exception(result, 'JET_SetMuteFlag error %d' % result, 'JET_SetMuteFlags')