so, finally, I fixed the bug.
highlights
auto playback = pa_simple_new(nullptr, "jopa-ng",
PA_STREAM_PLAYBACK, nullptr, "playback", &ss,
nullptr,
nullptr, // (1)
nullptr);| #include <iostream> | |
| using std::cin; | |
| using std::cout; | |
| using std::cerr; | |
| using std::endl; | |
| #include <type_traits> |
| #include <iostream> | |
| using std::cin; | |
| using std::cout; | |
| using std::cerr; | |
| using std::endl; | |
| #include <cmath> | |
| #include <cstdlib> |
| #include <cstdlib> | |
| #include <thread> | |
| #include <chrono> | |
| #include <iostream> | |
| using std::cout; | |
| using std::endl; | |
| static void rep(char ch, int n) | |
| { | |
| while (n--) cout << ch; |
so, finally, I fixed the bug.
auto playback = pa_simple_new(nullptr, "jopa-ng",
PA_STREAM_PLAYBACK, nullptr, "playback", &ss,
nullptr,
nullptr, // (1)
nullptr);| #include <array> | |
| #include <type_traits> | |
| #include <stdexcept> | |
| #include <thread> | |
| #include <chrono> | |
| #include <string> | |
| #include <iostream> | |
| using std::cin; | |
| using std::cout; |
| namespace mixin | |
| { | |
| struct no_copy_ctor { no_copy_ctor() = default; no_copy_ctor(no_copy_ctor const&) = delete; }; | |
| struct no_copy_assign { no_copy_assign& operator=(no_copy_assign const&) = delete; }; | |
| struct non_copyable : no_copy_ctor, no_copy_assign {}; | |
| struct no_move_ctor { no_move_ctor() = default; no_move_ctor(no_move_ctor &&) = delete; }; | |
| struct no_move_assign { no_move_assign& operator=(no_move_assign &&) = delete; }; | |
| struct non_movable : no_move_ctor, no_move_assign {}; |
| #include <cstddef> | |
| #include <type_traits> | |
| #include <utility> | |
| #include <functional> | |
| #include <stdexcept> | |
| #include <iostream> | |
| using std::cin; | |
| using std::cout; | |
| using std::cerr; | |
| using std::endl; |
| #include <GL/glut.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| float spin = 0; | |
| static const float no[] = { 0, 0, 0, 1 }; | |
| float pos_x = 0, pos_y = 0, pos_z = 0; | |
| static char key[256] = {0}; |
| // clang++ -o bnd_play bnd_play.cc -std=gnu++1y -O3 -march=native -Wall -Wextra -lpulse-simple | |
| #include <vector> | |
| #include <algorithm> | |
| #include <initializer_list> | |
| #include <stdexcept> | |
| #include <cstdio> | |
| #include <pulse/simple.h> | |
| struct pitch | |
| { |