mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-07 13:30:09 -05:00
Fix and use constants
This commit is contained in:
parent
068b7e775e
commit
577f06cfeb
2 changed files with 14 additions and 5 deletions
|
|
@ -30,9 +30,9 @@
|
|||
|
||||
#include <jack/jack.h>
|
||||
|
||||
#define WIDTH 640
|
||||
#define HEIGHT 480
|
||||
#define BPP 3
|
||||
#define WIDTH 320
|
||||
#define HEIGHT 240
|
||||
#define BPP 16
|
||||
|
||||
#define MAX_BUFFERS 64
|
||||
|
||||
|
|
@ -153,8 +153,8 @@ int main(int argc, char *argv[])
|
|||
|
||||
jack_set_process_callback (data.client, process, &data);
|
||||
|
||||
data.width = 320;
|
||||
data.height = 240;
|
||||
data.width = WIDTH;
|
||||
data.height = HEIGHT;
|
||||
data.stride = data.width * 4 * sizeof(float);
|
||||
|
||||
if (SDL_Init(SDL_INIT_VIDEO) < 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue