title: Music with assembler - /dev/dsp in pulseaudio?
body: <p>I want to make "music" or better just output a little "beep" with this assembler program:</p>
  
  <p>play.s:</p>
  
  <pre><code>datei:
  .ascii "/dev/dsp"
  
  .globl play
  play:
  movl $5, %eax
  movl $datei, %ebx
  movl $1, %ecx
  int $0x80
  pushl %eax
  movl %eax, %ebx
  movl $4, %eax
  movl 12(%esp), %ecx
  movl 8(%esp), %edx
  int $0x80
  </code></pre>
  
  <p>music.s:</p>
  
  <pre><code>.globl _start
  #.lcomm buffer, 100
  buffer:
  .byte 0,255,0,255,0,255,0,255,0,255
  .byte 0,255,0,255,0,255,0,255,0,255
  .byte 0,255,0,255,0,255,0,255,0,255
  .byte 0,255,0,255,0,255,0,255,0,255
  .byte 0,255,0,255,0,255,0,255,0,255
  .byte 0,255,0,255,0,255,0,255,0,255
  .byte 0,255,0,255,0,255,0,255,0,255
  .byte 0,255,0,255,0,255,0,255,0,255
  .byte 0,255,0,255,0,255,0,255,0,255
  .byte 0,255,0,255,0,255,0,255,0,255
  _start:
  pushl $buffer
  pushl $100
  loop:
  call play
  jmp loop
  movl $1, %eax
  movl $0, %ebx
  int $128
  </code></pre>
  
  <p>I assemblered both with:</p>
  
  <p>as music.s -o music.o
  as play.s -o play.o</p>
  
  <p>and linked both with:</p>
  
  <p>ld play.o music.o -o music</p>
  
  <p>But then I registered that I do not have a "/dev/dsp"-file. <strong>So is there any similiar to /dev/dsp in pulseaudio?</strong> </p>