Re: [Discuss-gnuradio] Wav sink problem

2012-09-27 Thread Anton Komarov
ok! with conditional filename works like a charm! thank you very much! sorry that i did get for the first time ;-) On Fri, Sep 28, 2012 at 1:47 AM, Marcus D. Leech wrote: >> Ok, tried with selector and check box. >> I started script, check box appeared, i cheched it and recording to >> wav file s

Re: [Discuss-gnuradio] Wav sink problem

2012-09-27 Thread Marcus D. Leech
Ok, tried with selector and check box. I started script, check box appeared, i cheched it and recording to wav file started. Wait a bit and unchecked it, got file 2.7 Mbytes, not growing more, then stopped the script. FIle is corrupted. Looked at your flow-graph. You have to make the *filenam

Re: [Discuss-gnuradio] Wav sink problem

2012-09-27 Thread Anton Komarov
Ok, tried with selector and check box. I started script, check box appeared, i cheched it and recording to wav file started. Wait a bit and unchecked it, got file 2.7 Mbytes, not growing more, then stopped the script. FIle is corrupted. Here is links on my grc scheme - http://db.tt/ACl4nLNy and wa

Re: [Discuss-gnuradio] Wav sink problem

2012-09-27 Thread mleech
On 27 Sep 2012 11:58, Anton Komarov wrote: > Ok i see. > > And, if i want to run script from shell to record audio files and > rotate them every hour, how to make start/stop recording procedure in > this case? > > On Thu, Sep 27, 2012 at 7:31 PM, wrote: > >> On 27 Sep 2012 11:28, Anton Kom

Re: [Discuss-gnuradio] Wav sink problem

2012-09-27 Thread Anton Komarov
Ok i see. And, if i want to run script from shell to record audio files and rotate them every hour, how to make start/stop recording procedure in this case? On Thu, Sep 27, 2012 at 7:31 PM, wrote: > On 27 Sep 2012 11:28, Anton Komarov wrote: > > So it can programmed with GRC, or i supposed to m

Re: [Discuss-gnuradio] Wav sink problem

2012-09-27 Thread mleech
On 27 Sep 2012 11:28, Anton Komarov wrote: > So it can programmed with GRC, or i supposed to make some stuff in > python script? > > On Thu, Sep 27, 2012 at 7:17 PM, wrote: > >> I recall running into this issue myself now, with multimode and simple_fm_rcv. What I do in those two apps is tha

Re: [Discuss-gnuradio] Wav sink problem

2012-09-27 Thread Anton Komarov
So it can programmed with GRC, or i supposed to make some stuff in python script? On Thu, Sep 27, 2012 at 7:17 PM, wrote: > I recall running into this issue myself now, with multimode and > simple_fm_rcv. > > What I do in those two apps is that when I turn "off" recording, I change > the wavfile

Re: [Discuss-gnuradio] Wav sink problem

2012-09-27 Thread mleech
I recall running into this issue myself now, with multimode and simple_fm_rcv. What I do in those two apps is that when I turn "off" recording, I change the wavfile filename to /dev/null, which causes a formal cleanup-and-close of the previous file. On 27 Sep 2012 11:13, Anton Komarov wrote:

Re: [Discuss-gnuradio] Wav sink problem

2012-09-27 Thread Anton Komarov
Martin, actually no, i am not sure. i am just pushing stop button in gnuradio companion. from grc perspective view, what method is supposed to be used for graceful script termination? On Thu, Sep 27, 2012 at 7:07 PM, Martin Braun (CEL) wrote: > On Thu, Sep 27, 2012 at 06:55:08PM +0400, Anton Kom

Re: [Discuss-gnuradio] Wav sink problem

2012-09-27 Thread Martin Braun (CEL)
On Thu, Sep 27, 2012 at 06:55:08PM +0400, Anton Komarov wrote: > Hi, Martin, thanks for reply. > > In Audacity i see only gray background and no signal. > > Actually i have started with nbfm reciever and tried to save audio in > wav file. That i tried to redirect it to audio sink and audio was ok

Re: [Discuss-gnuradio] Wav sink problem

2012-09-27 Thread Anton Komarov
Hi, Martin, thanks for reply. In Audacity i see only gray background and no signal. Actually i have started with nbfm reciever and tried to save audio in wav file. That i tried to redirect it to audio sink and audio was ok. Than i tried to use very simple scheme with audio source to wav sink and

Re: [Discuss-gnuradio] Wav sink problem

2012-09-27 Thread Martin Braun (CEL)
Hi Anton, I'd rather look if your audio source is producing the correct samples. On Thu, Sep 27, 2012 at 12:51:20AM +0400, Anton Komarov wrote: > i construct very simple scheme Audio Source --> Wav Sink > gr generates non-null wav file > -rw-rw-r-- 1 anton anton 24M сент. 27 00:46 freq2.wav Look

[Discuss-gnuradio] Wav sink problem

2012-09-26 Thread Anton Komarov
Hi, i construct very simple scheme Audio Source --> Wav Sink gr generates non-null wav file -rw-rw-r-- 1 anton anton 24M сент. 27 00:46 freq2.wav but when i try to play it or fetch info about file with soxi (sox plugin) i got nothing aplay freq2.wav Воспроизведение WAVE 'freq2.wav' : Signed 16 b

Re: [Discuss-gnuradio] WAV sink

2012-03-27 Thread John Coppens
On Tue, 27 Mar 2012 09:36:14 +0200 Martin Braun wrote: > These bytes can only be set once the writing is finished, and it's > called from the destructor, so that might not be getting called...? > It also gets called when the WAV file changes. > Calling close() manually is also possible (but shoul

Re: [Discuss-gnuradio] WAV sink

2012-03-27 Thread Martin Braun
On Tue, Mar 27, 2012 at 12:21:50AM -0300, John Coppens wrote: > 2) The wav sink doesn't seem to close the wav-file correctly. After > writing an 82MB file, the size of the file (bytes 4-7) were 0. Many > programs don't seem to mind this. 'snd' doesn't like it and won't open > the file. > > Also, t

Re: [Discuss-gnuradio] WAV sink

2012-03-26 Thread John Coppens
On Sun, 25 Mar 2012 20:01:48 -0300 John Coppens wrote: > Hi all. > > A small (?) error: The doc for the wav sink says: > > "Read stream from a Microsoft PCM (.wav) file, output floats. > > Values are within [-1;1]. Check gr_make_wavfile_source() for extra > info." > > This was probably copied

Re: [Discuss-gnuradio] WAV sink

2012-03-26 Thread Tom Rondeau
On Sun, Mar 25, 2012 at 7:01 PM, John Coppens wrote: > Hi all. > > A small (?) error: The doc for the wav sink says: > > "Read stream from a Microsoft PCM (.wav) file, output floats. > > Values are within [-1;1]. Check gr_make_wavfile_source() for extra > info." > > This was probably copied for th

[Discuss-gnuradio] WAV sink

2012-03-25 Thread John Coppens
Hi all. A small (?) error: The doc for the wav sink says: "Read stream from a Microsoft PCM (.wav) file, output floats. Values are within [-1;1]. Check gr_make_wavfile_source() for extra info." This was probably copied for the wav source... Greetings, John ___