Advanced Gtk+ Sequencer - News
OSC client to server communication succeeded
Item posted by Joël Krähemann <jkraehemann> on Sat 15 Dec 2018 09:31:38 PM UTC.
Yay, the functional AgsOscServer test showed me that client-server communication works. First the /action controller was tested. I was able to start and stop soundcard, sequencer and audio thread.
See the output of my victorious integration test and enjoy the bytes received and shown by OSC server:
joelkraehemann@deb-halo:~/nongnu/gsequencer$ ./ags_functional_osc_server_test
CUnit - A unit testing framework for C - Version 2.1-3
http://cunit.sourceforge.net/
** Message: 20:29:48.676: loading preferences from data[0x4075b008]
** Message: 20:29:48.676: autosave-thread
** Message: 20:29:48.677: false
** Message: 20:29:48.677: simple-file
** Message: 20:29:48.677: false
** Message: 20:29:48.677: disable-feature
** Message: 20:29:48.677: experimental
** Message: 20:29:48.677: segmentation
** Message: 20:29:48.677: 4/4
** Message: 20:29:48.677: model
** Message: 20:29:48.677: super-threaded
** Message: 20:29:48.677: super-threaded-scope
** Message: 20:29:48.677: channel
** Message: 20:29:48.677: lock-global
** Message: 20:29:48.677: ags-thread
** Message: 20:29:48.677: lock-parent
** Message: 20:29:48.677: ags-recycling-thread
** Message: 20:29:48.677: backend
** Message: 20:29:48.677: alsa
** Message: 20:29:48.677: device
** Message: 20:29:48.677: default
** Message: 20:29:48.677: samplerate
** Message: 20:29:48.677: 44100
** Message: 20:29:48.677: buffer-size
** Message: 20:29:48.677: 1024
** Message: 20:29:48.677: pcm-channels
** Message: 20:29:48.677: 2
** Message: 20:29:48.677: dsp-channels
** Message: 20:29:48.677: 2
** Message: 20:29:48.677: format
** Message: 20:29:48.677: 16
** Message: 20:29:48.677: backend
** Message: 20:29:48.677: alsa
** Message: 20:29:48.677: device
** Message: 20:29:48.677: default
** Message: 20:29:48.677: auto-sense
** Message: 20:29:48.677: true
sched_setscheduler failed: Operation not permitted
** Message: 20:29:48.680: ags_ladspa_manager.c loading - /usr/lib/ladspa/amp.so
** Message: 20:29:48.680: ags_ladspa_manager.c loading - /usr/lib/ladspa/filter.so
** Message: 20:29:48.681: ags_ladspa_manager.c loading - /usr/lib/ladspa/noise.so
** Message: 20:29:48.681: ags_ladspa_manager.c loading - /usr/lib/ladspa/cmt.so
** Message: 20:29:48.684: ags_ladspa_manager.c loading - /usr/lib/ladspa/delay.so
** Message: 20:29:48.684: ags_ladspa_manager.c loading - /usr/lib/ladspa/sine.so
** Message: 20:29:48.685: ags_dssi_manager.c loading - /usr/lib/dssi/xsynth-dssi.so
** Message: 20:29:48.686: ags_dssi_manager.c loading - /usr/lib/dssi/whysynth.so
** (process:5892): WARNING **: 20:29:48.689: ags_dssi_manager.c - failed to load static object file
** Message: 20:29:48.689: ags_dssi_manager.c loading - /usr/lib/dssi/hexter.so
** Message: 20:29:48.697: Can't get the next card number: Success
** Message: 20:29:48.709: starting OSC listen and dispatch threads
Suite: AgsFunctionalOscServerTest
Test: test of AgsOscServer providing action controller ...0[]0[]0[]34[4]2f[/]61[a]63[c]74[t]69[i]6f[o]6e[n]0[]2c[,]73[s]73[s]0[]2f[/]41[A]67[g]73[s]53[S]6f[o]75[u]6e[n]64[d]50[P]72[r]6f[o]76[v]69[i]64[d]65[e]72[r]2f[/]41[A]67[g]73[s]53[S]6f[o]75[u]6e[n]64[d]63[c]61[a]72[r]64[d]0[]0[]73[s]74[t]61[a]72[r]74[t]0[]0[]0[]0[]0[]0[]34[4]2f[/]61[a]63[c]74[t]69[i]6f[o]6e[n]0[]2c[,]73[s]73[s]0[]2f[/]41[A]67[g]73[s]53[S]6f[o]75[u]6e[n]64[d]50[P]72[r]6f[o]76[v]69[i]64[d]65[e]72[r]2f[/]41[A]67[g]73[s]53[S]6f[o]75[u]6e[n]64[d]63[c]61[a]72[r]64[d]0[]0[]73[s]74[t]61[a]72[r]74[t]0[]0[]0[]2f[/]0[]
** (process:5892): WARNING **: 20:30:03.711: malformed data
** Message: 20:30:03.721: start soundcard
** (process:5892): WARNING **: 20:30:03.745: Unable to set buffer size 2048 for playback: Invalid argument
** Message: 20:30:03.745: start export
0[]0[]0[]34[4]2f[/]61[a]63[c]74[t]69[i]6f[o]6e[n]0[]2c[,]73[s]73[s]0[]2f[/]41[A]67[g]73[s]53[S]6f[o]75[u]6e[n]64[d]50[P]72[r]6f[o]76[v]69[i]64[d]65[e]72[r]2f[/]41[A]67[g]73[s]53[S]65[e]71[q]75[u]65[e]6e[n]63[c]65[e]72[r]0[]0[]73[s]74[t]61[a]72[r]74[t]0[]0[]0[]0[]0[]0[]34[4]2f[/]61[a]63[c]74[t]69[i]6f[o]6e[n]0[]2c[,]73[s]73[s]0[]2f[/]41[A]67[g]73[s]53[S]6f[o]75[u]6e[n]64[d]50[P]72[r]6f[o]76[v]69[i]64[d]65[e]72[r]2f[/]41[A]67[g]73[s]53[S]65[e]71[q]75[u]65[e]6e[n]63[c]65[e]72[r]0[]0[]73[s]74[t]61[a]72[r]74[t]0[]0[]0[]2f[/]0[]
** (process:5892): WARNING **: 20:30:08.712: malformed data
0[]0[]0[]34[4]2f[/]61[a]63[c]74[t]69[i]6f[o]6e[n]0[]2c[,]73[s]73[s]0[]2f[/]41[A]67[g]73[s]53[S]6f[o]75[u]6e[n]64[d]50[P]72[r]6f[o]76[v]69[i]64[d]65[e]72[r]2f[/]41[A]67[g]73[s]41[A]75[u]64[d]69[i]6f[o]5b[[]30[0]5d[]]0[]0[]0[]73[s]74[t]61[a]72[r]74[t]0[]0[]0[]0[]0[]0[]34[4]2f[/]61[a]63[c]74[t]69[i]6f[o]6e[n]0[]2c[,]73[s]73[s]0[]2f[/]41[A]67[g]73[s]53[S]6f[o]75[u]6e[n]64[d]50[P]72[r]6f[o]76[v]69[i]64[d]65[e]72[r]2f[/]41[A]67[g]73[s]41[A]75[u]64[d]69[i]6f[o]5b[[]30[0]5d[]]0[]0[]0[]73[s]74[t]61[a]72[r]74[t]0[]0[]0[]2f[/]0[]
** (process:5892): WARNING **: 20:30:13.712: malformed data
** Message: 20:30:13.716: audio thread start
** Message: 20:30:13.716: audio thread start
** Message: 20:30:13.716: audio thread start
0[]0[]0[]34[4]2f[/]61[a]63[c]74[t]69[i]6f[o]6e[n]0[]2c[,]73[s]73[s]0[]2f[/]41[A]67[g]73[s]53[S]6f[o]75[u]6e[n]64[d]50[P]72[r]6f[o]76[v]69[i]64[d]65[e]72[r]2f[/]41[A]67[g]73[s]53[S]6f[o]75[u]6e[n]64[d]63[c]61[a]72[r]64[d]0[]0[]73[s]74[t]6f[o]70[p]0[]0[]0[]0[]0[]0[]0[]34[4]2f[/]61[a]63[c]74[t]69[i]6f[o]6e[n]0[]2c[,]73[s]73[s]0[]2f[/]41[A]67[g]73[s]53[S]6f[o]75[u]6e[n]64[d]50[P]72[r]6f[o]76[v]69[i]64[d]65[e]72[r]2f[/]41[A]67[g]73[s]53[S]6f[o]75[u]6e[n]64[d]63[c]61[a]72[r]64[d]0[]0[]73[s]74[t]6f[o]70[p]0[]0[]0[]0[]2f[/]0[]
** (process:5892): WARNING **: 20:30:18.713: malformed data
0[]0[]0[]34[4]2f[/]61[a]63[c]74[t]69[i]6f[o]6e[n]0[]2c[,]73[s]73[s]0[]2f[/]41[A]67[g]73[s]53[S]6f[o]75[u]6e[n]64[d]50[P]72[r]6f[o]76[v]69[i]64[d]65[e]72[r]2f[/]41[A]67[g]73[s]53[S]65[e]71[q]75[u]65[e]6e[n]63[c]65[e]72[r]0[]0[]73[s]74[t]6f[o]70[p]0[]0[]0[]0[]0[]0[]0[]34[4]2f[/]61[a]63[c]74[t]69[i]6f[o]6e[n]0[]2c[,]73[s]73[s]0[]2f[/]41[A]67[g]73[s]53[S]6f[o]75[u]6e[n]64[d]50[P]72[r]6f[o]76[v]69[i]64[d]65[e]72[r]2f[/]41[A]67[g]73[s]53[S]65[e]71[q]75[u]65[e]6e[n]63[c]65[e]72[r]0[]0[]73[s]74[t]6f[o]70[p]0[]0[]0[]0[]2f[/]0[]
** (process:5892): WARNING **: 20:30:23.713: malformed data
0[]0[]0[]34[4]2f[/]61[a]63[c]74[t]69[i]6f[o]6e[n]0[]2c[,]73[s]73[s]0[]2f[/]41[A]67[g]73[s]53[S]6f[o]75[u]6e[n]64[d]50[P]72[r]6f[o]76[v]69[i]64[d]65[e]72[r]2f[/]41[A]67[g]73[s]41[A]75[u]64[d]69[i]6f[o]5b[[]30[0]5d[]]0[]0[]0[]73[s]74[t]6f[o]70[p]0[]0[]0[]0[]0[]0[]0[]34[4]2f[/]61[a]63[c]74[t]69[i]6f[o]6e[n]0[]2c[,]73[s]73[s]0[]2f[/]41[A]67[g]73[s]53[S]6f[o]75[u]6e[n]64[d]50[P]72[r]6f[o]76[v]69[i]64[d]65[e]72[r]2f[/]41[A]67[g]73[s]41[A]75[u]64[d]69[i]6f[o]5b[[]30[0]5d[]]0[]0[]0[]73[s]74[t]6f[o]70[p]0[]0[]0[]0[]2f[/]0[]
** (process:5892): WARNING **: 20:30:28.714: malformed data
passed
Test: test of AgsOscServer providing config controller ...passed
Test: test of AgsOscServer providing info controller ...passed
Test: test of AgsOscServer providing meter controller ...passed
Test: test of AgsOscServer providing node controller ...passed
Test: test of AgsOscServer providing renew controller ...passed
Test: test of AgsOscServer providing status controller ...passed** Message: 20:30:33.714: error during reading data from socket
Run Summary: Type Total Ran Passed Failed Inactive
suites 1 1 n/a 0 0
tests 7 7 7 0 0
asserts 14 14 14 0 n/a
Elapsed time = 39.125 seconds
See you soon and stay updated.
by Joël
Powered by Savane 3.14-8aba.
Corresponding source code