ao 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 453cbe5045fb3355237c6ac508bb22f7945035fae1c068ddc370beecb2d282d0
4
- data.tar.gz: 9a3385722ad42cc9007157cd6ca4305c37b7692ce2d0b26da9dd5deacdc4da90
3
+ metadata.gz: a6c4bc709d6b1fbb6b52ac8bd5f2576b1dce6139bad6df25464bbdb1df0487f1
4
+ data.tar.gz: b7fae2136db4f5c82afc41e43a44d85222a3680e0b0a476260fecdd29d8c89c7
5
5
  SHA512:
6
- metadata.gz: 1bf39b9ab09d450dff5c79dd57f7a934c3218700dddf38474b05c099637cd9c52a8180b509464fe179353d70839865154adecd030bf848b92ca2b7f5e64af834
7
- data.tar.gz: 213ab51a9dede88944bf1629307c752a6ee3aba29e7c6a875b5e7342ae3d2937bf4763bf5eb80a5b5db7f7f62f39640cf63d9efb71abf33a881981d794fe7041
6
+ metadata.gz: 31792434919e80095abf82f44df5bfda1a99483ba968383ab483f1f8c63f48cd723ed8a4a2c9a227a61f8401fe4695a0dfcbfcf1adac191b2a9f3470dfae05d5
7
+ data.tar.gz: 1af7cfe70ca6c733669d99db77ede996d87eb2b48f8ee6febf9f09cdf0b47edae1b191518ede4b0067a0112632d0b479fdcfe1caf74648b70c29f1824f6804d2
data/ext/audio/cao.h CHANGED
@@ -52,6 +52,7 @@ typedef struct ao_struct {
52
52
  pthread_mutex_t mutex;
53
53
  pthread_cond_t cond;
54
54
  int status;
55
+ int tmode;
55
56
  } ao_struct;
56
57
 
57
58
 
data/ext/audio/device.c CHANGED
@@ -73,7 +73,7 @@ raodev_play(VALUE obj, VALUE output_samples)
73
73
  }
74
74
  memcpy(sample->buffer, StringValuePtr(output_samples), sample->bytes);
75
75
 
76
- if (aos->thread == 1){
76
+ if (aos->tmode == 1){
77
77
  enqueue(aos, sample);
78
78
  } else {
79
79
  aosg.aos = aos;
@@ -100,7 +100,7 @@ close_device(ao_struct *aos){
100
100
  int i;
101
101
  sample_t *sample;
102
102
 
103
- if (aos->thread == 1){
103
+ if (aos->tmode == 1){
104
104
  assert(pthread_mutex_lock(&aos->mutex) == 0);
105
105
  if (aos->status > 0){
106
106
  aos->status = 0;
data/ext/audio/thread.c CHANGED
@@ -79,7 +79,7 @@ thread_player(void *val){
79
79
 
80
80
  ao_struct *
81
81
  create_thread(ao_struct *aos){
82
- aos->thread = 1;
82
+ aos->tmode = 1;
83
83
  assert(pthread_mutex_init(&aos->mutex, NULL) == 0);
84
84
  assert(pthread_cond_init(&aos->cond, NULL) == 0);
85
85
  assert(pthread_create(&aos->thread, NULL,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ao
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Akito Miura