Csound Csound-dev Csound-tekno Search About

[Cs-dev] C bytebeat experiment

Date2012-05-21 14:43
FromAdam Puckett
Subject[Cs-dev] C bytebeat experiment
Attachmentsds.c  None  None  
The attached file compiles but the resulting exe crashes. What am I
doing wrong? (OS: XP SP3, using DirectSound)

Thanks.

Date2012-05-21 15:04
FromSigurd Saue
SubjectRe: [Cs-dev] C bytebeat experiment
It looks to me like you're reading way beyond your buffer. You've allocated (44100*4*5) bytes, but in your loop you're accessing elements four times that size: q++ is a short pointer and moves two bytes for each increment and you do that twice for each step of the for loop.

Sigurd

-----Original Message-----
From: Adam Puckett [mailto:adotsdothmusic@gmail.com] 
Sent: Monday, May 21, 2012 3:44 PM
To: csound-devel@lists.sourceforge.net
Subject: [Cs-dev] C bytebeat experiment

The attached file compiles but the resulting exe crashes. What am I doing wrong? (OS: XP SP3, using DirectSound)

Thanks.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2012-05-21 15:11
FromAdam Puckett
SubjectRe: [Cs-dev] C bytebeat experiment
What do I need to change?

On 5/21/12, Sigurd Saue  wrote:
> It looks to me like you're reading way beyond your buffer. You've allocated
> (44100*4*5) bytes, but in your loop you're accessing elements four times
> that size: q++ is a short pointer and moves two bytes for each increment and
> you do that twice for each step of the for loop.
>
> Sigurd
>
> -----Original Message-----
> From: Adam Puckett [mailto:adotsdothmusic@gmail.com]
> Sent: Monday, May 21, 2012 3:44 PM
> To: csound-devel@lists.sourceforge.net
> Subject: [Cs-dev] C bytebeat experiment
>
> The attached file compiles but the resulting exe crashes. What am I doing
> wrong? (OS: XP SP3, using DirectSound)
>
> Thanks.
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2012-05-21 15:14
FromSigurd Saue
SubjectRe: [Cs-dev] C bytebeat experiment
I'm not 100 % sure what you want to achieve, but what if you change the loop counter to:

for (t = 0; t < 44100*5; t++)		// Removed *4

Sigurd

-----Original Message-----
From: Adam Puckett [mailto:adotsdothmusic@gmail.com] 
Sent: Monday, May 21, 2012 4:11 PM
To: Developer discussions
Subject: Re: [Cs-dev] C bytebeat experiment

What do I need to change?

On 5/21/12, Sigurd Saue  wrote:
> It looks to me like you're reading way beyond your buffer. You've 
> allocated
> (44100*4*5) bytes, but in your loop you're accessing elements four 
> times that size: q++ is a short pointer and moves two bytes for each 
> increment and you do that twice for each step of the for loop.
>
> Sigurd
>
> -----Original Message-----
> From: Adam Puckett [mailto:adotsdothmusic@gmail.com]
> Sent: Monday, May 21, 2012 3:44 PM
> To: csound-devel@lists.sourceforge.net
> Subject: [Cs-dev] C bytebeat experiment
>
> The attached file compiles but the resulting exe crashes. What am I 
> doing wrong? (OS: XP SP3, using DirectSound)
>
> Thanks.
>
> ----------------------------------------------------------------------
> --------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and 
> threat landscape has changed and how IT managers can respond. 
> Discussions will include endpoint security, mobile security and the 
> latest in malware threats. 
> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2012-05-21 15:24
FromAdam Puckett
SubjectRe: [Cs-dev] C bytebeat experiment
Just tried changing the loop and getting the same thing.

What I'm trying to do is fill the left channel of a 5-second buffer
with silence and the right channel with an arbitrary bytebeat "song".
I used (t&t>>8) as an example to see if I could get it to work.

On 5/21/12, Sigurd Saue  wrote:
> I'm not 100 % sure what you want to achieve, but what if you change the loop
> counter to:
>
> for (t = 0; t < 44100*5; t++)		// Removed *4
>
> Sigurd
>
> -----Original Message-----
> From: Adam Puckett [mailto:adotsdothmusic@gmail.com]
> Sent: Monday, May 21, 2012 4:11 PM
> To: Developer discussions
> Subject: Re: [Cs-dev] C bytebeat experiment
>
> What do I need to change?
>
> On 5/21/12, Sigurd Saue  wrote:
>> It looks to me like you're reading way beyond your buffer. You've
>> allocated
>> (44100*4*5) bytes, but in your loop you're accessing elements four
>> times that size: q++ is a short pointer and moves two bytes for each
>> increment and you do that twice for each step of the for loop.
>>
>> Sigurd
>>
>> -----Original Message-----
>> From: Adam Puckett [mailto:adotsdothmusic@gmail.com]
>> Sent: Monday, May 21, 2012 3:44 PM
>> To: csound-devel@lists.sourceforge.net
>> Subject: [Cs-dev] C bytebeat experiment
>>
>> The attached file compiles but the resulting exe crashes. What am I
>> doing wrong? (OS: XP SP3, using DirectSound)
>>
>> Thanks.
>>
>> ----------------------------------------------------------------------
>> --------
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and
>> threat landscape has changed and how IT managers can respond.
>> Discussions will include endpoint security, mobile security and the
>> latest in malware threats.
>> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and threat
> landscape has changed and how IT managers can respond. Discussions will
> include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2012-05-21 16:29
FromAdam Puckett
SubjectRe: [Cs-dev] C bytebeat experiment
Changed to this:

#include 
#include 
int main(void)
{
  LPDIRECTSOUND ds;
  DSBUFFERDESC bd;
  WAVEFORMATEX wf;
  LPDIRECTSOUNDBUFFER bf;
  DirectSoundCreate(NULL, &ds, NULL);
  IDirectSound_SetCooperativeLevel(ds, GetDesktopWindow(), DSSCL_PRIORITY);
  ZeroMemory(&wf, sizeof(WAVEFORMATEX));
  wf.wFormatTag = WAVE_FORMAT_PCM;
  wf.wBitsPerSample = 16;
  wf.nChannels = 1;
  wf.nSamplesPerSec = 44100;
  wf.nBlockAlign = wf.wBitsPerSample * wf.nChannels / 8;
  wf.nAvgBytesPerSec = wf.nSamplesPerSec * wf.nBlockAlign;
  ZeroMemory(&bd, sizeof(DSBUFFERDESC));
  bd.dwSize = sizeof(DSBUFFERDESC);
  bd.dwFlags = DSBCAPS_GLOBALFOCUS | DSBCAPS_LOCHARDWARE;
  bd.dwBufferBytes = 44100*2*5;
  bd.lpwfxFormat = &wf;
  IDirectSound_CreateSoundBuffer(ds, &bd, &bf, NULL);
  LPVOID ap1, ap2;
  DWORD bt1, bt2;
  IDirectSoundBuffer_Lock(bf, 0, 0, &ap1, &bt1, &ap2, &bt2,
DSBLOCK_ENTIREBUFFER);
  int *q;
  q = malloc(44100*5);
  int t;
  for (t = 0; t < 44100*5; t++)
    *q++ = (t&t>>8);
  CopyMemory(ap1, q, bt1);
  IDirectSoundBuffer_Unlock(bf, ap1, bt1, ap2, bt2);
  IDirectSoundBuffer_Play(bf, 0, 0, DSBPLAY_LOOPING);
  Sleep(15000);
  IDirectSoundBuffer_Stop(bf);
  return 0;
}

Error reports vanish, but no sound. It's not even sleeping. :/

On 5/21/12, Adam Puckett  wrote:
> Just tried changing the loop and getting the same thing.
>
> What I'm trying to do is fill the left channel of a 5-second buffer
> with silence and the right channel with an arbitrary bytebeat "song".
> I used (t&t>>8) as an example to see if I could get it to work.
>
> On 5/21/12, Sigurd Saue  wrote:
>> I'm not 100 % sure what you want to achieve, but what if you change the
>> loop
>> counter to:
>>
>> for (t = 0; t < 44100*5; t++)		// Removed *4
>>
>> Sigurd
>>
>> -----Original Message-----
>> From: Adam Puckett [mailto:adotsdothmusic@gmail.com]
>> Sent: Monday, May 21, 2012 4:11 PM
>> To: Developer discussions
>> Subject: Re: [Cs-dev] C bytebeat experiment
>>
>> What do I need to change?
>>
>> On 5/21/12, Sigurd Saue  wrote:
>>> It looks to me like you're reading way beyond your buffer. You've
>>> allocated
>>> (44100*4*5) bytes, but in your loop you're accessing elements four
>>> times that size: q++ is a short pointer and moves two bytes for each
>>> increment and you do that twice for each step of the for loop.
>>>
>>> Sigurd
>>>
>>> -----Original Message-----
>>> From: Adam Puckett [mailto:adotsdothmusic@gmail.com]
>>> Sent: Monday, May 21, 2012 3:44 PM
>>> To: csound-devel@lists.sourceforge.net
>>> Subject: [Cs-dev] C bytebeat experiment
>>>
>>> The attached file compiles but the resulting exe crashes. What am I
>>> doing wrong? (OS: XP SP3, using DirectSound)
>>>
>>> Thanks.
>>>
>>> ----------------------------------------------------------------------
>>> --------
>>> Live Security Virtual Conference
>>> Exclusive live event will cover all the ways today's security and
>>> threat landscape has changed and how IT managers can respond.
>>> Discussions will include endpoint security, mobile security and the
>>> latest in malware threats.
>>> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>
>> ------------------------------------------------------------------------------
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and threat
>> landscape has changed and how IT managers can respond. Discussions will
>> include endpoint security, mobile security and the latest in malware
>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> ------------------------------------------------------------------------------
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and
>> threat landscape has changed and how IT managers can respond. Discussions
>> will include endpoint security, mobile security and the latest in malware
>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2012-05-21 17:11
FromRichard Dobson
SubjectRe: [Cs-dev] C bytebeat experiment
On 21/05/2012 16:29, Adam Puckett wrote:


> q = malloc(44100*5);
int t;
for (t = 0; t<  44100*5; t++)
      *q++ = > (t&t>>8);
CopyMemory(ap1, q, bt1);


At this point, q is at the end of the allocated block, so points to 
memory you don't own, rather than the allocated buffer with the intended 
contents. Preserve q from the call to malloc, and either use array 
indexing, or a second pointer initialized to q, and increment that. Then 
CopyMemory will copy the correct block - and you will be also able to 
call free on it afterwards.

May not be the only problem of course - too many years passed since I 
had to write any DirectSound code!

Richard Dobson



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2012-05-21 17:23
FromAdam Puckett
SubjectRe: [Cs-dev] C bytebeat experiment
Thanks Richard! This just came to mind while I was having lunch.

On 5/21/12, Richard Dobson  wrote:
> On 21/05/2012 16:29, Adam Puckett wrote:
>
>
>> q = malloc(44100*5);
> int t;
> for (t = 0; t<  44100*5; t++)
>       *q++ = > (t&t>>8);
> CopyMemory(ap1, q, bt1);
>
>
> At this point, q is at the end of the allocated block, so points to
> memory you don't own, rather than the allocated buffer with the intended
> contents. Preserve q from the call to malloc, and either use array
> indexing, or a second pointer initialized to q, and increment that. Then
> CopyMemory will copy the correct block - and you will be also able to
> call free on it afterwards.
>
> May not be the only problem of course - too many years passed since I
> had to write any DirectSound code!
>
> Richard Dobson
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2012-05-21 17:38
FromAdam Puckett
SubjectRe: [Cs-dev] C bytebeat experiment
Finally! It works! But it was quiet at 44.1kHz, so I made it an 8kHz,
8-bit static buffer with which to create bytebeat songs. Wonderful!

Now, how do I make the sound play in one channel and not in the other,
or make the sound pan?

On 5/21/12, Adam Puckett  wrote:
> Thanks Richard! This just came to mind while I was having lunch.
>
> On 5/21/12, Richard Dobson  wrote:
>> On 21/05/2012 16:29, Adam Puckett wrote:
>>
>>
>>> q = malloc(44100*5);
>> int t;
>> for (t = 0; t<  44100*5; t++)
>>       *q++ = > (t&t>>8);
>> CopyMemory(ap1, q, bt1);
>>
>>
>> At this point, q is at the end of the allocated block, so points to
>> memory you don't own, rather than the allocated buffer with the intended
>> contents. Preserve q from the call to malloc, and either use array
>> indexing, or a second pointer initialized to q, and increment that. Then
>> CopyMemory will copy the correct block - and you will be also able to
>> call free on it afterwards.
>>
>> May not be the only problem of course - too many years passed since I
>> had to write any DirectSound code!
>>
>> Richard Dobson
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and
>> threat landscape has changed and how IT managers can respond. Discussions
>> will include endpoint security, mobile security and the latest in malware
>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2012-05-21 18:04
FromSigurd Saue
SubjectRe: [Cs-dev] C bytebeat experiment
Attachmentsds.cpp  None  None  
Hi Adam,

I had to leave for home, but I now I've taken a closer look at your problem.

The attached file is a modification of your original file that plays stereo 44100 with the sound playing in one channel only. Btw: I had to remove the DSBCAPS_LOCHARDWARE option here, but it might still work on your computer.

Sigurd
________________________________________
Fra: Adam Puckett [adotsdothmusic@gmail.com]
Sendt: 21. mai 2012 18:38
Til: richarddobson@blueyonder.co.uk; Developer discussions
Emne: Re: [Cs-dev] C bytebeat experiment

Finally! It works! But it was quiet at 44.1kHz, so I made it an 8kHz,
8-bit static buffer with which to create bytebeat songs. Wonderful!

Now, how do I make the sound play in one channel and not in the other,
or make the sound pan?

On 5/21/12, Adam Puckett  wrote:
> Thanks Richard! This just came to mind while I was having lunch.
>
> On 5/21/12, Richard Dobson  wrote:
>> On 21/05/2012 16:29, Adam Puckett wrote:
>>
>>
>>> q = malloc(44100*5);
>> int t;
>> for (t = 0; t<  44100*5; t++)
>>       *q++ = > (t&t>>8);
>> CopyMemory(ap1, q, bt1);
>>
>>
>> At this point, q is at the end of the allocated block, so points to
>> memory you don't own, rather than the allocated buffer with the intended
>> contents. Preserve q from the call to malloc, and either use array
>> indexing, or a second pointer initialized to q, and increment that. Then
>> CopyMemory will copy the correct block - and you will be also able to
>> call free on it afterwards.
>>
>> May not be the only problem of course - too many years passed since I
>> had to write any DirectSound code!
>>
>> Richard Dobson
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and
>> threat landscape has changed and how IT managers can respond. Discussions
>> will include endpoint security, mobile security and the latest in malware
>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

Date2012-05-21 18:30
FromAdam Puckett
SubjectRe: [Cs-dev] C bytebeat experiment
Thanks!

On 5/21/12, Sigurd Saue  wrote:
> Hi Adam,
>
> I had to leave for home, but I now I've taken a closer look at your problem.
>
> The attached file is a modification of your original file that plays stereo
> 44100 with the sound playing in one channel only. Btw: I had to remove the
> DSBCAPS_LOCHARDWARE option here, but it might still work on your computer.
>
> Sigurd
> ________________________________________
> Fra: Adam Puckett [adotsdothmusic@gmail.com]
> Sendt: 21. mai 2012 18:38
> Til: richarddobson@blueyonder.co.uk; Developer discussions
> Emne: Re: [Cs-dev] C bytebeat experiment
>
> Finally! It works! But it was quiet at 44.1kHz, so I made it an 8kHz,
> 8-bit static buffer with which to create bytebeat songs. Wonderful!
>
> Now, how do I make the sound play in one channel and not in the other,
> or make the sound pan?
>
> On 5/21/12, Adam Puckett  wrote:
>> Thanks Richard! This just came to mind while I was having lunch.
>>
>> On 5/21/12, Richard Dobson  wrote:
>>> On 21/05/2012 16:29, Adam Puckett wrote:
>>>
>>>
>>>> q = malloc(44100*5);
>>> int t;
>>> for (t = 0; t<  44100*5; t++)
>>>       *q++ = > (t&t>>8);
>>> CopyMemory(ap1, q, bt1);
>>>
>>>
>>> At this point, q is at the end of the allocated block, so points to
>>> memory you don't own, rather than the allocated buffer with the intended
>>> contents. Preserve q from the call to malloc, and either use array
>>> indexing, or a second pointer initialized to q, and increment that. Then
>>> CopyMemory will copy the correct block - and you will be also able to
>>> call free on it afterwards.
>>>
>>> May not be the only problem of course - too many years passed since I
>>> had to write any DirectSound code!
>>>
>>> Richard Dobson
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Live Security Virtual Conference
>>> Exclusive live event will cover all the ways today's security and
>>> threat landscape has changed and how IT managers can respond. Discussions
>>> will include endpoint security, mobile security and the latest in malware
>>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net