Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | RSS feed

  1.  
  2. struc vorb_alloc_buffer {
  3.  
  4.         .ptr    dd ?
  5.         .length dd ?
  6.  
  7. }
  8.  
  9. struc stb_vorbis_info {
  10.  
  11.         .sample_rate                    dd ?    ; unsigned int
  12.         .channels                       dd ?    ; signed int
  13.  
  14.         .setup_memory_required          dd ?
  15.         .setup_temp_memory_required     dd ?
  16.         .temp_memory_required           dd ?
  17.  
  18.         .max_frame_size                 dd ?
  19.  
  20. }
  21.  
  22. ;        invoke  pushdata_open, input_buf, [buf_size], consumed, error, alloc_buffer
  23. ;        test    eax, eax
  24. ;        jz
  25. ;       mov [vorb], eax
  26.  
  27. ;        invoke  pushdata_decode, [vorb], input_buf, [buf_size], numchannels, float_samples, numsamples
  28. ;        mov     [bytes_consumed], eax
  29.  
  30. ;        invoke  vorb_convert_channels_short_interleaved, numchannels, pcm, numchannels, float_samples, int d_offset, int len
  31.  
  32. ;consumed       dd ?
  33. ;error          dd ?
  34. ;numchannels    dd ?
  35. ;numsamples     dd ?
  36. ;float_samples  rd ?
  37. ;pcm            rw VORB_MAX_SAMPLES_PER_FRAME
  38.  
  39.