This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[11pt]{article} | |
\usepackage{fontspec} | |
\usepackage{xeCJK} | |
\usepackage[a4paper]{geometry} | |
\usepackage{enumitem} | |
\setlength{\parindent}{2em} | |
\setmainfont{Noto Sans SC} | |
\setCJKmainfont{Noto Sans SC} | |
\setlist[enumerate]{itemsep=0mm, topsep=0mm, parsep=0mm, partopsep=0mm, leftmargin=14mm} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <SDL2/SDL.h> | |
#define MUS_PATH "Roland-GR-1-Trumpet-C5.wav" | |
// prototype for our audio callback | |
// see the implementation for more information | |
void my_audio_callback(void *userdata, Uint8 *stream, int len); | |
// variable declarations | |
static Uint8 *audio_pos; // global pointer to the audio buffer to be played |