mirror of
https://github.com/badaix/snapcast.git
synced 2025-08-02 16:19:09 +02:00
Comment out stream_tags
This commit is contained in:
parent
9bbba976f9
commit
53e27e0d8b
13 changed files with 173 additions and 106 deletions
28
control/test.cpp
Normal file
28
control/test.cpp
Normal file
|
@ -0,0 +1,28 @@
|
|||
#include <iostream>
|
||||
#include <pybind11/pybind11.h>
|
||||
#include <pybind11/embed.h> // everything needed for embedding
|
||||
|
||||
namespace py = pybind11;
|
||||
|
||||
void say_hello()
|
||||
{
|
||||
// Try to import scipy
|
||||
py::object scipy = py::module::import("/home/johannes/Develop/snapcast/control/meta_mpd.py");
|
||||
|
||||
// Equivalent to "from decimal import Decimal"
|
||||
py::object Decimal = py::module::import("decimal").attr("Decimal");
|
||||
|
||||
// Construct a Python object of class Decimal
|
||||
py::object pi = Decimal("3.14159");
|
||||
py::print(py::str(pi));
|
||||
py::print(pi);
|
||||
|
||||
py::print("Hello, World!"); // use the Python API
|
||||
}
|
||||
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
py::scoped_interpreter guard{}; // start the interpreter and keep it alive
|
||||
say_hello();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue