History

modified OscIn.port() to return current port instead of assigned port

Ge Wang committed 3 years ago

Commit 4eae5871 parent a0976142 files · +8 −2Browse files

Showing the changes to src (2 of 2 files). Show all

Unified · Split

2 files
  1. src/core/chuck.cpp +1 −1
  2. src/core/ulib_opsc.cpp +7 −1
src/core/chuck.cpp+1−1
@@ -90,7 +90,7 @@ · 89 unmodified lines
90 90
91 91
92// chuck statics92// chuck statics
93const char ChucK::VERSION[] = "1.4.2.1-bleed-2023.02.20 (numchucks)";93const char ChucK::VERSION[] = "1.4.2.1-bleed-2023.02.21 (numchucks)";
94t_CKUINT ChucK::o_numVMs = 0;94t_CKUINT ChucK::o_numVMs = 0;
95t_CKBOOL ChucK::o_isGlobalInit = FALSE;95t_CKBOOL ChucK::o_isGlobalInit = FALSE;
96t_CKBOOL ChucK::enableSystemCall = FALSE;96t_CKBOOL ChucK::enableSystemCall = FALSE;
src/core/ulib_opsc.cpp+7−1
@@ -310,7 +310,13 @@ public: · 309 unmodified lines
310 }310 }
311 311
312 int port(int port) { m_port = port; return m_port; }312 int port(int port) { m_port = port; return m_port; }
313 int port() { return OscInServer::forPort(m_port)->port(); }313 int port()
314 {
315 // 1.4.2.1 (ge) simply return the current m_port
316 return m_port;
317 // previously (which returns an assigned port is always set)
318 // return OscInServer::forPort(m_port)->port();
319 }
314 320
315private:321private:
316 322

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t