2020-10-01から1ヶ月間の記事一覧
in this situation, 1. you could find index 0 to size.2. so, getchar must know about start of file point in C language.3. we use better a type of structures for analyzer. so, the function lootin is like the below. char getchar( FILE fp, int…
1. if we find the ';', which is the prototype. // return 02. if we find the '{', which is the code block. // return 1 so, the function lootin is like the below. int prototypeorcodeblock ( FILE *fp, int file_index, int file_end ); int proto…
20201027: The below should be defined simply as "on the windows thread problem". 1. the source code were compiled well.1-1. which means library "mmsystem.h" attached.2. the created execution-file doesn't work. on the windows thread problem…
On the Analyzer in the C language,On the Analyzer in the C language,1. if we find the ';', which is the prototype. // return 0 2. if we find the '{', which is the code block. // return 1so, the function lootin is like the below. int protot…
The most simple answer is mixing for sounds program. char 0 -> 255int 0 -> 256 ~ 4 (might be ) - 1 = 4294967296 - 1 #define BUFFER_MEMORYES 255 int buffered_memory_000[BUFFER_MEMORYES]; int buffered_memory_001[BUFFER_MEMORYES]; int buffere…
We don't touch this problem, we found already in this program audio-files and could not read them by use of "MCI_OPEN_PARMS ".Binary atached and we could compile by use of this inclusion. int mm_initialization() { int result; LPSTR buf; ch…
Inclusion of mmsystem and load of wave files for sounds different wav files at the same time were success on the code below.However, we can not find the sounds file. #include #include #pragma comment(lib,"winmm.lib") #define MSG(m) {\ Mess…
Revisement of distance between stripes just once. int revise_curve_parameter ( double* param, int num, vPoint* points ) { int i; double dsitance = 0.0; double half = 0.0; double half_half = 0.0; double diff = 0.0; double all_length = 0.0; …
The thread must have the start and end processes, in the code, which is top and bottom best.We do not return the in the middle of code but skip to end. Even no compiler. we haven't mistaken in this coding.Coding a lot in this pace without …
All functions depend on the below:1. Do_not_call_sounds_functions:2. Set_Do_not_call_sounds_functions:3. Unset_Do_not_call_sounds_functions: And, How do we describe on the board "Depending on someting" ?
We reduce errors on the code level if we have an Architecure.
Recording test, we prepared.Their sample always helps us.Thenk you very much. HRESULT sounds_recording_start(); HRESULT sounds_recording_start() { HRESULT hr; BOOL bDone = FALSE; UINT32 packetLength = 0; BYTE* pData; UINT32 numFramesAvaila…
Even we could achieve the prepare of recprding with sounds devices on the code of C on windowsapi. Thank you very much of microsoft samples. //--- // REFERENCE_TIME time units per second and per millisecond #define REFTIMES_PER_SEC 1000000…
Inside "mmdeviceapi.h" has a CLSID_MMDeviceEnumerator and a IID_IMMDeviceEnumerator but you can not compile with themselve if you do not define them. We can compile it which means sounds recording device instance from Microsoft windowsapi.…
We could include their sample code from Microsoft.And, We added the includion of "mmdeviceapi.h" and we think we become able to record sounds from microphone.. #include #include https://docs.microsoft.com/en-us/windows/win32/api/mmdeviceap…
Now, we can not include "portcls.h". something ---> Driver ---> another so, we don't think Universal Driver solve this problem but is one of Drivers sure.
-> find more various projects on the Create a new project at the bottom of window.-> install more tools and features --- Desktop Driver -> more Broad -> Universal Driver: -> Universal Driverhttps://docs.microsoft.com/ja-jp/samples/microsof…
Thank you very much of Microsoft:: https://docs.microsoft.com/en-us/previous-versions/dd743680(v=vs.85) // Project1.cpp : Defines the entry point for the application. // #include "framework.h" #include "Project1.h" #include //#include #pra…
Specification of double quatation:We check if " and \ between double quatation work or not.They work. > .\winmain_001.exe i 0 aa"a"a main.cpp Fri Oct 02 08:40:48 2020 25 : 26 :int main () { 27 : char** ary_split = NULL; 28 : int number; 29…
(20201001: ) --- > .\winmain_001.exe i 0 aaa i 1 bbb i 2 ccc --- .\main.cpp Thu Oct 01 16:09:14 2020 26 :int main () { 27 : char** ary_split = NULL; 28 : int number; 29 : int i; 30 : 31 : ary_split = split( (char*) "aaa bbb ccc", ' ', &num…